![]() |
VR-Link API Documentation for HLA Evolved
|
class DtServiceRequestInteraction: More...
Inheritance diagram for DtServiceRequestInteraction:
Collaboration diagram for DtServiceRequestInteraction:Public Member Functions | |
| DtServiceRequestInteraction () | |
| default constructor | |
| virtual | ~DtServiceRequestInteraction () |
| destructor | |
| DtServiceRequestInteraction (const DtServiceRequestInteraction &orig) | |
| copy constructor | |
| DtServiceRequestInteraction & | operator= (const DtServiceRequestInteraction &orig) |
| assignment operator | |
| virtual void | printData () const |
| Print the interaction's data to DtInfo. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the interaction's data to the specified stream. | |
| virtual void | setRequestingId (const DtGlobalObjectDesignator &requester) |
| Set/Get the receiving object. | |
| virtual const DtGlobalObjectDesignator & | requestingId () const |
| virtual void | setServicingId (const DtGlobalObjectDesignator &servicer) |
| Set/Get the repairing object. | |
| virtual const DtGlobalObjectDesignator & | servicingId () const |
| virtual void | setServiceType (DtServiceType type) |
| Set/Get the service type. | |
| virtual DtServiceType | serviceType () const |
| virtual void | setSupplies (const void *data, int numBytes) |
| Set/Get the supplies memory block all at once. | |
| virtual const void * | supplies () const |
| virtual void | setNumSupplyTypes (int numTypes) |
| Supporting functions to get/set the Supply Array. | |
| virtual int | numSupplyTypes () const |
| virtual void | setNthSupply (int supplyIndex, const DtEntityType &supply, float quantity, int *retCode=NULL) |
| virtual const DtEntityType & | nthSupply (int supplyIndex, float *quantity=NULL, int *retCode=NULL) const |
| virtual float | supplyQuantity (const DtEntityType &supply) const |
| virtual void | changeSuppliesSize (int newSize) |
| virtual int | indexInBounds (int ind) const |
| virtual const char * | name () const |
| Name of the interaction. (Not necessarily the ClassName from the FOM.) | |
Static Public Member Functions | |
| static DtInteraction * | create () |
| Create a DtServiceRequestInteraction. | |
| static void | addCallback (DtExerciseConn *conn, DtServiceRequestInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
| Add (register)/Remove (deregister) function to be called when interaction occurs. | |
| static void | removeCallback (DtExerciseConn *conn, DtServiceRequestInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
Protected Attributes | |
| DtGlobalObjectDesignator | myRequestingObject |
| DtGlobalObjectDesignator | myServicingObject |
| DtServiceType | myServiceType |
| int | myNumSupplyTypes |
| DtNetSupplyQuantity * | mySupplies |
| DtEntityType | myNthSupply |
class DtServiceRequestInteraction:
Instances of DtServiceRequestInteraction are used to represent ServiceRequest Interactions in the RPR FOM.
default constructor
| virtual DtServiceRequestInteraction::~DtServiceRequestInteraction | ( | ) | [virtual] |
destructor
| DtServiceRequestInteraction::DtServiceRequestInteraction | ( | const DtServiceRequestInteraction & | orig | ) |
copy constructor
| static void DtServiceRequestInteraction::addCallback | ( | DtExerciseConn * | conn, |
| DtServiceRequestInteractionCb | cb, | ||
| void * | usr, | ||
| DtDDMRegionSP | region = DtDDMRegionSP() |
||
| ) | [static] |
Add (register)/Remove (deregister) function to be called when interaction occurs.
| virtual void DtServiceRequestInteraction::changeSuppliesSize | ( | int | newSize | ) | [virtual] |
| static DtInteraction* DtServiceRequestInteraction::create | ( | ) | [static] |
Create a DtServiceRequestInteraction.
Caller is responsible for deletion.
| virtual int DtServiceRequestInteraction::indexInBounds | ( | int | ind | ) | const [virtual] |
| const char * DtServiceRequestInteraction::name | ( | ) | const [inline, virtual] |
Name of the interaction. (Not necessarily the ClassName from the FOM.)
Implements DtInteraction.
| virtual const DtEntityType& DtServiceRequestInteraction::nthSupply | ( | int | supplyIndex, |
| float * | quantity = NULL, |
||
| int * | retCode = NULL |
||
| ) | const [virtual] |
| virtual int DtServiceRequestInteraction::numSupplyTypes | ( | ) | const [virtual] |
| DtServiceRequestInteraction& DtServiceRequestInteraction::operator= | ( | const DtServiceRequestInteraction & | orig | ) |
assignment operator
| virtual void DtServiceRequestInteraction::printData | ( | ) | const [virtual] |
Print the interaction's data to DtInfo.
Reimplemented from DtInteraction.
| virtual void DtServiceRequestInteraction::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Print the interaction's data to the specified stream.
Reimplemented from DtInteraction.
| static void DtServiceRequestInteraction::removeCallback | ( | DtExerciseConn * | conn, |
| DtServiceRequestInteractionCb | cb, | ||
| void * | usr, | ||
| DtDDMRegionSP | region = DtDDMRegionSP() |
||
| ) | [static] |
| const DtGlobalObjectDesignator & DtServiceRequestInteraction::requestingId | ( | ) | const [inline, virtual] |
References myRequestingObject.
| DtServiceType DtServiceRequestInteraction::serviceType | ( | ) | const [inline, virtual] |
References myServiceType.
| const DtGlobalObjectDesignator & DtServiceRequestInteraction::servicingId | ( | ) | const [inline, virtual] |
References myServicingObject.
| virtual void DtServiceRequestInteraction::setNthSupply | ( | int | supplyIndex, |
| const DtEntityType & | supply, | ||
| float | quantity, | ||
| int * | retCode = NULL |
||
| ) | [virtual] |
| virtual void DtServiceRequestInteraction::setNumSupplyTypes | ( | int | numTypes | ) | [virtual] |
Supporting functions to get/set the Supply Array.
| void DtServiceRequestInteraction::setRequestingId | ( | const DtGlobalObjectDesignator & | requester | ) | [inline, virtual] |
Set/Get the receiving object.
References myRequestingObject.
| void DtServiceRequestInteraction::setServiceType | ( | DtServiceType | type | ) | [inline, virtual] |
Set/Get the service type.
References myServiceType.
| void DtServiceRequestInteraction::setServicingId | ( | const DtGlobalObjectDesignator & | servicer | ) | [inline, virtual] |
Set/Get the repairing object.
References myServicingObject.
| virtual void DtServiceRequestInteraction::setSupplies | ( | const void * | data, |
| int | numBytes | ||
| ) | [virtual] |
Set/Get the supplies memory block all at once.
| virtual const void* DtServiceRequestInteraction::supplies | ( | ) | const [virtual] |
| virtual float DtServiceRequestInteraction::supplyQuantity | ( | const DtEntityType & | supply | ) | const [virtual] |
DtEntityType DtServiceRequestInteraction::myNthSupply [protected] |
int DtServiceRequestInteraction::myNumSupplyTypes [protected] |
Referenced by requestingId(), and setRequestingId().
Referenced by serviceType(), and setServiceType().
Referenced by servicingId(), and setServicingId().