![]() |
VR-Link API Documentation for HLA 1.3
|
class DtResupplyOfferInteraction: More...
Inheritance diagram for DtResupplyOfferInteraction:
Collaboration diagram for DtResupplyOfferInteraction:Public Member Functions | |
| DtResupplyOfferInteraction () | |
| default constructor | |
| virtual | ~DtResupplyOfferInteraction () |
| destructor | |
| DtResupplyOfferInteraction (const DtResupplyOfferInteraction &orig) | |
| copy constructor | |
| DtResupplyOfferInteraction & | operator= (const DtResupplyOfferInteraction &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 | setReceivingId (const DtGlobalObjectDesignator &receiver) |
| Set/Get the receiving object. | |
| virtual const DtGlobalObjectDesignator & | receivingId () const |
| virtual void | setSupplyingId (const DtGlobalObjectDesignator &supplier) |
| Set/Get the repairing object. | |
| virtual const DtGlobalObjectDesignator & | supplyingId () 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 DtResupplyOfferInteraction. | |
| static void | addCallback (DtExerciseConn *conn, DtResupplyOfferInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
| Add (register)/Remove (deregister) function to be called when interaction occurs. | |
| static void | removeCallback (DtExerciseConn *conn, DtResupplyOfferInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP()) |
Protected Attributes | |
| DtGlobalObjectDesignator | myReceivingObject |
| DtGlobalObjectDesignator | mySupplyingObject |
| int | myNumSupplyTypes |
| DtNetSupplyQuantity * | mySupplies |
| DtEntityType | myNthSupply |
class DtResupplyOfferInteraction:
Instances of DtResupplyOfferInteraction are used to represent ResupplyOffer Interactions in the RPR FOM.
default constructor
| virtual DtResupplyOfferInteraction::~DtResupplyOfferInteraction | ( | ) | [virtual] |
destructor
copy constructor
| static void DtResupplyOfferInteraction::addCallback | ( | DtExerciseConn * | conn, |
| DtResupplyOfferInteractionCb | cb, | ||
| void * | usr, | ||
| DtDDMRegionSP | region = DtDDMRegionSP() |
||
| ) | [static] |
Add (register)/Remove (deregister) function to be called when interaction occurs.
| virtual void DtResupplyOfferInteraction::changeSuppliesSize | ( | int | newSize | ) | [virtual] |
| static DtInteraction* DtResupplyOfferInteraction::create | ( | ) | [static] |
Create a DtResupplyOfferInteraction.
Caller is responsible for deletion.
| virtual int DtResupplyOfferInteraction::indexInBounds | ( | int | ind | ) | const [virtual] |
| const char * DtResupplyOfferInteraction::name | ( | ) | const [inline, virtual] |
Name of the interaction. (Not necessarily the ClassName from the FOM.)
Implements DtInteraction.
| virtual const DtEntityType& DtResupplyOfferInteraction::nthSupply | ( | int | supplyIndex, |
| float * | quantity = NULL, |
||
| int * | retCode = NULL |
||
| ) | const [virtual] |
| virtual int DtResupplyOfferInteraction::numSupplyTypes | ( | ) | const [virtual] |
| DtResupplyOfferInteraction& DtResupplyOfferInteraction::operator= | ( | const DtResupplyOfferInteraction & | orig | ) |
assignment operator
| virtual void DtResupplyOfferInteraction::printData | ( | ) | const [virtual] |
Print the interaction's data to DtInfo.
Reimplemented from DtInteraction.
| virtual void DtResupplyOfferInteraction::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Print the interaction's data to the specified stream.
Reimplemented from DtInteraction.
| const DtGlobalObjectDesignator & DtResupplyOfferInteraction::receivingId | ( | ) | const [inline, virtual] |
References myReceivingObject.
| static void DtResupplyOfferInteraction::removeCallback | ( | DtExerciseConn * | conn, |
| DtResupplyOfferInteractionCb | cb, | ||
| void * | usr, | ||
| DtDDMRegionSP | region = DtDDMRegionSP() |
||
| ) | [static] |
| virtual void DtResupplyOfferInteraction::setNthSupply | ( | int | supplyIndex, |
| const DtEntityType & | supply, | ||
| float | quantity, | ||
| int * | retCode = NULL |
||
| ) | [virtual] |
| virtual void DtResupplyOfferInteraction::setNumSupplyTypes | ( | int | numTypes | ) | [virtual] |
Supporting functions to get/set the Supply Array.
| void DtResupplyOfferInteraction::setReceivingId | ( | const DtGlobalObjectDesignator & | receiver | ) | [inline, virtual] |
Set/Get the receiving object.
References myReceivingObject.
| virtual void DtResupplyOfferInteraction::setSupplies | ( | const void * | data, |
| int | numBytes | ||
| ) | [virtual] |
Set/Get the supplies memory block all at once.
| void DtResupplyOfferInteraction::setSupplyingId | ( | const DtGlobalObjectDesignator & | supplier | ) | [inline, virtual] |
Set/Get the repairing object.
References mySupplyingObject.
| virtual const void* DtResupplyOfferInteraction::supplies | ( | ) | const [virtual] |
| const DtGlobalObjectDesignator & DtResupplyOfferInteraction::supplyingId | ( | ) | const [inline, virtual] |
References mySupplyingObject.
| virtual float DtResupplyOfferInteraction::supplyQuantity | ( | const DtEntityType & | supply | ) | const [virtual] |
DtEntityType DtResupplyOfferInteraction::myNthSupply [protected] |
int DtResupplyOfferInteraction::myNumSupplyTypes [protected] |
Referenced by receivingId(), and setReceivingId().
Referenced by setSupplyingId(), and supplyingId().