MAK RTIspy API Documentation for HLA 1.3
 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
+ Collaboration diagram for DtNetworkMapCentralNode:

Public Member Functions

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

Protected Member Functions

void setIsLightweight (bool isLw)
 Sets whether we are viewing a lightweight connection. More...
 
void setCentralNodeName (const MAKRti::DtString &string)
 Set the central node name. More...
 
void setCentralNodePort (int port)
 Set the central node port. More...
 
_vec2 calcFederateDestination (int max_federates, int federate_no)
 Calculates the destination. More...
 

Protected Attributes

bool myHasExec
 
bool myIsLightweight
 
bool myShouldDrawLines
 
bool myShouldDrawText
 
bool myHasDoneShutdown
 
float myRadius
 
MAKRti::DtString myName
 
int myPort
 
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 More...
 

Constructor & Destructor Documentation

DtNetworkMapCentralNode::DtNetworkMapCentralNode ( )

Constructor.

virtual DtNetworkMapCentralNode::~DtNetworkMapCentralNode ( )
virtual

Destructor.

Member Function Documentation

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

Adds a forwarder node.

DtNetworkMapNode* DtNetworkMapCentralNode::addForwarderNode ( int  id,
const MAKRti::DtString &  name,
int  port,
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,
int  port 
)

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.

int DtNetworkMapCentralNode::getPort ( )
inline

Gets the central node port.

References myPort.

unsigned int DtNetworkMapCentralNode::getSize ( )
inline

return the size

bool DtNetworkMapCentralNode::hasCentralForwarder ( ) const

Gets whether central node is a forwarder.

bool DtNetworkMapCentralNode::hasRtiExec ( )
inline

Gets whether we have an rtiexec.

References myHasExec.

bool DtNetworkMapCentralNode::isLightweight ( )
inline

Gets whether we are viewing a lightweight connection.

References myIsLightweight.

void DtNetworkMapCentralNode::removeForwarderNode ( const MAKRti::DtString &  name,
int  port 
)

Removes a forwarder node.

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::setCentralForwarderNode ( const MAKRti::DtString &  name,
int  port,
const MAKRti::DtString &  displayName,
int  id,
float  radius 
)

Set the central node.

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

Set the central node.

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

Set the central node name.

References myName.

void DtNetworkMapCentralNode::setCentralNodePort ( int  port)
inlineprotected

Set the central node port.

References myPort.

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

int DtNetworkMapCentralNode::myPort
protected

Referenced by getPort(), and setCentralNodePort().

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 Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)