MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtNetworkMapCentralNode Class Reference

Includes -------------------------—. More...

+ Collaboration diagram for DtNetworkMapCentralNode:

Public Member Functions

 DtNetworkMapCentralNode ()
 Constructor.
virtual ~DtNetworkMapCentralNode ()
 Destructor.
DtNetworkMapNodeaddNode (int fedId, const MAKRti::DtString &federationName, const MAKRti::DtString &processName, const MAKRti::DtString &fedType, const MAKRti::DtString &fedName, float rad)
 Adds a basic node.
DtNetworkMapNodeaddForwarderNode (int id, const MAKRti::DtString &name, float rad)
 Adds a forwarder node.
void update (float delta)
 Updates all the nodes.
void shutdown ()
 Does proper shutting down.
bool searchNodes (int fedId, const MAKRti::DtString &federationName, int &resultIndex)
 search nodes
void updateFederatePositions ()
 Calculates where the federates should be placed.
void updateForwarderPositions ()
 Updates the forwarder positions.
void setCentralNode (const MAKRti::DtString &name, const MAKRti::DtString &displayName, int id, float radius, bool isLightweight)
 Set the central node.
DtNetworkMapNodegetNode (unsigned int index)
 index into the nodes
DtNetworkMapNodegetNodeByFederateHandle (unsigned int fedHandle, const MAKRti::DtString &federationName)
 gets a node by its federate handle
DtNetworkMapNodegetNodeByFederateName (const MAKRti::DtString &fedName, const MAKRti::DtString &federationName)
 gets a node by its federate name
DtNetworkMapNodegetForwarderNode (unsigned int index)
 index into the nodes
DtNetworkMapNodegetForwarderNodeByName (const MAKRti::DtString &forwarderName)
 get a forwarder by name
int removeNode (unsigned int fedHandle, const MAKRti::DtString &federationName)
 Removes a node by its federate handle.
void clearList ()
 clear the nodes
void clearTouchedNodes ()
 Clears nodes that have been touched.
void searchForDeadNodes ()
 Searches for dead nodes.
bool drawLines ()
 Do we draw the lines?
bool drawText ()
 Do we draw the id text?
unsigned int getSize ()
 return the size
unsigned int getFwdSize ()
const std::vector
< DtNetworkMapNode * > 
getNodes ()
 get the nodes
MAKRti::DtString getCentralNodeName ()
 Gets the central node name string.
bool isLightweight ()
 Gets whether we are viewing a lightweight connection.
bool hasRtiExec ()
 Gets whether we have an rtiexec.
void setHasExec (bool hasAnExec)
 Sets whether we have an exec or not.

Protected Member Functions

DtNetworkMapNodeinsertCentralNode (int id, const MAKRti::DtString &displayName, float rad, bool isLightweight)
 Inserts the central node.
DtNetworkMapNodeinsertCentralForwarderNode (int id, const MAKRti::DtString &name, float rad)
 Inserts the forwarder node for the central node.
void setIsLightweight (bool isLw)
 Sets whether we are viewing a lightweight connection.
void setCentralNodeName (const MAKRti::DtString &string)
 Set the central node name.
_vec2 calcFederateDestination (int max_federates, int federate_no)
 Calculates the destination.

Protected Attributes

bool myHasExec
bool myIsLightweight
bool myShouldDrawLines
bool myShouldDrawText
bool myHasDoneShutdown
float myRadius
MAKRti::DtString myName
std::vector< DtNetworkMapNode * > myNodes
std::vector< DtNetworkMapNode * > myForwarderNodes

Private Member Functions

void updatePositions (std::vector< DtNetworkMapNode * > &myNodes, bool areForwarders=false)
 private function that does the updating of a vector of nodes that are passed in

Detailed Description

Includes -------------------------—.

Constructor & Destructor Documentation

DtNetworkMapCentralNode::DtNetworkMapCentralNode ( )

Constructor.

virtual DtNetworkMapCentralNode::~DtNetworkMapCentralNode ( )
virtual

Destructor.

Member Function Documentation

DtNetworkMapNode* DtNetworkMapCentralNode::addForwarderNode ( int  id,
const MAKRti::DtString &  name,
float  rad 
)

Adds a forwarder node.

DtNetworkMapNode* DtNetworkMapCentralNode::addNode ( int  fedId,
const MAKRti::DtString &  federationName,
const MAKRti::DtString &  processName,
const MAKRti::DtString &  fedType,
const MAKRti::DtString &  fedName,
float  rad 
)

Adds a basic node.

_vec2 DtNetworkMapCentralNode::calcFederateDestination ( int  max_federates,
int  federate_no 
)
protected

Calculates the destination.

void DtNetworkMapCentralNode::clearList ( )

clear the nodes

void DtNetworkMapCentralNode::clearTouchedNodes ( )

Clears nodes that have been touched.

bool DtNetworkMapCentralNode::drawLines ( )
inline

Do we draw the lines?

References myShouldDrawLines.

bool DtNetworkMapCentralNode::drawText ( )
inline

Do we draw the id text?

References myShouldDrawText.

MAKRti::DtString DtNetworkMapCentralNode::getCentralNodeName ( )
inline

Gets the central node name string.

References myName.

DtNetworkMapNode* DtNetworkMapCentralNode::getForwarderNode ( unsigned int  index)

index into the nodes

DtNetworkMapNode* DtNetworkMapCentralNode::getForwarderNodeByName ( const MAKRti::DtString &  forwarderName)

get a forwarder by name

unsigned int DtNetworkMapCentralNode::getFwdSize ( )
inline

References myForwarderNodes.

DtNetworkMapNode* DtNetworkMapCentralNode::getNode ( unsigned int  index)

index into the nodes

DtNetworkMapNode* DtNetworkMapCentralNode::getNodeByFederateHandle ( unsigned int  fedHandle,
const MAKRti::DtString &  federationName 
)

gets a node by its federate handle

DtNetworkMapNode* DtNetworkMapCentralNode::getNodeByFederateName ( const MAKRti::DtString &  fedName,
const MAKRti::DtString &  federationName 
)

gets a node by its federate name

const std::vector<DtNetworkMapNode*> DtNetworkMapCentralNode::getNodes ( )
inline

get the nodes

References myNodes.

unsigned int DtNetworkMapCentralNode::getSize ( )
inline

return the size

bool DtNetworkMapCentralNode::hasRtiExec ( )
inline

Gets whether we have an rtiexec.

References myHasExec.

DtNetworkMapNode* DtNetworkMapCentralNode::insertCentralForwarderNode ( int  id,
const MAKRti::DtString &  name,
float  rad 
)
protected

Inserts the forwarder node for the central node.

DtNetworkMapNode* DtNetworkMapCentralNode::insertCentralNode ( int  id,
const MAKRti::DtString &  displayName,
float  rad,
bool  isLightweight 
)
protected

Inserts the central node.

bool DtNetworkMapCentralNode::isLightweight ( )
inline

Gets whether we are viewing a lightweight connection.

References myIsLightweight.

int DtNetworkMapCentralNode::removeNode ( unsigned int  fedHandle,
const MAKRti::DtString &  federationName 
)

Removes a node by its federate handle.

Returns the index of the node that was removed.

void DtNetworkMapCentralNode::searchForDeadNodes ( )

Searches for dead nodes.

bool DtNetworkMapCentralNode::searchNodes ( int  fedId,
const MAKRti::DtString &  federationName,
int &  resultIndex 
)

search nodes

void DtNetworkMapCentralNode::setCentralNode ( const MAKRti::DtString &  name,
const MAKRti::DtString &  displayName,
int  id,
float  radius,
bool  isLightweight 
)

Set the central node.

void DtNetworkMapCentralNode::setCentralNodeName ( const MAKRti::DtString &  string)
inlineprotected

Set the central node name.

References myName.

void DtNetworkMapCentralNode::setHasExec ( bool  hasAnExec)
inline

Sets whether we have an exec or not.

References myHasExec.

void DtNetworkMapCentralNode::setIsLightweight ( bool  isLw)
inlineprotected

Sets whether we are viewing a lightweight connection.

References myIsLightweight.

void DtNetworkMapCentralNode::shutdown ( )

Does proper shutting down.

void DtNetworkMapCentralNode::update ( float  delta)

Updates all the nodes.

void DtNetworkMapCentralNode::updateFederatePositions ( )

Calculates where the federates should be placed.

void DtNetworkMapCentralNode::updateForwarderPositions ( )

Updates the forwarder positions.

void DtNetworkMapCentralNode::updatePositions ( std::vector< DtNetworkMapNode * > &  myNodes,
bool  areForwarders = false 
)
private

private function that does the updating of a vector of nodes that are passed in

Member Data Documentation

std::vector<DtNetworkMapNode *> DtNetworkMapCentralNode::myForwarderNodes
protected

Referenced by getFwdSize().

bool DtNetworkMapCentralNode::myHasDoneShutdown
protected
bool DtNetworkMapCentralNode::myHasExec
protected

Referenced by hasRtiExec(), and setHasExec().

bool DtNetworkMapCentralNode::myIsLightweight
protected

Referenced by isLightweight(), and setIsLightweight().

MAKRti::DtString DtNetworkMapCentralNode::myName
protected
std::vector<DtNetworkMapNode *> DtNetworkMapCentralNode::myNodes
protected

Referenced by getNodes().

float DtNetworkMapCentralNode::myRadius
protected
bool DtNetworkMapCentralNode::myShouldDrawLines
protected

Referenced by drawLines().

bool DtNetworkMapCentralNode::myShouldDrawText
protected

Referenced by drawText().


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

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)