VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtIfMultiplePlanSet Class Reference

8 bytes total More...

Inheritance diagram for DtIfMultiplePlanSet:
Inheritance graph
[legend]

Public Member Functions

 DtIfMultiplePlanSet ()
 default constructor
virtual ~DtIfMultiplePlanSet ()
 destructor
 DtIfMultiplePlanSet (const DtIfMultiplePlanSet &orig)
 copy constructor
DtIfMultiplePlanSetoperator= (const DtIfMultiplePlanSet &orig)
 assignment operator
virtual int type () const
 Returns the type of Interface Content.
virtual DtSimInterfaceContentclone () const
virtual void setEntities (const std::vector< DtString > &)
 Get/set entities that this plan should be assigned to.
virtual const std::vector
< DtString > & 
entities () const
virtual void setName (const DtString &name)
 Sets name and sets myNameSet to true if name is non-blank.
virtual const DtStringname () const
 Returns comma separated list of all entities assigned, unless myNameSet is set, in which case it returns myName.
virtual int netRepSize () const
 Get the list of statements in the message.
virtual const char * restoreName (const char *contentBuffer)
 Restores the name portion of the network buffer.
virtual char * setNameToNet ()
 Sets the names to the network buffer and returns a pointer immediately after the name.
- Public Member Functions inherited from DtIfPlan
 DtIfPlan ()
 default constructor
virtual ~DtIfPlan ()
 destructor
 DtIfPlan (const DtIfPlan &orig)
 copy constructor
DtIfPlanoperator= (const DtIfPlan &orig)
 assignment operator
virtual bool addStatement (const DtSimStatement &statement)
 Add a statement to the message.
virtual const DtList & statements () const
 Get the list of statements in the message.
virtual void setAssign (bool flag)
 Set/get the assign flag.
virtual bool assign () const
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize)
 Fills in the task from the network buffer.
virtual bool setToNet ()
 Fills in the network buffer (created by base class simTask) with the task contents.
virtual void printDataToString (DtString &str)
void emptyStatementList ()
 Empty contents of our statement list.
virtual bool isSamePlan (DtIfPlan *rhs)
 Returns true if the plans are equivalent.
virtual bool isGlobal () const
 Indicates whether this plan is a global plan or an individual entity plan.
virtual void setIsGlobal (bool yesNo)
 Indicates whether this plan is a global plan or an individual entity plan.
- Public Member Functions inherited from DtSimInterfaceContent
virtual ~DtSimInterfaceContent ()
virtual bool update (const DtSimInterfaceContent *data)
virtual char * netRep ()
virtual void setUseSessionId (bool yesNo)
virtual bool useSessionId () const

Static Public Member Functions

static DtSimInterfaceContentcreator ()

Protected Attributes

std::vector< DtStringmyEntities
bool myNameSet
- Protected Attributes inherited from DtIfPlan
DtString myName
DtList myStatementList
 List of top-level DtSimStatement*s.
bool myAppendFlag
 Indicates if message is used to create new or append to existing plan.
bool myAssignFlag
 Indicates whether the receiver should assign this plan to the object or whether the message represents the object's current plan.
bool myIsGlobal
- Protected Attributes inherited from DtSimInterfaceContent
char * myNetRep
bool myUseSessionId

Additional Inherited Members

- Protected Member Functions inherited from DtIfPlan
void copyStatementList (const DtList &otherList)
 Copies contents of given list to our list of plan statements.
- Static Protected Attributes inherited from DtSimInterfaceContent
static DtInterfaceContentFactorymyFactory

Detailed Description

8 bytes total

class DtIfMultiplePlanSet:

Instances of DtIfMultiplePlanSet are the content portions of a plan message. This message contains enough information to reconstruct a DtPlan, minus the the content of the actual statements. The message is intended to be used with DtPlanStatement messages, which convey the rest of the content needed to fully represent the plan. This message is equivalent to DtIfPlan, except it stores a list of entities

Content-Type: DtMultiplePlanSetMessageType

statement count: The number of DtSimStatements contained in this message.

plan statements: A list of <statement count>=""> DtSimStatements in this message. Statements should be appended to the plan’s main block in the order they appear in the message. If the plan is large enough to require multiple messages, then the messages should be processed in the order they are received, further appending to the statements to received in earlier DtPlan messages.

append flag: bool flag indicating the plan message should be appended to an existing plan. This is used when a plan is large enough to require multiple messages. The first message should have this flag set to false. Subsequent messages should set this flag to true.DtNetIfMultiplePlanSet is the FIXED portion of the simulation network representation of a plan message, padded to an 8 byte boundary.

Fixed portion is immediately followed by:

<net rep of a DtSimStatement 1 (already padded to 8 byte boundary)> <net rep of a DtSimStatement n (already padded to 8 byte boundary)>

where n is myStatementCount.

Statements are top-level statements, added in the order they appear in the plan. Individual statements may contain nested statements (e.g. for 'If/else/then' and 'When' statements). Append flag indicates if message is intended for appending an existing plan (as opposed to creating a new plan). Append flag is false by default.

Constructor & Destructor Documentation

DtIfMultiplePlanSet::DtIfMultiplePlanSet ( )

default constructor

virtual DtIfMultiplePlanSet::~DtIfMultiplePlanSet ( )
virtual

destructor

DtIfMultiplePlanSet::DtIfMultiplePlanSet ( const DtIfMultiplePlanSet orig)

copy constructor

Member Function Documentation

DtIfMultiplePlanSet& DtIfMultiplePlanSet::operator= ( const DtIfMultiplePlanSet orig)

assignment operator

virtual int DtIfMultiplePlanSet::type ( ) const
virtual

Returns the type of Interface Content.

Reimplemented from DtIfPlan.

virtual DtSimInterfaceContent* DtIfMultiplePlanSet::clone ( ) const
virtual

Reimplemented from DtIfPlan.

virtual void DtIfMultiplePlanSet::setEntities ( const std::vector< DtString > &  )
virtual

Get/set entities that this plan should be assigned to.

virtual const std::vector<DtString>& DtIfMultiplePlanSet::entities ( ) const
virtual
virtual void DtIfMultiplePlanSet::setName ( const DtString name)
virtual

Sets name and sets myNameSet to true if name is non-blank.

Reimplemented from DtIfPlan.

virtual const DtString& DtIfMultiplePlanSet::name ( ) const
virtual

Returns comma separated list of all entities assigned, unless myNameSet is set, in which case it returns myName.

Reimplemented from DtIfPlan.

virtual int DtIfMultiplePlanSet::netRepSize ( ) const
virtual

Get the list of statements in the message.

Statement returns the size of the full network representation (control object name included) padded to an 8-byte boundary.

Reimplemented from DtIfPlan.

static DtSimInterfaceContent* DtIfMultiplePlanSet::creator ( )
static

Reimplemented from DtIfPlan.

virtual const char* DtIfMultiplePlanSet::restoreName ( const char *  contentBuffer)
virtual

Restores the name portion of the network buffer.

This will return the pointer immediately after the name

Reimplemented from DtIfPlan.

virtual char* DtIfMultiplePlanSet::setNameToNet ( )
virtual

Sets the names to the network buffer and returns a pointer immediately after the name.

Reimplemented from DtIfPlan.

Member Data Documentation

std::vector<DtString> DtIfMultiplePlanSet::myEntities
protected
bool DtIfMultiplePlanSet::myNameSet
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)