#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 |
Friends | |
| std::ostream & | operator<< (std::ostream &Stream, const Site s) |
Some structures needed for building a voronoi diagram and maintaining the overlays neighbors.
Definition at line 53 of file VastDefs.h.
| Site::Site | ( | ) |
Definition at line 26 of file VastDefs.cc.
00027 { 00028 type = UNDEF; 00029 innerEdge[0] = false; 00030 innerEdge[1] = false; 00031 innerEdge[2] = false; 00032 outerEdge = false; 00033 isAdded = false; 00034 neighborCount = 0; 00035 addr = NodeHandle::UNSPECIFIED_NODE; 00036 tstamp = 0.0; 00037 }
| 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 60 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<<(), Vast::sendDiscardNode(), Vast::sendMessage(), Vast::sendToApp(), and Site().
Definition at line 57 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().
| bool Site::innerEdge[3] |
| bool Site::isAdded |
| bool Site::outerEdge |
| simtime_t Site::tstamp |
| unsigned char Site::type |
Definition at line 58 of file VastDefs.h.
Referenced by Vast::handleJoinRequest(), Vast::initializeOverlay(), operator<<(), Geometry::processEdge(), and Site().
1.5.8