MAK Data Logger API Documentation for DIS
List of all members | Public Member Functions | Protected Attributes | Static Protected Attributes
MAKLogger::DtLogger Class Reference

DtLogger provides the core system structure and controls the execution model for the underlying objects. More...

+ Inheritance diagram for MAKLogger::DtLogger:
+ Collaboration diagram for MAKLogger::DtLogger:

Public Member Functions

virtual ~DtLogger ()
virtual void init ()
 , Ticks the logger once.
virtual void registerSimulationProtocol (DtLgrProtocolRegistration *)
 This method must be called by a simulation plug-in during initialization.
virtual const
DtLgrProtocolRegistration
simulationProtocol () const
 Gets the protocol registration the logger was registered with.
virtual bool tick ()
 Tick the logger once, function is non-blocking.
virtual DtRelativeTime tickTime () const
 Get the estimated time between ticks.
virtual void setTickTime (DtRelativeTime time)
 Set the estimated time between tick calls.
virtual void submitCommand (const DtCommand &command)
 Send a command to the logger to execute.
virtual DtLgrCommandHandlerSP getCommandHandler (const DtLgrCommandType &type) const
 Lookup the command handler for a specific type of command.
virtual const DtLibraryListlibraries () const
 Gets the Loaded libraries.
virtual DtLgrSimManagersimManager ()
 Access simulation manager;.
DtLgrSystemDriverdriver ()
 Get system driver.

Protected Attributes

DtLgrProtocolRegistrationmyRegistration
DtLgrSystemDrivermyDriver
 The driver which defines the logger executions.
DtRelativeTime myTickTime
 The time between ticks.

Static Protected Attributes

static DtRelativeTime theDefaultTickTime
 Default tick time.

Detailed Description

DtLogger provides the core system structure and controls the execution model for the underlying objects.

Constructor & Destructor Documentation

virtual MAKLogger::DtLogger::~DtLogger ( )
virtual

Member Function Documentation

DtLgrSystemDriver& MAKLogger::DtLogger::driver ( )

Get system driver.

virtual DtLgrCommandHandlerSP MAKLogger::DtLogger::getCommandHandler ( const DtLgrCommandType type) const
virtual

Lookup the command handler for a specific type of command.

virtual void MAKLogger::DtLogger::init ( )
virtual

, Ticks the logger once.

And ensures that the logger is in a valid state after the tick. Startup commands should be submitted before init. Init will throw if the logger is not in a valid state. Possible examples of invalid states include no simulation components loaded.

Reimplemented in MAKLogger::DtDisLogger.

virtual const DtLibraryList& MAKLogger::DtLogger::libraries ( ) const
virtual

Gets the Loaded libraries.

virtual void MAKLogger::DtLogger::registerSimulationProtocol ( DtLgrProtocolRegistration )
virtual

This method must be called by a simulation plug-in during initialization.

Additional calls may be made during initialization however once initialization is complete further calls will have no effect on the logger.

virtual void MAKLogger::DtLogger::setTickTime ( DtRelativeTime  time)
virtual

Set the estimated time between tick calls.

virtual DtLgrSimManager* MAKLogger::DtLogger::simManager ( )
virtual

Access simulation manager;.

virtual const DtLgrProtocolRegistration* MAKLogger::DtLogger::simulationProtocol ( ) const
virtual

Gets the protocol registration the logger was registered with.

virtual void MAKLogger::DtLogger::submitCommand ( const DtCommand command)
virtual

Send a command to the logger to execute.

Parameters
Input
commandThe logger command to be executed.
Warning
The command will not be executed until tick is called.
virtual bool MAKLogger::DtLogger::tick ( )
virtual

Tick the logger once, function is non-blocking.

This causes the logger to tick for one round of execution. Typically an application will have a loop where it ticks the logger.

Returns
Returns whether the logger should continue to be ticked.
Return values
trueThe logger can still tick.
falseThe logger should exit.

Reimplemented in MAKLogger::DtDisLogger.

virtual DtRelativeTime MAKLogger::DtLogger::tickTime ( ) const
virtual

Get the estimated time between ticks.

Member Data Documentation

DtLgrSystemDriver* MAKLogger::DtLogger::myDriver
protected

The driver which defines the logger executions.

The logger is responsible for executing the driver.

DtLgrProtocolRegistration* MAKLogger::DtLogger::myRegistration
protected
DtRelativeTime MAKLogger::DtLogger::myTickTime
protected

The time between ticks.

DtRelativeTime MAKLogger::DtLogger::theDefaultTickTime
staticprotected

Default tick time.


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

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)