OverSim
QuonSite Class Reference

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

Detailed Description

Definition at line 46 of file QuonHelper.h.

Constructor & Destructor Documentation

QuonSite::QuonSite ( )

Definition at line 63 of file QuonHelper.cc.

Friends And Related Function Documentation

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;
}

Member Data Documentation

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

bool QuonSite::softNeighbor

Definition at line 56 of file QuonHelper.h.

Referenced by Quon::addSite(), operator<<(), and QuonSite().


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