#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.
00064 { 00065 type = QUNDEFINED; 00066 dirty = false; 00067 alive = false; 00068 softNeighbor = false; 00069 address = NodeHandle::UNSPECIFIED_NODE; 00070 AOIwidth = 0.0; 00071 }
std::ostream& operator<< | ( | std::ostream & | Stream, | |
const QuonSite & | s | |||
) | [friend] |
Definition at line 73 of file QuonHelper.cc.
00074 { 00075 Stream << s.address.getAddress() << ":" << s.address.getPort() << " Type: "; 00076 switch(s.type) { 00077 case QUNDEFINED: 00078 if( s.softNeighbor) { 00079 Stream << "\"Softstate Neighbor\""; 00080 } else { 00081 Stream << "\"Undefined\""; 00082 } 00083 break; 00084 case QTHIS: 00085 Stream << "\"Self\""; 00086 break; 00087 case QNEIGHBOR: 00088 Stream << "\"Direct Neighbor\""; 00089 break; 00090 case QBINDING: 00091 Stream << "\"Binding Neighbor\""; 00092 break; 00093 break; 00094 } 00095 Stream << " Position: " << s.position; 00096 return Stream; 00097 }
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().