#include <PubSubSubspace.h>

Public Member Functions | |
| PubSubSubspace (PubSubSubspaceId id) | |
| Creates a new PubSubSubspace. | |
| ~PubSubSubspace () | |
| const PubSubSubspaceId & | getId () |
| void | setResponsibleNode (NodeHandle node) |
| NodeHandle | getResponsibleNode () |
| void | setTimestamp () |
| void | setTimestamp (simtime_t stamp) |
| simtime_t | getLastTimestamp () |
| simtime_t | getTimeSinceLastTimestamp () |
Protected Attributes | |
| PubSubSubspaceId | spaceId |
| NodeHandle | responsibleNode |
| simtime_t | lastTimestamp |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const PubSubSubspace &subspace) |
Definition at line 33 of file PubSubSubspace.h.
| PubSubSubspace::PubSubSubspace | ( | PubSubSubspaceId | id | ) |
Creates a new PubSubSubspace.
| id | The group ID of the new group |
Definition at line 29 of file PubSubSubspace.cc.
00029 : spaceId(id) 00030 { 00031 responsibleNode = NodeHandle::UNSPECIFIED_NODE; 00032 lastTimestamp = 0; 00033 }
| PubSubSubspace::~PubSubSubspace | ( | ) |
| const PubSubSubspaceId& PubSubSubspace::getId | ( | ) | [inline] |
Definition at line 49 of file PubSubSubspace.h.
Referenced by PubSubLobby::failedNode(), PubSubLobby::handleJoin(), PubSubMMOG::handlePingCallTimeout(), PubSubLobby::handleRespCall(), PubSubMMOG::publishEvents(), PubSubMMOG::takeOverSubspace(), and PubSubMMOG::unsubscribeChild().
00049 { return spaceId; }
| simtime_t PubSubSubspace::getLastTimestamp | ( | ) | [inline] |
| NodeHandle PubSubSubspace::getResponsibleNode | ( | ) | [inline] |
Definition at line 51 of file PubSubSubspace.h.
Referenced by PubSubLobby::failedNode(), PubSubLobby::handleJoin(), PubSubMMOG::handleMove(), PubSubMMOG::handleSubscriptionBackup(), and PubSubMMOG::takeOverSubspace().
00051 { return responsibleNode; }
| simtime_t PubSubSubspace::getTimeSinceLastTimestamp | ( | ) | [inline] |
| void PubSubSubspace::setResponsibleNode | ( | NodeHandle | node | ) | [inline] |
Definition at line 50 of file PubSubSubspace.h.
Referenced by PubSubLobby::failedNode(), PubSubMMOG::handleBackupCall(), PubSubMMOG::handleJoinResponse(), PubSubLobby::replaceResponsibleNode(), and PubSubMMOG::takeOverSubspace().
00050 { responsibleNode = node; }
| void PubSubSubspace::setTimestamp | ( | simtime_t | stamp | ) | [inline] |
| void PubSubSubspace::setTimestamp | ( | ) | [inline] |
| std::ostream& operator<< | ( | std::ostream & | o, | |
| const PubSubSubspace & | subspace | |||
| ) | [friend] |
Definition at line 39 of file PubSubSubspace.cc.
00040 { 00041 o << "Id: " << subspace.spaceId << " responsible: " << subspace.responsibleNode; 00042 return o; 00043 }
simtime_t PubSubSubspace::lastTimestamp [protected] |
Definition at line 39 of file PubSubSubspace.h.
Referenced by getLastTimestamp(), getTimeSinceLastTimestamp(), PubSubSubspace(), and setTimestamp().
NodeHandle PubSubSubspace::responsibleNode [protected] |
Definition at line 37 of file PubSubSubspace.h.
Referenced by getResponsibleNode(), operator<<(), PubSubSubspace(), and setResponsibleNode().
PubSubSubspaceId PubSubSubspace::spaceId [protected] |
1.5.8