00001 #ifndef beetle_H 00002 #define beetle_H 1 00003 00007 #include "SObject.h" 00008 00009 class beetle: public SObject{ 00010 00011 public: 00012 00018 beetle(const unsigned int id, 00019 const unsigned int vfs, 00020 const unsigned int latency); 00021 00023 beetle(){} 00024 00026 virtual ~beetle(){} 00027 00029 unsigned int id() const; 00030 00032 unsigned int vfs() const; 00033 00035 unsigned int latency() const; 00036 00038 void stream(CSVParser& parser); 00039 00040 private: 00041 00042 unsigned int m_id; 00043 unsigned int m_vfs; 00044 unsigned int m_latency; 00045 double m_T; 00046 00047 }; 00048 00049 inline beetle::beetle(const unsigned int id, 00050 const unsigned int vfs, 00051 const unsigned int latency): 00052 m_id(id), 00053 m_vfs(vfs), 00054 m_latency(latency) 00055 { 00056 // constructer 00057 } 00058 00059 inline unsigned int beetle::id() const{ 00060 return m_id; 00061 } 00062 00063 inline unsigned int beetle::vfs() const{ 00064 return m_vfs; 00065 } 00066 00067 inline unsigned int beetle::latency() const{ 00068 return m_latency; 00069 } 00070 00071 00072 #endif