#include <VastDefs.h>
Public Member Functions | |
Site () | |
Public Attributes | |
Vector2D | coord |
unsigned char | type |
bool | innerEdge [3] |
bool | outerEdge |
bool | isAdded |
NodeHandle | addr |
simtime_t | tstamp |
int | neighborCount |
EnclosingSet | enclosingSet |
EnclosingSet | oldEnclosingSet |
Friends | |
std::ostream & | operator<< (std::ostream &Stream, const Site s) |
Definition at line 57 of file VastDefs.h.
Site::Site | ( | ) |
Definition at line 26 of file VastDefs.cc.
std::ostream& operator<< | ( | std::ostream & | Stream, | |
const Site | s | |||
) | [friend] |
Definition at line 39 of file VastDefs.cc.
00040 { 00041 Stream << "Type: "; 00042 if(s.type & UNDEF) Stream << "Undefined "; 00043 if(s.type & THIS) Stream << "This "; 00044 if(s.type & ENCLOSING) Stream << "Enclosing "; 00045 if(s.type & NEIGHBOR) Stream << "Inner "; 00046 if(s.type & BOUNDARY) Stream << "Boundary "; 00047 if(s.type & NEW) Stream << "Discovered "; 00048 return Stream << " IP: " << s.addr.getAddress(); 00049 }
Definition at line 64 of file VastDefs.h.
Referenced by Vast::addNode(), Vast::addNodeToStock(), Vast::changeState(), Vast::finishOverlay(), Vast::getHandle(), Vast::handleAppMessage(), Vast::handleJoinRequest(), Vast::handleNodeLeaveNotification(), Vast::handleUDPMessage(), Vast::initializeOverlay(), operator<<(), Geometry::processEdge(), Vast::sendDiscardNode(), Vast::sendMessage(), Vast::sendToApp(), and Site().
Definition at line 61 of file VastDefs.h.
Referenced by Vast::addNode(), Geometry::bisect(), Vast::buildVoronoi(), Geometry::dist(), Vast::getPosition(), Vast::handleJoin(), Vast::handleJoinAcknowledge(), Vast::handleJoinRequest(), Vast::handleMove(), Geometry::intersect(), Geometry::intersectCircleSite(), HeapPQ::PQ_min(), HeapPQ::PQinsert(), Vast::processDiscoveryTimer(), Geometry::processEdge(), EdgeList::right_of(), and Vast::sendMessage().
Definition at line 67 of file VastDefs.h.
Referenced by Vast::buildVoronoi(), and Geometry::processEdge().
bool Site::innerEdge[3] |
Definition at line 63 of file VastDefs.h.
Referenced by Geometry::processEdge(), and Site().
bool Site::isAdded |
Definition at line 63 of file VastDefs.h.
Referenced by Site().
Definition at line 66 of file VastDefs.h.
Referenced by Vast::addNode(), and Site().
Definition at line 68 of file VastDefs.h.
Referenced by Vast::buildVoronoi().
bool Site::outerEdge |
Definition at line 63 of file VastDefs.h.
Referenced by Geometry::processEdge(), and Site().
simtime_t Site::tstamp |
Definition at line 65 of file VastDefs.h.
Referenced by Site().
unsigned char Site::type |
Definition at line 62 of file VastDefs.h.
Referenced by Vast::handleJoinRequest(), Vast::initializeOverlay(), operator<<(), Geometry::processEdge(), and Site().