00001 00003 #ifndef __CENTER_COM_IMP_H__ 00004 #define __CENTER_COM_IMP_H__ 00005 00006 #include "RefCountBuffer.h" 00007 #include "Message.h" 00008 00013 class CenterComImp 00014 { 00015 public: 00019 CenterComImp(const AGENT &agent, const ADDRESS ¢er); 00023 ~CenterComImp(); 00027 bool send(const ADDRESS &address, const RefCountBuffer &message); 00029 bool get_agents(AGENT_VECTOR* agents, CENTER_PARAMS* params); 00031 void unregister(); 00032 00033 private: 00034 AGENT _agent; 00035 ADDRESS _center; 00036 }; 00037 00038 00039 00040 00041 #endif // __CENTER_COM_IMP_H__