13 #include <vlutil/vlString.h>
29 const MAKRti::DtString& federationName,
30 const MAKRti::DtString& processName,
const MAKRti::DtString &fedType,
31 const MAKRti::DtString& fedName,
float rad );
38 int port,
float rad );
44 void update(
float delta );
50 bool searchNodes(
int fedId,
const MAKRti::DtString & federationName,
61 const MAKRti::DtString& displayName,
62 int id,
float radius );
67 const MAKRti::DtString& displayName,
68 int id,
float radius );
75 bool areForwarders =
false );
84 const MAKRti::DtString & federationName );
88 const MAKRti::DtString & federationName );
98 int removeNode(
unsigned int fedHandle,
const MAKRti::DtString & federationName );
116 inline unsigned int getSize() {
return myNodes.size(); }
void setCentralNodeName(const MAKRti::DtString &string)
Set the central node name.
Definition: networkMapCentralNode.h:146
std::vector< DtNetworkMapNode * > myNodes
Definition: networkMapCentralNode.h:164
void shutdown()
Does proper shutting down.
DtNetworkMapNode * getNodeByFederateName(const MAKRti::DtString &fedName, const MAKRti::DtString &federationName)
gets a node by its federate name
bool drawText()
Do we draw the id text?
Definition: networkMapCentralNode.h:113
void setHasExec(bool hasAnExec)
Sets whether we have an exec or not.
Definition: networkMapCentralNode.h:135
bool myHasExec
Definition: networkMapCentralNode.h:156
void updatePositions(std::vector< DtNetworkMapNode * > &myNodes, bool areForwarders=false)
private function that does the updating of a vector of nodes that are passed in
bool myIsLightweight
Definition: networkMapCentralNode.h:157
void searchForDeadNodes()
Searches for dead nodes.
void setCentralForwarderNode(const MAKRti::DtString &name, int port, const MAKRti::DtString &displayName, int id, float radius)
Set the central node.
DtNetworkMapNode * getNodeByFederateHandle(unsigned int fedHandle, const MAKRti::DtString &federationName)
gets a node by its federate handle
virtual ~DtNetworkMapCentralNode()
Destructor.
MAKRti::DtString getCentralNodeName()
Gets the central node name string.
Definition: networkMapCentralNode.h:123
void setCentraLightweightlNode(const MAKRti::DtString &name, const MAKRti::DtString &displayName, int id, float radius)
Set the central node.
float myRadius
Definition: networkMapCentralNode.h:161
int getPort()
Gets the central node port.
Definition: networkMapCentralNode.h:126
_vec2 calcFederateDestination(int max_federates, int federate_no)
Calculates the destination.
bool searchNodes(int fedId, const MAKRti::DtString &federationName, int &resultIndex)
search nodes
int removeNode(unsigned int fedHandle, const MAKRti::DtString &federationName)
Removes a node by its federate handle.
void removeForwarderNode(const MAKRti::DtString &name, int port)
Removes a forwarder node.
Includes –—.
Definition: networkMapNode.h:15
DtNetworkMapNode * addForwarderNode(int id, const MAKRti::DtString &name, int port, float rad)
Adds a forwarder node.
int myPort
Definition: networkMapCentralNode.h:163
bool drawLines()
Do we draw the lines?
Definition: networkMapCentralNode.h:110
bool myShouldDrawLines
Definition: networkMapCentralNode.h:158
DtNetworkMapNode * getNode(unsigned int index)
index into the nodes
void updateFederatePositions()
Calculates where the federates should be placed.
void setIsLightweight(bool isLw)
Sets whether we are viewing a lightweight connection.
Definition: networkMapCentralNode.h:143
DtNetworkMapNode * addExecNode(int id, const MAKRti::DtString &name, float rad)
Adds a forwarder node.
void clearTouchedNodes()
Clears nodes that have been touched.
Definition: networkMapCentralNode.h:17
DtNetworkMapNode * getForwarderNode(unsigned int index)
index into the nodes
const std::vector< DtNetworkMapNode * > getNodes()
get the nodes
Definition: networkMapCentralNode.h:120
void updateForwarderPositions()
Updates the forwarder positions.
Definition: networkMapNode.h:28
void clearList()
clear the nodes
unsigned int getFwdSize()
Definition: networkMapCentralNode.h:117
bool hasCentralForwarder() const
Gets whether central node is a forwarder.
bool isLightweight()
Gets whether we are viewing a lightweight connection.
Definition: networkMapCentralNode.h:129
DtNetworkMapCentralNode()
Constructor.
void update(float delta)
Updates all the nodes.
DtNetworkMapNode * getForwarderNodeByName(const MAKRti::DtString &forwarderName, int port)
get a forwarder by name
bool hasRtiExec()
Gets whether we have an rtiexec.
Definition: networkMapCentralNode.h:132
unsigned int getSize()
return the size
Definition: networkMapCentralNode.h:116
bool myHasDoneShutdown
Definition: networkMapCentralNode.h:160
void setCentralNodePort(int port)
Set the central node port.
Definition: networkMapCentralNode.h:149
MAKRti::DtString myName
Definition: networkMapCentralNode.h:162
bool myShouldDrawText
Definition: networkMapCentralNode.h:159
DtNetworkMapNode * 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.
std::vector< DtNetworkMapNode * > myForwarderNodes
Definition: networkMapCentralNode.h:165