QuonSite Class Reference

#include <QuonHelper.h>

List of all members.

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.

00064 {
00065     type = QUNDEFINED;
00066     dirty = false;
00067     alive = false;
00068     softNeighbor = false;
00069     address = NodeHandle::UNSPECIFIED_NODE;
00070     AOIwidth = 0.0;
00071 }


Friends And Related Function Documentation

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 }


Member Data Documentation

Definition at line 55 of file QuonHelper.h.

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

Definition at line 53 of file QuonHelper.h.

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

Definition at line 54 of file QuonHelper.h.

Referenced by Quon::addSite(), Quon::classifySites(), and QuonSite().

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:
Generated on Wed May 26 16:21:19 2010 for OverSim by  doxygen 1.6.3