OverSim
Site Class Reference

#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)

Detailed Description

Definition at line 57 of file VastDefs.h.

Constructor & Destructor Documentation

Site::Site ( )

Definition at line 26 of file VastDefs.cc.

{
innerEdge[0] = false;
innerEdge[1] = false;
innerEdge[2] = false;
outerEdge = false;
isAdded = false;
tstamp = 0.0;
}

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const Site  s 
)
friend

Definition at line 39 of file VastDefs.cc.

{
Stream << "Type: ";
if(s.type & UNDEF) Stream << "Undefined ";
if(s.type & THIS) Stream << "This ";
if(s.type & ENCLOSING) Stream << "Enclosing ";
if(s.type & NEIGHBOR) Stream << "Inner ";
if(s.type & BOUNDARY) Stream << "Boundary ";
if(s.type & NEW) Stream << "Discovered ";
return Stream << " IP: " << s.addr.getIp();
}

Member Data Documentation

EnclosingSet Site::enclosingSet

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().

int Site::neighborCount

Definition at line 66 of file VastDefs.h.

Referenced by Vast::addNode(), and Site().

EnclosingSet Site::oldEnclosingSet

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

The documentation for this class was generated from the following files: