VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
DtTaskCommandExecutor Class Reference

DtTaskCommandExecutor. More...

Inheritance diagram for DtTaskCommandExecutor:
Inheritance graph
[legend]

Public Member Functions

 DtTaskCommandExecutor (DtSimManager *simManager)
virtual ~DtTaskCommandExecutor ()
virtual bool execute (const DtSimCommand *command, const DtPlan *=0)
 Calls executeCommand() with null senderName.
virtual bool execute (const DtSimCommand *command, const DtUUID &object, const DtPlan *=0)
 Overridden to include the name of the entity sending the task in the task radio message.
- Public Member Functions inherited from DtSimCommandExecutor
 DtSimCommandExecutor (DtSimManager *simManager)
virtual ~DtSimCommandExecutor ()
virtual bool executeAndDistribute (const DtSimCommand *command, const DtPlan *plan=0)
 Executes and then distributes the sim command by calling the execute and distribute functions in turn.
virtual bool executeAndDistribute (const DtSimCommand *command, const DtUUID &objectName, const DtPlan *plan=0)
 Executes and then distributes the sim command in the context of a specific entity by calling the execute and distribute functions in turn.

Static Public Member Functions

static DtSimCommandExecutorcreate (DtSimManager *simManager)
- Static Public Member Functions inherited from DtSimCommandExecutor
static void setFactory (DtSimCommandExecutorFactory *factory)
 Sets the static factory member.
static DtSimCommandExecutorcreateSimCommandExecutor (const DtSimCommandMessageType &type, DtSimManager *simManager)
 Uses the static factory member to create a new executor of the specified type.

Protected Member Functions

virtual bool executeCommand (const DtSimCommand *command, const DtUUID &sender, const DtPlan *=0)
 Executes the command by sending out a task radio message.
- Protected Member Functions inherited from DtSimCommandExecutor
virtual void distribute (const DtSimCommand *command, const DtPlan *plan=0)
 Calls on the sim command distributor to distribute the command to registered callback functions.
virtual void distribute (const DtSimCommand *command, const DtUUID &objectName, const DtPlan *plan=0)
 Calls on the sim command distributor to distribute the command to registered callback functions, providing the context of a specific entity.

Private Member Functions

 DtTaskCommandExecutor ()
 Not implemented.
 DtTaskCommandExecutor (const DtTaskCommandExecutor &orig)
 Not implemented.
DtTaskCommandExecutoroperator= (const DtTaskCommandExecutor &orig)
 Not implemented.

Additional Inherited Members

- Protected Attributes inherited from DtSimCommandExecutor
DtSimManagermySimManager
- Static Protected Attributes inherited from DtSimCommandExecutor
static
DtSimCommandExecutorFactory
myFactory

Detailed Description

DtTaskCommandExecutor.

Executor for the DtTaskCommand DtSimCommand. Issues the enclosed task to the entity specified in the command.

Constructor & Destructor Documentation

DtTaskCommandExecutor::DtTaskCommandExecutor ( DtSimManager simManager)
virtual DtTaskCommandExecutor::~DtTaskCommandExecutor ( )
virtual
DtTaskCommandExecutor::DtTaskCommandExecutor ( )
private

Not implemented.

DtTaskCommandExecutor::DtTaskCommandExecutor ( const DtTaskCommandExecutor orig)
private

Not implemented.

Member Function Documentation

virtual bool DtTaskCommandExecutor::execute ( const DtSimCommand command,
const DtPlan = 0 
)
virtual

Calls executeCommand() with null senderName.

Implements DtSimCommandExecutor.

virtual bool DtTaskCommandExecutor::execute ( const DtSimCommand command,
const DtUUID object,
const DtPlan = 0 
)
virtual

Overridden to include the name of the entity sending the task in the task radio message.

Calls executeCommand with the supplied object as the sender.

Reimplemented from DtSimCommandExecutor.

static DtSimCommandExecutor* DtTaskCommandExecutor::create ( DtSimManager simManager)
static
Returns
A new instance of this class.
virtual bool DtTaskCommandExecutor::executeCommand ( const DtSimCommand command,
const DtUUID sender,
const DtPlan = 0 
)
protectedvirtual

Executes the command by sending out a task radio message.

Parameters
commandmust be DtTaskCommand.
DtTaskCommandExecutor& DtTaskCommandExecutor::operator= ( const DtTaskCommandExecutor orig)
private

Not implemented.


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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)