OverSim
GnpNpsCoordsInfo Class Reference

#include <CoordinateSystem.h>

Inheritance diagram for GnpNpsCoordsInfo:
EuclideanNcsNodeInfo AbstractNcsNodeInfo

Public Member Functions

 GnpNpsCoordsInfo ()
bool isValid ()
int8_t getLayer () const
void setLayer (int8_t layer)
bool update (const AbstractNcsNodeInfo &abstractInfo)
 operator Coords () const
- Public Member Functions inherited from EuclideanNcsNodeInfo
 EuclideanNcsNodeInfo ()
virtual ~EuclideanNcsNodeInfo ()
uint8_t getDimension () const
double getCoords (uint8_t i) const
const CoordsgetCoords () const
void setCoords (uint8_t i, double value)
Prox getDistance (const AbstractNcsNodeInfo &abstractInfo) const
- Public Member Functions inherited from AbstractNcsNodeInfo
virtual ~AbstractNcsNodeInfo ()

Protected Attributes

int8_t npsLayer
- Protected Attributes inherited from EuclideanNcsNodeInfo
Coords coordinates

Additional Inherited Members

- Static Public Member Functions inherited from EuclideanNcsNodeInfo
static void setDimension (uint8_t dimension)
- Static Protected Attributes inherited from EuclideanNcsNodeInfo
static uint8_t dim

Detailed Description

Definition at line 87 of file CoordinateSystem.h.

Constructor & Destructor Documentation

GnpNpsCoordsInfo::GnpNpsCoordsInfo ( )
inline

Definition at line 90 of file CoordinateSystem.h.

{ npsLayer = -1; };

Member Function Documentation

int8_t GnpNpsCoordsInfo::getLayer ( ) const
inline

Definition at line 94 of file CoordinateSystem.h.

Referenced by Nps::coordsReqRpcResponse(), Nps::getOwnLayer(), and operator<<().

{ return npsLayer; };
bool GnpNpsCoordsInfo::isValid ( )
inlinevirtual

Implements AbstractNcsNodeInfo.

Definition at line 92 of file CoordinateSystem.h.

{ return npsLayer != -1; };
GnpNpsCoordsInfo::operator Coords ( ) const
virtual

Implements AbstractNcsNodeInfo.

Definition at line 63 of file CoordinateSystem.cc.

{
Coords temp;
for (uint8_t i = 0; i < coordinates.size(); ++i) {
temp.push_back(coordinates[i]);
}
temp.push_back(npsLayer);
return temp;
}
void GnpNpsCoordsInfo::setLayer ( int8_t  layer)
inline

Definition at line 95 of file CoordinateSystem.h.

Referenced by Nps::init(), and Nps::setOwnLayer().

{ npsLayer = layer; };
bool GnpNpsCoordsInfo::update ( const AbstractNcsNodeInfo abstractInfo)
virtual

Implements AbstractNcsNodeInfo.

Definition at line 50 of file CoordinateSystem.cc.

{
if (!dynamic_cast<const GnpNpsCoordsInfo*>(&abstractInfo)) return false;
const GnpNpsCoordsInfo& temp =
static_cast<const GnpNpsCoordsInfo&>(abstractInfo);
return true;
}

Member Data Documentation

int8_t GnpNpsCoordsInfo::npsLayer
protected

Definition at line 102 of file CoordinateSystem.h.

Referenced by getLayer(), GnpNpsCoordsInfo(), isValid(), setLayer(), and update().


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