This holds onto adaptors for each comm protocol, manages the heartbeat, and manages the loop rate.
Definition at line 66 of file CommsManager.H.
Public Member Functions | |
CommsManager (std::string name) | |
Standard constructor. | |
CommsManager (std::string name, Protocols defaultProt) | |
Standard constructor. | |
~CommsManager () | |
void | setName (std::string name) |
Sets the name for the module. | |
void | initialize () |
Initializes the default communication adaptor. | |
RunState | runUpdate () |
Updates all objects by sending and receiving pending data, as well as sleeps for the specified amount of time (default ~10hz). | |
void | registerObject (Capability *someObject) |
Takes an uninitialized Capability and connects it to the default communication adaptor. | |
void | deregister (Capability *someObject) |
Takes an already registered Capability and removes it from all lists so that it can be safely disposed of. | |
void | registerSupplier (Capability *someObject) |
Takes an uninitialized Capability and sets it up as a supplier. | |
void | registerConsumer (Capability *someObject) |
Takes an uninitialized Capability and sets it up as a consumer. | |
void | cleanUp () |
Takes care of shutting down communication adaptors, disconnecting all objects, and sending the quit message. | |
RunState | getState () |
Returns the current state, according the the heartbeat. | |
void | setIdle () |
void | setQuit () |
void | setReset () |
void | setRun () |
void | setRestart () |
void | setInfoState () |
void | setGlobalConfigFile (std::string val) |
Sets the globalConfig file name. | |
std::string | getName () |
Accessor function for the name variable. | |
std::string | getRealName () |
Accesor function for the real name variable. | |
void | setRealName (std::string name) |
void | setHelpString (std::string helpstring) |
void | setNoSleep () |
Turns off the sleep function of the CommsManager. | |
void | setSleep (double seconds) |
Sets the sleep time, and the heartbeat TTL to twice this. | |
void | setMinSleep (double seconds) |
Sets the minimum sleep time. | |
void | setSleepOnly (double seconds) |
Sets the sleep time, does not touch the heartbeat. | |
void | setHeartbeatOnly (double seconds) |
Sets the heartbeat time, without touching the sleep time. | |
void | setNoHeartbeat () |
Turns off the heartbeat altogether. | |
void | setPreSleep () |
Sets the CommsManager to sleep before updating all data objects. | |
void | setPostSleep () |
Sets the Commsmanager to sleep after updating all data objects. | |
void | setTriggerMode (bool val) |
Sets the commsManager to loop until a trigger is activated. | |
bool | checkTriggers (Capability *someobject) |
Checks this object against all triggers, to see if it will activate any. | |
bool | activeTrigger () |
Checks to see if any triggers are active. | |
void | addTrigger (Trigger someTrigger) |
Adds a trigger to the trigger list. | |
void | resetTriggers () |
Resets the active state of all triggers. | |
void | setMcpRequestMode (bool val) |
Sets whether or not we do MCP requests. | |
void | setIdleDataProcessing (bool val) |
Sets whether or not we do data processing when idle. | |
void | parseOptions (int argc, char *argv[]) |
Parses standard command line options. | |
void | parseOptions (int argc, char *argv[], char *optstring) |
Parses standard and extended command line options. | |
void | sendInfo () |
This function now also prints out the available Capabilitys in the module, to make it easier to build configuration files. | |
void | closeConnections () |
Protected Member Functions | |
void | handleMCPReply (McpRequestInfoStruct someinfo) |
Private Member Functions | |
void | sleep () |
This function tries to give a tighter guarantee on program execution rate. | |
void | updateObjects () |
void | handleMCP () |
Private Attributes | |
string | m_name |
string | m_realName |
string | m_helpstring |
bool | initialized |
CommsHelper * | myCommsHelper |
RunState | state |
McpRequest | m_mcpRequest |
Heartbeat | m_heartbeat |
Protocols | defaultProtocol |
vector< Capability * > | objectList |
vector< Trigger > | triggerList |
timespec | sleepInterval |
Number of suppliers of each interface datastruct and infostruct currently active. | |
bool | m_doSleep |
bool | m_doHeartbeat |
bool | m_doMcpRequests |
bool | m_doIdleProcessing |
bool | m_laxRequests |
bool | m_nameServiceOverride |
bool | preSleep |
bool | onlyTrigger |
std::string | m_globalConfigFile |
RunState | m_currState |
Time | endsleep |
Time | minSleep |
CommsManager | ( | std::string | name | ) |
Standard constructor.
name | The name identifying the module as a whole, which will be used to send commands to it. |
Definition at line 44 of file CommsManager.cpp.
References commsHelperFactory, Heartbeat::data, CommsManager::defaultProtocol, CommsManager::endsleep, WURDE::g_globalCommsManager_ptr, Heartbeat::info, CommsManager::initialized, CommsManager::m_currState, CommsManager::m_doHeartbeat, CommsManager::m_doIdleProcessing, CommsManager::m_doMcpRequests, CommsManager::m_doSleep, CommsManager::m_globalConfigFile, CommsManager::m_heartbeat, CommsManager::m_helpstring, CommsManager::m_laxRequests, CommsManager::m_name, CommsManager::m_nameServiceOverride, CommsManager::m_realName, CommsManager::myCommsHelper, Time::now(), CommsManager::onlyTrigger, CommsManager::preSleep, WURDE::PROTOCOL_CMUIPC, CommsManager::sleepInterval, HeartbeatInfoStruct::state, WURDE::STATE_RUN, and HeartbeatDataStruct::TTL.
CommsManager | ( | std::string | name, | |
Protocols | defaultProt | |||
) |
Standard constructor.
name | The name identifying the module as a whole, which will be used to send commands to it. | |
defaultProt | The protocol to use as the primary protocol for the module-- currently does nothing. |
Definition at line 91 of file CommsManager.cpp.
References commsHelperFactory, Heartbeat::data, CommsManager::defaultProtocol, CommsManager::endsleep, WURDE::g_globalCommsManager_ptr, Heartbeat::info, CommsManager::initialized, CommsManager::m_currState, CommsManager::m_doHeartbeat, CommsManager::m_doIdleProcessing, CommsManager::m_doMcpRequests, CommsManager::m_doSleep, CommsManager::m_globalConfigFile, CommsManager::m_heartbeat, CommsManager::m_helpstring, CommsManager::m_laxRequests, CommsManager::m_name, CommsManager::m_nameServiceOverride, CommsManager::m_realName, CommsManager::myCommsHelper, Time::now(), CommsManager::onlyTrigger, CommsManager::preSleep, CommsManager::sleepInterval, HeartbeatInfoStruct::state, WURDE::STATE_RUN, and HeartbeatDataStruct::TTL.
~CommsManager | ( | ) | [inline] |
Definition at line 81 of file CommsManager.H.
void setName | ( | std::string | name | ) |
Sets the name for the module.
Definition at line 559 of file CommsManager.cpp.
References CommsManager::m_heartbeat, CommsManager::m_name, CommsManager::myCommsHelper, CommsHelper::setName(), and Heartbeat::setStreamName().
Referenced by CommsManager::parseOptions().
void initialize | ( | ) |
Initializes the default communication adaptor.
Called automatically on the first registerObject
Definition at line 138 of file CommsManager.cpp.
References Heartbeat::info, CommsHelper::initialize(), CommsManager::initialized, HeartbeatInfoStruct::interfaces, CommsManager::m_currState, CommsManager::m_doHeartbeat, CommsManager::m_doMcpRequests, CommsManager::m_heartbeat, CommsManager::m_mcpRequest, CommsManager::m_name, HeartbeatInfoStruct::managedType, WURDE::MESSAGE_INFO, HeartbeatInfoStruct::mType, CommsManager::myCommsHelper, WURDE::PROC_MANAGED, Heartbeat::publishInfo(), CommsManager::registerConsumer(), CommsManager::registerSupplier(), Capability::setAutoTag(), CommsManager::setMinSleep(), McpRequest::setQueueMode(), Heartbeat::setStreamName(), McpRequest::setStreamName(), HeartbeatInfoStruct::source, HeartbeatInfoStruct::state, WURDE::STATE_INFO, InterfaceStream::streamname, HeartbeatInfoStruct::target, and InterfaceStream::type.
Referenced by CommsManager::registerObject().
RunState runUpdate | ( | ) |
Updates all objects by sending and receiving pending data, as well as sleeps for the specified amount of time (default ~10hz).
Also sends the heartbeat. The heartbeat and sleep can be disabled.
Clean up this loop!!
Definition at line 180 of file CommsManager.cpp.
References CommsManager::activeTrigger(), Heartbeat::data, Heartbeat::getNextInfo(), Writable::getValue(), CommsManager::handleMCP(), CommsManager::m_currState, CommsManager::m_doHeartbeat, CommsManager::m_doIdleProcessing, CommsManager::m_doMcpRequests, CommsManager::m_doSleep, CommsManager::m_heartbeat, CommsManager::m_mcpRequest, CommsManager::m_name, WURDE::MESSAGE_INFO, WURDE::MESSAGE_REQUEST, HeartbeatInfoStruct::moduleName, HeartbeatInfoStruct::mType, CommsManager::myCommsHelper, Heartbeat::newInfo(), Capability::newRequest(), Time::now(), CommsManager::onlyTrigger, CommsManager::preSleep, Heartbeat::publishData(), Heartbeat::requests, CommsManager::resetTriggers(), McpRequest::runUpdate(), Heartbeat::runUpdate(), CommsHelper::runUpdate(), CommsManager::sendInfo(), CommsManager::sleep(), HeartbeatInfoStruct::state, WURDE::STATE_IDLE, WURDE::STATE_INFO, WURDE::STATE_QUIT, WURDE::STATE_RESET, WURDE::STATE_RESTART, WURDE::STATE_RUN, HeartbeatDataStruct::timestamp, CommsManager::triggerList, and CommsManager::updateObjects().
Referenced by CommsManager::cleanUp(), main(), and GuiControl::Tick().
void registerObject | ( | Capability * | someObject | ) |
Takes an uninitialized Capability and connects it to the default communication adaptor.
Definition at line 276 of file CommsManager.cpp.
References WURDE::g_logdebug, CommsHelper::getCOMBase(), Capability::getGlobalName(), Capability::getInterfaceName(), CommsManager::initialize(), CommsManager::initialized, CommsManager::myCommsHelper, CommsManager::objectList, Capability::setCOMObject(), and Capability::setManager().
Referenced by CommsManager::registerConsumer(), and CommsManager::registerSupplier().
void deregister | ( | Capability * | someObject | ) |
Takes an already registered Capability and removes it from all lists so that it can be safely disposed of.
Will call disconnect on said object, will not delete it. Please avoid using dynamically allocated objects; this function is not necessary unless you use them.
Definition at line 289 of file CommsManager.cpp.
References Capability::disconnect(), and CommsManager::objectList.
void registerSupplier | ( | Capability * | someObject | ) |
Takes an uninitialized Capability and sets it up as a supplier.
Definition at line 315 of file CommsManager.cpp.
References Capability::activateSupplier(), and CommsManager::registerObject().
Referenced by CommsManager::initialize(), main(), and WURDE::registerSupplier().
void registerConsumer | ( | Capability * | someObject | ) |
Takes an uninitialized Capability and sets it up as a consumer.
Definition at line 325 of file CommsManager.cpp.
References Capability::activateConsumer(), and CommsManager::registerObject().
Referenced by CommsManager::initialize(), main(), and WURDE::registerConsumer().
void cleanUp | ( | ) |
Takes care of shutting down communication adaptors, disconnecting all objects, and sending the quit message.
Definition at line 335 of file CommsManager.cpp.
References CommsHelper::disconnect(), WURDE::g_debug(), Heartbeat::info, CommsManager::initialized, CommsManager::m_doHeartbeat, CommsManager::m_heartbeat, CommsManager::myCommsHelper, CommsManager::objectList, Heartbeat::publishInfo(), CommsHelper::runUpdate(), Heartbeat::runUpdate(), CommsManager::runUpdate(), HeartbeatInfoStruct::state, WURDE::STATE_QUIT, and HeartbeatInfoStruct::target.
RunState getState | ( | ) | [inline] |
Returns the current state, according the the heartbeat.
Will allow MCP to specify the state of the process.
Definition at line 134 of file CommsManager.H.
References CommsManager::m_currState.
Referenced by main().
void setIdle | ( | ) |
Definition at line 438 of file CommsManager.cpp.
References Heartbeat::info, CommsManager::m_currState, CommsManager::m_heartbeat, Heartbeat::publishInfo(), HeartbeatInfoStruct::state, and WURDE::STATE_IDLE.
void setQuit | ( | ) |
Definition at line 443 of file CommsManager.cpp.
References Heartbeat::info, CommsManager::m_currState, CommsManager::m_heartbeat, Heartbeat::publishInfo(), HeartbeatInfoStruct::state, and WURDE::STATE_QUIT.
Referenced by handler().
void setReset | ( | ) |
Definition at line 448 of file CommsManager.cpp.
References Heartbeat::info, CommsManager::m_currState, CommsManager::m_heartbeat, Heartbeat::publishInfo(), HeartbeatInfoStruct::state, and WURDE::STATE_RESET.
void setRun | ( | ) |
Definition at line 454 of file CommsManager.cpp.
References Heartbeat::info, CommsManager::m_currState, CommsManager::m_heartbeat, Heartbeat::publishInfo(), HeartbeatInfoStruct::state, and WURDE::STATE_RUN.
void setRestart | ( | ) |
Definition at line 460 of file CommsManager.cpp.
References Heartbeat::info, CommsManager::m_currState, CommsManager::m_heartbeat, Heartbeat::publishInfo(), HeartbeatInfoStruct::state, and WURDE::STATE_RESTART.
void setInfoState | ( | ) |
Definition at line 466 of file CommsManager.cpp.
References Heartbeat::info, CommsManager::m_currState, CommsManager::m_doHeartbeat, CommsManager::m_doSleep, CommsManager::m_heartbeat, HeartbeatInfoStruct::state, and WURDE::STATE_INFO.
Referenced by CommsManager::parseOptions().
void setGlobalConfigFile | ( | std::string | val | ) | [inline] |
Sets the globalConfig file name.
Definition at line 146 of file CommsManager.H.
References CommsManager::m_globalConfigFile.
Referenced by CommsManager::parseOptions().
std::string getName | ( | ) | [inline] |
Accessor function for the name variable.
Definition at line 151 of file CommsManager.H.
References CommsManager::m_name.
Referenced by WallBuilder::activateConsumer(), VisionControl::activateConsumer(), VectorMoverTransport::activateConsumer(), SoundController::activateConsumer(), RobotDrive::activateConsumer(), RangeFinder::activateConsumer(), PTUnit::activateConsumer(), Power::activateConsumer(), PlaybackControl::activateConsumer(), ObstacleAvoiderTransport::activateConsumer(), McpRequest::activateConsumer(), MCPControl::activateConsumer(), LoggerTransport::activateConsumer(), ImageTransport::activateConsumer(), ImageDisplay::activateConsumer(), Heartbeat::activateConsumer(), Foo::activateConsumer(), FaceDetector::activateConsumer(), Egomotion::activateConsumer(), Bumper::activateConsumer(), BlobFinder::activateConsumer(), and main().
std::string getRealName | ( | ) | [inline] |
Accesor function for the real name variable.
Definition at line 156 of file CommsManager.H.
References CommsManager::m_realName.
void setRealName | ( | std::string | name | ) | [inline] |
Definition at line 158 of file CommsManager.H.
References CommsManager::m_realName.
Referenced by main().
void setHelpString | ( | std::string | helpstring | ) | [inline] |
Definition at line 160 of file CommsManager.H.
References CommsManager::m_helpstring.
Referenced by main().
void setNoSleep | ( | ) | [inline] |
Turns off the sleep function of the CommsManager.
Definition at line 164 of file CommsManager.H.
References CommsManager::m_doSleep.
Referenced by main().
void setSleep | ( | double | seconds | ) |
Sets the sleep time, and the heartbeat TTL to twice this.
Definition at line 359 of file CommsManager.cpp.
References Heartbeat::data, CommsManager::m_heartbeat, CommsManager::sleepInterval, and HeartbeatDataStruct::TTL.
Referenced by main().
void setMinSleep | ( | double | seconds | ) |
Sets the minimum sleep time.
Definition at line 373 of file CommsManager.cpp.
References CommsManager::minSleep, Time::setSeconds(), and Time::setUSeconds().
Referenced by CommsManager::initialize().
void setSleepOnly | ( | double | seconds | ) |
Sets the sleep time, does not touch the heartbeat.
Definition at line 387 of file CommsManager.cpp.
References CommsManager::sleepInterval.
void setHeartbeatOnly | ( | double | seconds | ) |
Sets the heartbeat time, without touching the sleep time.
If you make this less than the sleep time, you will regret it.
Definition at line 400 of file CommsManager.cpp.
References Heartbeat::data, CommsManager::m_heartbeat, and HeartbeatDataStruct::TTL.
void setNoHeartbeat | ( | ) | [inline] |
Turns off the heartbeat altogether.
Generally shouldn't be done.
Definition at line 190 of file CommsManager.H.
References CommsManager::m_doHeartbeat.
Referenced by main().
void setPreSleep | ( | ) | [inline] |
Sets the CommsManager to sleep before updating all data objects.
Definition at line 195 of file CommsManager.H.
References CommsManager::preSleep.
Referenced by main().
void setPostSleep | ( | ) | [inline] |
Sets the Commsmanager to sleep after updating all data objects.
(Default)
Definition at line 200 of file CommsManager.H.
References CommsManager::preSleep.
void setTriggerMode | ( | bool | val | ) | [inline] |
Sets the commsManager to loop until a trigger is activated.
Note that if no triggers are set, this has no effect, and if there are triggers but this is not set, they have no effect. Default false.
Definition at line 207 of file CommsManager.H.
References CommsManager::onlyTrigger.
bool checkTriggers | ( | Capability * | someobject | ) |
Checks this object against all triggers, to see if it will activate any.
Definition at line 404 of file CommsManager.cpp.
References CommsManager::triggerList.
Referenced by CommsManager::updateObjects().
bool activeTrigger | ( | ) |
Checks to see if any triggers are active.
Definition at line 418 of file CommsManager.cpp.
References CommsManager::triggerList.
Referenced by CommsManager::runUpdate().
void addTrigger | ( | Trigger | someTrigger | ) | [inline] |
Adds a trigger to the trigger list.
Definition at line 223 of file CommsManager.H.
References CommsManager::triggerList.
void resetTriggers | ( | ) |
Resets the active state of all triggers.
Definition at line 430 of file CommsManager.cpp.
References CommsManager::triggerList.
Referenced by CommsManager::runUpdate().
void setMcpRequestMode | ( | bool | val | ) | [inline] |
Sets whether or not we do MCP requests.
MCP sets this to false
Definition at line 233 of file CommsManager.H.
References CommsManager::m_doMcpRequests.
Referenced by main().
void setIdleDataProcessing | ( | bool | val | ) | [inline] |
Sets whether or not we do data processing when idle.
MCP must do this to receive control messages.
Definition at line 239 of file CommsManager.H.
References CommsManager::m_doIdleProcessing.
Referenced by main().
void parseOptions | ( | int | argc, | |
char * | argv[] | |||
) |
Parses standard command line options.
argc | This should be argc straight from the command line | |
argv | This should be argv straight from the command line |
Definition at line 474 of file CommsManager.cpp.
Referenced by main().
void parseOptions | ( | int | argc, | |
char * | argv[], | |||
char * | optstring | |||
) |
Parses standard and extended command line options.
Pass in a string of possible option characters as the optstring parameter. Returns a multimap.
argc | This should be argc straight from the command line | |
argv | This should be argv straight from the command line | |
optstring | This should be a valid option string to be used by getOpt, WITHOUT the options r, o, or n, as these are reserved by the framework. |
Definition at line 478 of file CommsManager.cpp.
References WURDE::g_debug(), WURDE::g_globalConfiguration, WURDE::g_logdebug, WURDE::g_robotLoggerPtr, WURDE::g_warn(), WURDEConfiguration::getLogLevel(), CommsManager::m_globalConfigFile, CommsManager::m_helpstring, CommsManager::m_name, CommsManager::m_nameServiceOverride, CommsManager::m_realName, PACKAGE_STRING, WURDE::parseWURDEConfig(), WURDEConfiguration::readEnvironment(), CommsManager::setGlobalConfigFile(), CommsManager::setInfoState(), Logger::setLogLevel(), CommsManager::setName(), and WURDEConfiguration::setOption().
void sendInfo | ( | ) |
This function now also prints out the available Capabilitys in the module, to make it easier to build configuration files.
This will be handled automatically by the CommsManager runUpdate function, so don't use it unless you're doing something strange.
Definition at line 570 of file CommsManager.cpp.
References Heartbeat::info, HeartbeatInfoStruct::interfaces, CommsManager::m_heartbeat, CommsManager::m_name, WURDE::MESSAGE_INFO, HeartbeatInfoStruct::mType, CommsManager::objectList, Heartbeat::publishInfo(), Heartbeat::runUpdate(), HeartbeatInfoStruct::source, HeartbeatInfoStruct::state, WURDE::STATE_INFO, InterfaceStream::streamname, HeartbeatInfoStruct::target, and InterfaceStream::type.
Referenced by CommsManager::runUpdate().
void closeConnections | ( | ) | [inline] |
Definition at line 267 of file CommsManager.H.
References CommsHelper::closeConnections(), and CommsManager::myCommsHelper.
Referenced by Module::startUp().
void handleMCPReply | ( | McpRequestInfoStruct | someinfo | ) | [protected] |
Definition at line 600 of file CommsManager.cpp.
References WURDE::g_debug(), McpRequestInfoStruct::gblname, Writable::getValue(), McpRequest::info, CommsManager::m_mcpRequest, CommsManager::objectList, McpRequestInfoStruct::robotModule, McpRequestInfoStruct::stream, and McpRequestInfoStruct::type.
Referenced by CommsManager::handleMCP().
void sleep | ( | ) | [private] |
This function tries to give a tighter guarantee on program execution rate.
This definitely doesn't count as a real-time guarantee, but it's closer than it was.
Definition at line 622 of file CommsManager.cpp.
References CommsManager::endsleep, CommsManager::minSleep, CommsManager::sleepInterval, Time::timespec(), and Time::zero().
Referenced by CommsManager::runUpdate().
void updateObjects | ( | ) | [private] |
Definition at line 649 of file CommsManager.cpp.
References CommsManager::checkTriggers(), WURDE::g_debug(), McpRequestInfoStruct::gblname, CommsManager::m_doMcpRequests, CommsManager::m_mcpRequest, CommsManager::m_name, WURDE::MESSAGE_REQUEST, McpRequestInfoStruct::mType, CommsManager::objectList, CommsManager::onlyTrigger, Capability::publishRequest(), McpRequest::requests, Writable::setValueAndLock(), McpRequestInfoStruct::source, WURDE::STAT_NULL, WURDE::STAT_PENDING, WURDE::STAT_REQUEST, McpRequestInfoStruct::status, McpRequestInfoStruct::strategy, McpRequestInfoStruct::target, and McpRequestInfoStruct::type.
Referenced by CommsManager::runUpdate().
void handleMCP | ( | ) | [private] |
Definition at line 681 of file CommsManager.cpp.
References WURDE::g_debug(), WURDE::g_error(), McpRequest::getNextInfo(), CommsManager::handleMCPReply(), McpRequest::info, CommsManager::m_laxRequests, CommsManager::m_mcpRequest, CommsManager::m_name, WURDE::MESSAGE_INFO, WURDE::MESSAGE_REQUEST, McpRequestInfoStruct::mType, McpRequest::newInfo(), Capability::publishRequest(), McpRequest::requests, McpRequestInfoStruct::source, WURDE::STAT_FAIL, WURDE::STAT_OKAY, WURDE::STAT_REQUEST, McpRequestInfoStruct::status, WURDE::STRAT_ASSIGNED, WURDE::STRAT_AUTO, McpRequestInfoStruct::strategy, and McpRequestInfoStruct::target.
Referenced by CommsManager::runUpdate().
string m_name [private] |
Definition at line 279 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::getName(), CommsManager::handleMCP(), CommsManager::initialize(), CommsManager::parseOptions(), CommsManager::runUpdate(), CommsManager::sendInfo(), CommsManager::setName(), and CommsManager::updateObjects().
string m_realName [private] |
Definition at line 281 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::getRealName(), CommsManager::parseOptions(), and CommsManager::setRealName().
string m_helpstring [private] |
Definition at line 283 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::parseOptions(), and CommsManager::setHelpString().
bool initialized [private] |
Definition at line 284 of file CommsManager.H.
Referenced by CommsManager::cleanUp(), CommsManager::CommsManager(), CommsManager::initialize(), and CommsManager::registerObject().
CommsHelper* myCommsHelper [private] |
Definition at line 287 of file CommsManager.H.
Referenced by CommsManager::cleanUp(), CommsManager::closeConnections(), CommsManager::CommsManager(), CommsManager::initialize(), CommsManager::registerObject(), CommsManager::runUpdate(), and CommsManager::setName().
Definition at line 289 of file CommsManager.H.
McpRequest m_mcpRequest [private] |
Definition at line 291 of file CommsManager.H.
Referenced by CommsManager::handleMCP(), CommsManager::handleMCPReply(), CommsManager::initialize(), CommsManager::runUpdate(), and CommsManager::updateObjects().
Heartbeat m_heartbeat [private] |
Definition at line 292 of file CommsManager.H.
Referenced by CommsManager::cleanUp(), CommsManager::CommsManager(), CommsManager::initialize(), CommsManager::runUpdate(), CommsManager::sendInfo(), CommsManager::setHeartbeatOnly(), CommsManager::setIdle(), CommsManager::setInfoState(), CommsManager::setName(), CommsManager::setQuit(), CommsManager::setReset(), CommsManager::setRestart(), CommsManager::setRun(), and CommsManager::setSleep().
Protocols defaultProtocol [private] |
vector<Capability*> objectList [private] |
Definition at line 295 of file CommsManager.H.
Referenced by CommsManager::cleanUp(), CommsManager::deregister(), CommsManager::handleMCPReply(), CommsManager::registerObject(), CommsManager::sendInfo(), and CommsManager::updateObjects().
vector<Trigger> triggerList [private] |
Definition at line 296 of file CommsManager.H.
Referenced by CommsManager::activeTrigger(), CommsManager::addTrigger(), CommsManager::checkTriggers(), CommsManager::resetTriggers(), and CommsManager::runUpdate().
struct timespec sleepInterval [private] |
Number of suppliers of each interface datastruct and infostruct currently active.
See the m_counters array for indexing information.
Definition at line 314 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::setSleep(), CommsManager::setSleepOnly(), and CommsManager::sleep().
bool m_doSleep [private] |
Definition at line 315 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::runUpdate(), CommsManager::setInfoState(), and CommsManager::setNoSleep().
bool m_doHeartbeat [private] |
Definition at line 316 of file CommsManager.H.
Referenced by CommsManager::cleanUp(), CommsManager::CommsManager(), CommsManager::initialize(), CommsManager::runUpdate(), CommsManager::setInfoState(), and CommsManager::setNoHeartbeat().
bool m_doMcpRequests [private] |
Definition at line 317 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::initialize(), CommsManager::runUpdate(), CommsManager::setMcpRequestMode(), and CommsManager::updateObjects().
bool m_doIdleProcessing [private] |
Definition at line 318 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::runUpdate(), and CommsManager::setIdleDataProcessing().
bool m_laxRequests [private] |
Definition at line 319 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), and CommsManager::handleMCP().
bool m_nameServiceOverride [private] |
Definition at line 320 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), and CommsManager::parseOptions().
bool preSleep [private] |
Definition at line 321 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::runUpdate(), CommsManager::setPostSleep(), and CommsManager::setPreSleep().
bool onlyTrigger [private] |
Definition at line 322 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::runUpdate(), CommsManager::setTriggerMode(), and CommsManager::updateObjects().
std::string m_globalConfigFile [private] |
Definition at line 324 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::parseOptions(), and CommsManager::setGlobalConfigFile().
RunState m_currState [private] |
Definition at line 325 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), CommsManager::getState(), CommsManager::initialize(), CommsManager::runUpdate(), CommsManager::setIdle(), CommsManager::setInfoState(), CommsManager::setQuit(), CommsManager::setReset(), CommsManager::setRestart(), and CommsManager::setRun().
Definition at line 326 of file CommsManager.H.
Referenced by CommsManager::CommsManager(), and CommsManager::sleep().
Definition at line 327 of file CommsManager.H.
Referenced by CommsManager::setMinSleep(), and CommsManager::sleep().