Initial commit
[remote/remote-mci.git] / diku_mch / Mote.h
blob286242a9871974554a997238a96a4624a66f4f32
1 #ifndef _MOTE_H_
2 #define _MOTE_H_
4 #include "SerialControl.h"
5 #include "Configuration.h"
7 namespace remote { namespace diku_mch {
9 class Mote : public SerialControl
11 public:
12 /** Create a new mote. Just after creation, isValid and isNew will always return true.
13 **/
14 Mote( uint64_t p_macAddress,
15 std::string& p_path,
16 uint16_t p_ttyNum );
18 bool isValid();
20 void invalidate();
22 void validate(std::string& p_path, uint16_t p_ttyNum);
24 uint64_t getMac();
25 uint16_t getTty();
26 const std::string& getPath();
28 private:
29 uint64_t macAddress;
30 uint16_t ttyNum;
31 std::string path;
32 bool isvalid;
37 #endif