![]() |
VR-Forces 4.1.1 Class Documentation
|
8 bytes total More...

Public Member Functions | |
| DtIfMultiplePlanSet () | |
| default constructor | |
| virtual | ~DtIfMultiplePlanSet () |
| destructor | |
| DtIfMultiplePlanSet (const DtIfMultiplePlanSet &orig) | |
| copy constructor | |
| DtIfMultiplePlanSet & | operator= (const DtIfMultiplePlanSet &orig) |
| assignment operator | |
| virtual int | type () const |
| Returns the type of Interface Content. | |
| virtual DtSimInterfaceContent * | clone () 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 DtString & | name () 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 | |
| DtIfPlan & | operator= (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 DtSimInterfaceContent * | creator () |
Protected Attributes | |
| std::vector< DtString > | myEntities |
| 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 DtInterfaceContentFactory * | myFactory |
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.
| DtIfMultiplePlanSet::DtIfMultiplePlanSet | ( | ) |
default constructor
|
virtual |
destructor
| DtIfMultiplePlanSet::DtIfMultiplePlanSet | ( | const DtIfMultiplePlanSet & | orig | ) |
copy constructor
| DtIfMultiplePlanSet& DtIfMultiplePlanSet::operator= | ( | const DtIfMultiplePlanSet & | orig | ) |
assignment operator
|
virtual |
Returns the type of Interface Content.
Reimplemented from DtIfPlan.
|
virtual |
Reimplemented from DtIfPlan.
|
virtual |
Get/set entities that this plan should be assigned to.
|
virtual |
|
virtual |
Sets name and sets myNameSet to true if name is non-blank.
Reimplemented from DtIfPlan.
|
virtual |
Returns comma separated list of all entities assigned, unless myNameSet is set, in which case it returns myName.
Reimplemented from DtIfPlan.
|
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 |
Reimplemented from DtIfPlan.
|
virtual |
Restores the name portion of the network buffer.
This will return the pointer immediately after the name
Reimplemented from DtIfPlan.
|
virtual |
Sets the names to the network buffer and returns a pointer immediately after the name.
Reimplemented from DtIfPlan.
|
protected |
|
protected |