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 | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions

Coordinates Assistant activities. More...

+ Collaboration diagram for DtRtiAssistant:

Public Member Functions

 DtRtiAssistant (int &argc, char **argv, bool autoExit, DtAssistantShowDialogMsg::DtAssistantShowDialogEnum showDialog=DtAssistantShowDialogMsg::DoNotShowDialog, DtAssistantShutdownMsg::DtShutdownEnum shouldShutdown=DtAssistantShutdownMsg::DtDoNotShutdown, bool disableMulticast=false)
 Constructor. More...
 
virtual ~DtRtiAssistant ()
 Destructor. More...
 
void tick ()
 

Static Public Member Functions

static void tick (void *usr)
 Ticks the server and peer to receive and process new messages. More...
 

Protected Types

typedef std::vector
< DtAssistantMgr * > 
DtAssistantMgrVector
 

Protected Member Functions

virtual void initializeAssistantServer (int &argc, char **argv, DtAssistantShowDialogMsg::DtAssistantShowDialogEnum showDialog)
 Called by constructor. More...
 
virtual bool processCommands (DtAssistantShowDialogMsg::DtAssistantShowDialogEnum showDialog, DtAssistantShutdownMsg::DtShutdownEnum shouldShutdown)
 If there are available commands we should process them and return. More...
 
virtual bool showDialogOnConnectedAssistant (DtAssistantShowDialogMsg::DtAssistantShowDialogEnum dialog)
 Called by constructor. More...
 
virtual void sendShutdownToConnectedAssistant (DtAssistantShutdownMsg::DtShutdownEnum shouldShutDown)
 Called by constructor. More...
 
virtual bool connectToAssistant ()
 Called by constructor. More...
 
virtual void processShutdown (bool shouldConfirm)
 Called by the callback function to process a shutdown all request. More...
 

Static Protected Member Functions

static void processShutdown (void *usr)
 Callback to process a request to shutdown all components from the GUI. More...
 

Protected Attributes

std::shared_ptr
< DtRtiAssistantServer
myServer
 The Assistant server from which new messages will arrive. More...
 
std::shared_ptr
< DtRtiAssistantPeer
myPeer
 The Assistant peer which communicates with other Assistants. More...
 
QApplication * myQApp
 The Qt Application for the Assistant. More...
 
DtAssistantMgrVector myManagers
 List of all managers. More...
 
DtSignalToCallbackMappermyShutdownSignalMapper
 Maps shutdown signals to the shutdown callback function. More...
 
DtSignalToCallbackMappermyTickSignalMapper
 Maps tick signals to the tick callback function. More...
 
QTimer * myTickTimer
 Timer which causes tick to occur. More...
 
int myServerPortNumber
 Port the RTIAssistant server should bind to. More...
 
int myClientPortNumber
 Port the RTI Assistant client should use to communicate. More...
 
bool myAutoExit
 Indicates whether or not the Assistant should exit when the last connection has closed. More...
 
bool myShutdownInProgress
 Indicates that a user requested shutdown is currently in progress. More...
 
DtTime myExitTime
 Time at which Assistant should be closed due to loss of all connections. More...
 
DtClock myClock
 Clock for timeouts. More...
 
std::shared_ptr< DtFilePrinter > myLogPrinter
 Assistant printer. More...
 
MAKRti::DtString myAssistantLogName
 Assistant log name. More...
 
DtAssistantSignalRouter mySignalRouter
 The signal router between all of the assistant managers. More...
 
Managers
std::shared_ptr
< DtAssistantComponentMgr
myCompMgr
 The Assistant component manager, which maintains information on all attached local RTI components. More...
 
std::shared_ptr
< DtAssistantPreferencesInfoMgr
myPrefMgr
 The Assistant preferences manager, which maintains the current settings for all user configurable Assistant preferences. More...
 
std::shared_ptr
< DtAssistantRidConfigInfoMgr
myRidInfoMgr
 The Assistant RID Configuration info manager. More...
 
std::shared_ptr
< DtAssistantConnectionInfoMgr
myConnInfoMgr
 The Assistant connection information manager, which maintains a list of all known connection configurations and their current states. More...
 
std::shared_ptr
< DtAssistantFederationsInfoMgr
myFederationInfoMgr
 The Assistant federation information manager, which maintains the current state of all known federations. More...
 
std::shared_ptr
< DtAssistantForwarderCompInfoMgr
myForwarderInfoMgr
 The Assistant forwarder component information manager, which maintains the current state of all known forwarders. More...
 
std::shared_ptr
< DtAssistantTrayIconMgr
myTrayIconMgr
 The Assistant tray icon manager, which manages the icon and its menu. More...
 
std::shared_ptr
< DtAssistantLogFileMgr
myLogFileMgr
 The Assistant tray icon manager, which manages the icon and its menu. More...
 
std::shared_ptr
< DtAssistantPopupMsgMgr
myPopupMgr
 The Assistant popup message manager, which display popup dialogs. More...
 
std::shared_ptr
< DtAssistantConnQueryMgr
myConnQueryMgr
 The Assistant connection query manager, which processes queries for connection info from connecting components. More...
 
std::shared_ptr
< DtAssistantLicenseQueryMgr
myLicQueryMgr
 The Assistant license query manager, which processes queries for license server info from connecting components. More...
 
std::shared_ptr
< DtAssistantLatencyTestMgr
myLatTestMgr
 The Assistant latency test manager, which initiates and reports results of federate latency tests. More...
 
std::shared_ptr
< DtAssistantPreferencesViewMgr
myPrefViewMgr
 The Assistant preferences view manager, which manages the preferences dialog to display and update user preferences. More...
 
std::shared_ptr
< DtRidConfigViewMgr
myRidConfigViewMgr
 The RID config view manager, which manages the RID Config Dialog for displaying and updating RID Settings. More...
 
std::shared_ptr
< DtAssistantFederationsViewMgr
myFederationsViewMgr
 The Assistant federations view manager, which is responsible for displaying federation and network information in the Federations View. More...
 
std::shared_ptr
< DtAssistantFederateViewMgr
myFederateViewMgr
 The Assistant federate info view manager, which is responsible for displaying federate information in the Federate Info Dialog. More...
 
std::shared_ptr
< DtAssistantFomViewMgr
myFomViewMgr
 The Assistant FOM view manager, which is responsible for displaying FOM information in the Federate FOM Dialog. More...
 
std::shared_ptr
< DtRemoteAssistantViewMgr
myRemoteAssistantViewMgr
 The Remote Assistant View. More...
 
std::shared_ptr
< DtRemoteAssistantInfoMgr
myRemoteAssistantInfoMgr
 The Remote Assistant Info Manager. More...
 

Private Member Functions

 DtRtiAssistant (const DtRtiAssistant &)
 Copy Constructor not implemented – Copy Not Allowed! More...
 
DtRtiAssistantoperator= (const DtRtiAssistant &)
 Assignment not implemented – Assignment Not Allowed! More...
 

Message Callbacks

virtual void processAssistantShutdownMsg (const DtAssistantShutdownMsg &msg)
 Called by the callback function to process an assistant shutdown msg. More...
 
static void processAssistantShutdownMsg (const DtAssistantShutdownMsg &msg, void *usr)
 Callback to process an assistant shutdown message. More...
 

Detailed Description

Coordinates Assistant activities.

The DtRtiAssistant coordinates Assistant activities between the DtRtiAssistantServer, DtRtiAssistantPeer, and managers. It does this primarily by registering callbacks and signals with these classes to process new messages or GUI input.

Member Typedef Documentation

typedef std::vector<DtAssistantMgr*> DtRtiAssistant::DtAssistantMgrVector
protected

Constructor & Destructor Documentation

DtRtiAssistant::DtRtiAssistant ( int &  argc,
char **  argv,
bool  autoExit,
DtAssistantShowDialogMsg::DtAssistantShowDialogEnum  showDialog = DtAssistantShowDialogMsg::DoNotShowDialog,
DtAssistantShutdownMsg::DtShutdownEnum  shouldShutdown = DtAssistantShutdownMsg::DtDoNotShutdown,
bool  disableMulticast = false 
)

Constructor.

virtual DtRtiAssistant::~DtRtiAssistant ( )
virtual

Destructor.

DtRtiAssistant::DtRtiAssistant ( const DtRtiAssistant )
private

Copy Constructor not implemented – Copy Not Allowed!

Member Function Documentation

virtual bool DtRtiAssistant::connectToAssistant ( )
protectedvirtual

Called by constructor.

THIS assistant instance was NOT able to bind to the assistantPort. To make sure the app using the port is an assistant of this RTI version, we will connect to it and make sure we get a valid response.

virtual void DtRtiAssistant::initializeAssistantServer ( int &  argc,
char **  argv,
DtAssistantShowDialogMsg::DtAssistantShowDialogEnum  showDialog 
)
protectedvirtual

Called by constructor.

This assistant instance was able to bind to the assistantPort and should act as an ordinary server. Normal startup

DtRtiAssistant& DtRtiAssistant::operator= ( const DtRtiAssistant )
private

Assignment not implemented – Assignment Not Allowed!

static void DtRtiAssistant::processAssistantShutdownMsg ( const DtAssistantShutdownMsg msg,
void *  usr 
)
staticprotected

Callback to process an assistant shutdown message.

virtual void DtRtiAssistant::processAssistantShutdownMsg ( const DtAssistantShutdownMsg msg)
protectedvirtual

Called by the callback function to process an assistant shutdown msg.

virtual bool DtRtiAssistant::processCommands ( DtAssistantShowDialogMsg::DtAssistantShowDialogEnum  showDialog,
DtAssistantShutdownMsg::DtShutdownEnum  shouldShutdown 
)
protectedvirtual

If there are available commands we should process them and return.

If true, commands were processed and this process should exit, else this process should run as an assistant.

static void DtRtiAssistant::processShutdown ( void *  usr)
staticprotected

Callback to process a request to shutdown all components from the GUI.

virtual void DtRtiAssistant::processShutdown ( bool  shouldConfirm)
protectedvirtual

Called by the callback function to process a shutdown all request.

virtual void DtRtiAssistant::sendShutdownToConnectedAssistant ( DtAssistantShutdownMsg::DtShutdownEnum  shouldShutDown)
protectedvirtual

Called by constructor.

This assistant instance was NOT able to bind to the assistantPort and should act as a client to the server assistant sending any required messages to the server assistant and exiting. Shows the preferences dialog on the connected assistant.

virtual bool DtRtiAssistant::showDialogOnConnectedAssistant ( DtAssistantShowDialogMsg::DtAssistantShowDialogEnum  dialog)
protectedvirtual

Called by constructor.

This assistant instance was NOT able to bind to the assistantPort and should act as a client to the server assistant sending any required messages to the server assistant and exiting. Shows the specified dialog on the connected assistant. returns success.

static void DtRtiAssistant::tick ( void *  usr)
static

Ticks the server and peer to receive and process new messages.

void DtRtiAssistant::tick ( )

Member Data Documentation

MAKRti::DtString DtRtiAssistant::myAssistantLogName
protected

Assistant log name.

bool DtRtiAssistant::myAutoExit
protected

Indicates whether or not the Assistant should exit when the last connection has closed.

int DtRtiAssistant::myClientPortNumber
protected

Port the RTI Assistant client should use to communicate.

DtClock DtRtiAssistant::myClock
protected

Clock for timeouts.

std::shared_ptr<DtAssistantComponentMgr> DtRtiAssistant::myCompMgr
protected

The Assistant component manager, which maintains information on all attached local RTI components.

std::shared_ptr<DtAssistantConnectionInfoMgr> DtRtiAssistant::myConnInfoMgr
protected

The Assistant connection information manager, which maintains a list of all known connection configurations and their current states.

std::shared_ptr<DtAssistantConnQueryMgr> DtRtiAssistant::myConnQueryMgr
protected

The Assistant connection query manager, which processes queries for connection info from connecting components.

DtTime DtRtiAssistant::myExitTime
protected

Time at which Assistant should be closed due to loss of all connections.

std::shared_ptr<DtAssistantFederateViewMgr> DtRtiAssistant::myFederateViewMgr
protected

The Assistant federate info view manager, which is responsible for displaying federate information in the Federate Info Dialog.

std::shared_ptr<DtAssistantFederationsInfoMgr> DtRtiAssistant::myFederationInfoMgr
protected

The Assistant federation information manager, which maintains the current state of all known federations.

std::shared_ptr<DtAssistantFederationsViewMgr> DtRtiAssistant::myFederationsViewMgr
protected

The Assistant federations view manager, which is responsible for displaying federation and network information in the Federations View.

std::shared_ptr<DtAssistantFomViewMgr> DtRtiAssistant::myFomViewMgr
protected

The Assistant FOM view manager, which is responsible for displaying FOM information in the Federate FOM Dialog.

std::shared_ptr<DtAssistantForwarderCompInfoMgr> DtRtiAssistant::myForwarderInfoMgr
protected

The Assistant forwarder component information manager, which maintains the current state of all known forwarders.

std::shared_ptr<DtAssistantLatencyTestMgr> DtRtiAssistant::myLatTestMgr
protected

The Assistant latency test manager, which initiates and reports results of federate latency tests.

std::shared_ptr<DtAssistantLicenseQueryMgr> DtRtiAssistant::myLicQueryMgr
protected

The Assistant license query manager, which processes queries for license server info from connecting components.

std::shared_ptr<DtAssistantLogFileMgr> DtRtiAssistant::myLogFileMgr
protected

The Assistant tray icon manager, which manages the icon and its menu.

std::shared_ptr< DtFilePrinter > DtRtiAssistant::myLogPrinter
protected

Assistant printer.

DtAssistantMgrVector DtRtiAssistant::myManagers
protected

List of all managers.

std::shared_ptr<DtRtiAssistantPeer> DtRtiAssistant::myPeer
protected

The Assistant peer which communicates with other Assistants.

std::shared_ptr<DtAssistantPopupMsgMgr> DtRtiAssistant::myPopupMgr
protected

The Assistant popup message manager, which display popup dialogs.

std::shared_ptr<DtAssistantPreferencesInfoMgr> DtRtiAssistant::myPrefMgr
protected

The Assistant preferences manager, which maintains the current settings for all user configurable Assistant preferences.

std::shared_ptr<DtAssistantPreferencesViewMgr> DtRtiAssistant::myPrefViewMgr
protected

The Assistant preferences view manager, which manages the preferences dialog to display and update user preferences.

QApplication* DtRtiAssistant::myQApp
protected

The Qt Application for the Assistant.

std::shared_ptr<DtRemoteAssistantInfoMgr> DtRtiAssistant::myRemoteAssistantInfoMgr
protected

The Remote Assistant Info Manager.

This is responsible for keeping track of connections and directing the peer manager to make/break connections

std::shared_ptr<DtRemoteAssistantViewMgr> DtRtiAssistant::myRemoteAssistantViewMgr
protected

The Remote Assistant View.

std::shared_ptr<DtRidConfigViewMgr> DtRtiAssistant::myRidConfigViewMgr
protected

The RID config view manager, which manages the RID Config Dialog for displaying and updating RID Settings.

std::shared_ptr<DtAssistantRidConfigInfoMgr> DtRtiAssistant::myRidInfoMgr
protected

The Assistant RID Configuration info manager.

Maintains a list of all known RID configurations.

std::shared_ptr<DtRtiAssistantServer> DtRtiAssistant::myServer
protected

The Assistant server from which new messages will arrive.

int DtRtiAssistant::myServerPortNumber
protected

Port the RTIAssistant server should bind to.

bool DtRtiAssistant::myShutdownInProgress
protected

Indicates that a user requested shutdown is currently in progress.

DtSignalToCallbackMapper* DtRtiAssistant::myShutdownSignalMapper
protected

Maps shutdown signals to the shutdown callback function.

DtAssistantSignalRouter DtRtiAssistant::mySignalRouter
protected

The signal router between all of the assistant managers.

DtSignalToCallbackMapper* DtRtiAssistant::myTickSignalMapper
protected

Maps tick signals to the tick callback function.

QTimer* DtRtiAssistant::myTickTimer
protected

Timer which causes tick to occur.

std::shared_ptr<DtAssistantTrayIconMgr> DtRtiAssistant::myTrayIconMgr
protected

The Assistant tray icon manager, which manages the icon and its menu.


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

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)