#include <QuonHelper.h>
Public Member Functions | |
| QuonSite () | |
Public Attributes | |
| Vector2D | position |
| QNeighborType | type |
| NodeHandle | address |
| double | AOIwidth |
| bool | dirty |
| bool | alive |
| bool | softNeighbor |
Friends | |
| std::ostream & | operator<< (std::ostream &Stream, const QuonSite &s) |
Definition at line 46 of file QuonHelper.h.
| QuonSite::QuonSite | ( | ) |
Definition at line 63 of file QuonHelper.cc.
{
type = QUNDEFINED;
dirty = false;
alive = false;
softNeighbor = false;
address = NodeHandle::UNSPECIFIED_NODE;
AOIwidth = 0.0;
}
| std::ostream& operator<< | ( | std::ostream & | Stream, | |
| const QuonSite & | s | |||
| ) | [friend] |
Definition at line 73 of file QuonHelper.cc.
{
Stream << s.address.getIp() << ":" << s.address.getPort() << " Type: ";
switch(s.type) {
case QUNDEFINED:
if( s.softNeighbor) {
Stream << "\"Softstate Neighbor\"";
} else {
Stream << "\"Undefined\"";
}
break;
case QTHIS:
Stream << "\"Self\"";
break;
case QNEIGHBOR:
Stream << "\"Direct Neighbor\"";
break;
case QBINDING:
Stream << "\"Binding Neighbor\"";
break;
break;
}
Stream << " Position: " << s.position;
return Stream;
}
Definition at line 52 of file QuonHelper.h.
Referenced by Quon::addSite(), Quon::changeState(), Quon::classifySites(), Quon::getKey(), Quon::handleAppMessage(), Quon::handleJoin(), Quon::handleJoinAcknowledge(), Quon::handleJoinRequest(), Quon::handleMove(), Quon::handleNodeGracefulLeaveNotification(), Quon::handleNodeMove(), Quon::handleUDPMessage(), Quon::initializeOverlay(), operator<<(), Quon::processBackupTimer(), QuonSite(), Quon::sendMessage(), and Quon::sendToApp().
| bool QuonSite::alive |
Definition at line 55 of file QuonHelper.h.
Referenced by Quon::addSite(), and QuonSite().
| double QuonSite::AOIwidth |
Definition at line 53 of file QuonHelper.h.
Referenced by Quon::addSite(), and QuonSite().
| bool QuonSite::dirty |
Definition at line 54 of file QuonHelper.h.
Referenced by Quon::addSite(), Quon::classifySites(), and QuonSite().
Definition at line 50 of file QuonHelper.h.
Referenced by Quon::addSite(), Quon::classifySites(), Quon::getPosition(), Quon::handleJoin(), Quon::handleJoinAcknowledge(), Quon::handleJoinRequest(), Quon::handleMove(), Quon::handleNodeGracefulLeaveNotification(), Quon::handleNodeMove(), Quon::initializeOverlay(), operator<<(), Quon::processBackupTimer(), and Quon::updateThisSite().
Definition at line 56 of file QuonHelper.h.
Referenced by Quon::addSite(), operator<<(), and QuonSite().
Definition at line 51 of file QuonHelper.h.
Referenced by Quon::addSite(), Quon::classifySites(), Quon::handleJoinRequest(), Quon::initializeOverlay(), operator<<(), and QuonSite().
1.7.1