MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtNetworkMapNode Class Reference
+ Collaboration diagram for DtNetworkMapNode:

Public Member Functions

 DtNetworkMapNode ()
 default Constructor
 DtNetworkMapNode (int fedId, const MAKRti::DtString &federationName, const MAKRti::DtString &processName, const MAKRti::DtString &federateType, const MAKRti::DtString &federateName, float radius)
 Constructor for Federate.
 DtNetworkMapNode (int compId, const MAKRti::DtString &forwarderName, int port, float radius)
 Constructor for Forwarder.
 DtNetworkMapNode (int compId, const MAKRti::DtString &execName, float radius)
 Constructor for rtiexec or central lightweight.
virtual ~DtNetworkMapNode ()
 Destructor.
void setTextureId (int id)
 Sets the texture ID.
int getTextureId ()
 gets the textureId
void setRadius (float radius)
 sets the radius
float getRadius ()
 returns the radius
int getFederateId ()
 Returns the federate id.
void update (float delta)
 Update function - does the animating.
void setDestination (const _vec2 &dest)
 Sets the destination.
bool isMoving () const
 Returns true if the node is currently moving.
const _vec2getPosition () const
 Gets the position.
void setPosition (const _vec2 &pos)
 Sets the position.
void resetTextureId ()
 No warning / error texture.
void showWarning ()
 Shows warning texture.
void showError ()
 Show Error texture.
void showDisconnect ()
bool isDisconnected ()
void showNotJoined ()
bool isNotJoined ()
void resetTouched ()
 rest whether we've been touched or not
void clearTouched ()
 clear touched flag
bool isTouched ()
 Have we been touched?
void setIsCentralForwarder ()
 Sets this node to be the forwarder.
bool IsCentralForwarder ()
 Gets whether this node is the forwarder.
void setIsPeerForwarder ()
 Sets this node to be a peer forwarder.
bool IsPeerForwarder ()
 Gets whether this node is a peer forwarder.
void setIsExec ()
 Sets this node to be the exec.
bool IsExec ()
 gets whether this node is the exec
void setIsLightweightCenter ()
 Sets this node to be the center node for lightweight connections.
bool IsLightweightCenter ()
 Gets whether this node is the forwarder.
bool shouldBeDelete ()
 gets whether this node should be deleted
void startShutdown ()
 Starts the shutdown/deletion process.
MAKRti::DtString & getFederationName ()
 Get the federation name.
MAKRti::DtString & getProcessName ()
MAKRti::DtString & getFederateType ()
MAKRti::DtString & getFederateName ()
int getPort ()
MAKRti::DtString getHostPort ()

Protected Attributes

int textureId
unsigned int federateId
bool isExec
bool isCentralForwarder
bool isPeerForwarder
bool isLightWeightCenter
bool wasTouched
bool deleteMe
bool startDelete
float radius
float speed
float elapsedTime
float elapsedDeleteTime
_vec2 position
_vec2 acceleration
_vec2 destination
MAKRti::DtString myFederationName
MAKRti::DtString myProcessName
MAKRti::DtString myFederateType
MAKRti::DtString myFederateName
int myPort

Constructor & Destructor Documentation

DtNetworkMapNode::DtNetworkMapNode ( )

default Constructor

DtNetworkMapNode::DtNetworkMapNode ( int  fedId,
const MAKRti::DtString &  federationName,
const MAKRti::DtString &  processName,
const MAKRti::DtString &  federateType,
const MAKRti::DtString &  federateName,
float  radius 
)

Constructor for Federate.

DtNetworkMapNode::DtNetworkMapNode ( int  compId,
const MAKRti::DtString &  forwarderName,
int  port,
float  radius 
)

Constructor for Forwarder.

DtNetworkMapNode::DtNetworkMapNode ( int  compId,
const MAKRti::DtString &  execName,
float  radius 
)

Constructor for rtiexec or central lightweight.

virtual DtNetworkMapNode::~DtNetworkMapNode ( )
inlinevirtual

Destructor.

Member Function Documentation

void DtNetworkMapNode::clearTouched ( )
inline

clear touched flag

References wasTouched.

int DtNetworkMapNode::getFederateId ( )
inline

Returns the federate id.

References federateId.

MAKRti::DtString& DtNetworkMapNode::getFederateName ( )
inline

References myFederateName.

MAKRti::DtString& DtNetworkMapNode::getFederateType ( )
inline

References myFederateType.

MAKRti::DtString& DtNetworkMapNode::getFederationName ( )
inline

Get the federation name.

References myFederationName.

MAKRti::DtString DtNetworkMapNode::getHostPort ( )
inline

References myPort, and myProcessName.

int DtNetworkMapNode::getPort ( )
inline

References myPort.

const _vec2& DtNetworkMapNode::getPosition ( ) const
inline

Gets the position.

References position.

MAKRti::DtString& DtNetworkMapNode::getProcessName ( )
inline

References myProcessName.

float DtNetworkMapNode::getRadius ( )
inline

returns the radius

References radius.

int DtNetworkMapNode::getTextureId ( )
inline

gets the textureId

References textureId.

bool DtNetworkMapNode::IsCentralForwarder ( )
inline

Gets whether this node is the forwarder.

References isCentralForwarder.

bool DtNetworkMapNode::isDisconnected ( )
inline

References DtDisconnectedTexture, and textureId.

bool DtNetworkMapNode::IsExec ( )
inline

gets whether this node is the exec

References isExec.

bool DtNetworkMapNode::IsLightweightCenter ( )
inline

Gets whether this node is the forwarder.

References isLightWeightCenter.

bool DtNetworkMapNode::isMoving ( ) const
inline

Returns true if the node is currently moving.

References destination, position, RTI_NODE_DEST_RANGE, _vec2::x, and _vec2::y.

bool DtNetworkMapNode::isNotJoined ( )
inline

References DtNotJoinedTexture, and textureId.

bool DtNetworkMapNode::IsPeerForwarder ( )
inline

Gets whether this node is a peer forwarder.

References isPeerForwarder.

bool DtNetworkMapNode::isTouched ( )
inline

Have we been touched?

References wasTouched.

void DtNetworkMapNode::resetTextureId ( )
inline

No warning / error texture.

References textureId.

void DtNetworkMapNode::resetTouched ( )
inline

rest whether we've been touched or not

References wasTouched.

void DtNetworkMapNode::setDestination ( const _vec2 dest)
inline

Sets the destination.

References destination, _vec2::x, and _vec2::y.

void DtNetworkMapNode::setIsCentralForwarder ( )
inline

Sets this node to be the forwarder.

References isCentralForwarder, isExec, isLightWeightCenter, and isPeerForwarder.

void DtNetworkMapNode::setIsExec ( )
inline

Sets this node to be the exec.

References isCentralForwarder, isExec, isLightWeightCenter, and isPeerForwarder.

void DtNetworkMapNode::setIsLightweightCenter ( )
inline

Sets this node to be the center node for lightweight connections.

References isCentralForwarder, isExec, isLightWeightCenter, and isPeerForwarder.

void DtNetworkMapNode::setIsPeerForwarder ( )
inline

Sets this node to be a peer forwarder.

References isCentralForwarder, isExec, isLightWeightCenter, and isPeerForwarder.

void DtNetworkMapNode::setPosition ( const _vec2 pos)
inline

Sets the position.

References position, _vec2::x, and _vec2::y.

void DtNetworkMapNode::setRadius ( float  radius)
inline

sets the radius

References radius.

void DtNetworkMapNode::setTextureId ( int  id)
inline

Sets the texture ID.

References textureId.

bool DtNetworkMapNode::shouldBeDelete ( )
inline

gets whether this node should be deleted

References deleteMe.

void DtNetworkMapNode::showDisconnect ( )
inline

References DtDisconnectedTexture, and textureId.

void DtNetworkMapNode::showError ( )
inline

Show Error texture.

References DtErrorTexture, and textureId.

void DtNetworkMapNode::showNotJoined ( )
inline

References DtNotJoinedTexture, and textureId.

void DtNetworkMapNode::showWarning ( )
inline

Shows warning texture.

References DtWarningTexture, and textureId.

void DtNetworkMapNode::startShutdown ( )
inline

Starts the shutdown/deletion process.

References startDelete.

void DtNetworkMapNode::update ( float  delta)

Update function - does the animating.

Member Data Documentation

_vec2 DtNetworkMapNode::acceleration
protected
bool DtNetworkMapNode::deleteMe
protected

Referenced by shouldBeDelete().

_vec2 DtNetworkMapNode::destination
protected

Referenced by isMoving(), and setDestination().

float DtNetworkMapNode::elapsedDeleteTime
protected
float DtNetworkMapNode::elapsedTime
protected
unsigned int DtNetworkMapNode::federateId
protected

Referenced by getFederateId().

bool DtNetworkMapNode::isCentralForwarder
protected
bool DtNetworkMapNode::isExec
protected
bool DtNetworkMapNode::isLightWeightCenter
protected
bool DtNetworkMapNode::isPeerForwarder
protected
MAKRti::DtString DtNetworkMapNode::myFederateName
protected

Referenced by getFederateName().

MAKRti::DtString DtNetworkMapNode::myFederateType
protected

Referenced by getFederateType().

MAKRti::DtString DtNetworkMapNode::myFederationName
protected

Referenced by getFederationName().

int DtNetworkMapNode::myPort
protected

Referenced by getHostPort(), and getPort().

MAKRti::DtString DtNetworkMapNode::myProcessName
protected

Referenced by getHostPort(), and getProcessName().

_vec2 DtNetworkMapNode::position
protected

Referenced by getPosition(), isMoving(), and setPosition().

float DtNetworkMapNode::radius
protected

Referenced by getRadius(), and setRadius().

float DtNetworkMapNode::speed
protected
bool DtNetworkMapNode::startDelete
protected

Referenced by startShutdown().

int DtNetworkMapNode::textureId
protected
bool DtNetworkMapNode::wasTouched
protected

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

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)