|
WSF
|
Classes | |
| class | Tender |
| class | Result |
| class | Query |
| Callback Query class. More... | |
| class | Container |
| class | Transactor |
Enumerations | |
| enum | CapabilityType { cSUPPLY_PAYLOAD = 0 , cSUPPLY_FUEL = 1 , cVEHICLE_RECOVERY = 2 , cVEHICLE_REPAIR = 3 , cSUPPLY_ADS_B = 4 , cNO_CAPABILITY = 5 } |
Functions | |
| void | InitializeStatics () |
| void | ModifyCapabilities (WsfPlatform *aPlatformPtr, unsigned int aOldCapability, unsigned int aNewCapability) |
| void | SetCapabilityFlag (WsfPlatform *aPlatformPtr, CapabilityType aCapability, bool aValue) |
| void | SetCapabilityFlag (unsigned int &aCurrentCapability, CapabilityType aCapability, bool aValue) |
| bool | IsCapable (unsigned int aCapabilityWord, CapabilityType aCapability) |
| unsigned int | CapabilityToBitNumber (CapabilityType aCapability) |
| CapabilityType | BitNumberToCapability (unsigned int aBitNumber) |
| CapabilityType | NameIdToCapability (WsfStringId aCapabilityNameId) |
| bool | IsCapable (const WsfPlatform *aPlatformPtr, CapabilityType aCapability) |
| WsfStringId | CapabilityToNameId (CapabilityType aCapability) |
Variables | |
| static WsfStringId | sSTATE_READY |
| static WsfStringId | sSTATE_REQUESTING |
| static WsfStringId | sSTATE_ACCEPTING |
| static WsfStringId | sSTATE_OFFERING |
| static WsfStringId | sSTATE_SUPPLYING |
| static WsfStringId | sEVENT_REQUESTED |
| static WsfStringId | sEVENT_OFFERED |
| static WsfStringId | sEVENT_ACCEPTED |
| static WsfStringId | sEVENT_SUPPLIED |
| static WsfStringId | sEVENT_RECEIVED |
| static WsfStringId | sEVENT_CANCELLED |
| static WsfStringId | sEVENT_OFFEROR_COMPLETED |
| static WsfStringId | sEVENT_REQUESTOR_RESPONDED |
A namespace for platform-to-platform suppling or receiving of a commodity or service. Four contained classes: Tender, Container, Query, and Transactor. Requires a WsfExchangeProcessor to stimulate the callback events for platform-to-platform Exchanges. Terminology recommendation: Avoid using the term 'receiver', as in this context it may be ambiguous as to whether it is the receiver of a commodity, or the receiver of an event notif- ication. Recommend using "Originator" for the sender of a message or event, "Requester" for player desiring commodities or services, and "Responder" for the provider of the commodity or service.
| CapabilityType WsfExchange::BitNumberToCapability | ( | unsigned int | aBitNumber | ) |
References cNO_CAPABILITY, cSUPPLY_ADS_B, cSUPPLY_FUEL, cSUPPLY_PAYLOAD, cVEHICLE_RECOVERY, and cVEHICLE_REPAIR.
Referenced by ModifyCapabilities().
| unsigned int WsfExchange::CapabilityToBitNumber | ( | CapabilityType | aCapability | ) |
References cNO_CAPABILITY, cSUPPLY_ADS_B, cSUPPLY_FUEL, cSUPPLY_PAYLOAD, cVEHICLE_RECOVERY, and cVEHICLE_REPAIR.
Referenced by IsCapable(), and SetCapabilityFlag().
| WsfStringId WsfExchange::CapabilityToNameId | ( | CapabilityType | aCapability | ) |
References cNO_CAPABILITY, cSUPPLY_ADS_B, cSUPPLY_FUEL, cSUPPLY_PAYLOAD, cVEHICLE_RECOVERY, and cVEHICLE_REPAIR.
Referenced by ModifyCapabilities().
| void WsfExchange::InitializeStatics | ( | ) |
References sEVENT_ACCEPTED, sEVENT_CANCELLED, sEVENT_OFFERED, sEVENT_OFFEROR_COMPLETED, sEVENT_RECEIVED, sEVENT_REQUESTED, sEVENT_REQUESTOR_RESPONDED, sEVENT_SUPPLIED, sSTATE_ACCEPTING, sSTATE_OFFERING, sSTATE_READY, sSTATE_REQUESTING, and sSTATE_SUPPLYING.
Referenced by WsfExchangeProcessor::WsfExchangeProcessor().
| bool WsfExchange::IsCapable | ( | const WsfPlatform * | aPlatformPtr, |
| CapabilityType | aCapability ) |
This is a convenience method to make the Capabilities record in the platform more user-friendly, as the DIS-driven implementation requires bit-mapping the capability bits. This function abstracts away those unpleasant details.
References WsfPlatform::GetCapabilities(), and IsCapable().
| bool WsfExchange::IsCapable | ( | unsigned int | aCapabilityWord, |
| CapabilityType | aCapability ) |
References CapabilityToBitNumber(), and WsfUtil::GenerateBitMask().
Referenced by IsCapable(), and ModifyCapabilities().
| void WsfExchange::ModifyCapabilities | ( | WsfPlatform * | aPlatformPtr, |
| unsigned int | aOldCapability, | ||
| unsigned int | aNewCapability ) |
| CapabilityType WsfExchange::NameIdToCapability | ( | WsfStringId | aCapabilityNameId | ) |
References cNO_CAPABILITY, cSUPPLY_ADS_B, cSUPPLY_FUEL, cSUPPLY_PAYLOAD, cVEHICLE_RECOVERY, and cVEHICLE_REPAIR.
Referenced by WsfExchangeProcessor::PlatformCapabilityChanged(), and UT_DEFINE_SCRIPT_METHOD().
| void WsfExchange::SetCapabilityFlag | ( | unsigned int & | aCurrentCapability, |
| CapabilityType | aCapability, | ||
| bool | aValue ) |
References CapabilityToBitNumber(), and WsfUtil::GenerateBitMask().
| void WsfExchange::SetCapabilityFlag | ( | WsfPlatform * | aPlatformPtr, |
| CapabilityType | aCapability, | ||
| bool | aValue ) |
References WsfPlatform::GetCapabilities(), WsfPlatform::SetCapabilities(), and SetCapabilityFlag().
Referenced by SetCapabilityFlag(), and UT_DEFINE_SCRIPT_METHOD().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by WsfExchange::Query::ContinuingReset(), WsfExchange::Transactor::ExchangeQueried(), WsfExchange::Query::FinalReset(), InitializeStatics(), WsfExchange::Transactor::IsReady(), WsfExchange::Transactor::IsState(), WsfExchange::Query::Query(), WsfExchange::Transactor::RequestFrom(), WsfExchange::Transactor::ReserveTender(), WsfExchange::Transactor::SetDesiredTender(), WsfExchange::Transactor::SetOfferedTender(), and WsfExchange::Query::StateMachine().
|
static |
|
static |