![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Inheritance diagram for BallController13:
Collaboration diagram for BallController13:| BallController13::BallController13 | ( | BallMap * | data, |
| DdmRegionMap * | regionData | ||
| ) |
| BallController13::~BallController13 | ( | ) | [virtual] |
| BallController13::BallController13 | ( | ) | [private] |
| void BallController13::acquireBall | ( | const std::wstring | id | ) | [virtual] |
Implements BallController.
References RTI::Exception::_name, RTI::Exception::_reason, RTI::AttributeHandleSet::add(), RTI::RTIambassador::attributeOwnershipAcquisition(), constructTag(), RTI::AttributeHandleSetFactory::create(), RTI::AttributeHandleSet::getHandle(), ObjectParams13::instanceHandle(), Ball::isMine(), Ball::isVisible(), myAllBallAttrs, BallController::myBallData, BallController::myLog, BallController::myOwnershipTransferEnabled, myPrivToDeleteAttr, myRtiAmbassador, Ball::objectParams(), RTI::AttributeHandleSet::size(), and toWString().
| void BallController13::assumeOwnership | ( | RTI::ObjectHandle | theObject, |
| RTI::AttributeHandleSet const & | attributes | ||
| ) |
References RTI::Exception::_name, RTI::Exception::_reason, RTI::RTIambassador::attributeOwnershipAcquisitionIfAvailable(), Ball::isMine(), Ball::isVisible(), BallController::myBallData, BallController::myLog, BallController::myOwnershipTransferEnabled, myRtiAmbassador, Ball::objectParams(), and toWString().
| void BallController13::ballDiscovered | ( | ObjectParams13 * | objParams | ) |
| void BallController13::ballNotVisible | ( | RTI::ObjectHandle | handle | ) |
References BallController::myBallData, ObjectParams13::setIsInScope(), and toWString().
| void BallController13::ballRemoved | ( | RTI::ObjectHandle | handle | ) |
References BallController::myBallData, and toWString().
| void BallController13::ballUpdated | ( | RTI::ObjectHandle | handle, |
| const RTI::AttributeHandleValuePairSet & | attrVals | ||
| ) |
References BallController::myBallData, setBallFromAttributes(), and toWString().
| void BallController13::ballVisible | ( | RTI::ObjectHandle | handle | ) |
References BallController::myBallData, ObjectParams13::setIsInScope(), and toWString().
| std::string BallController13::constructTag | ( | const Ball * | ball | ) | const [protected] |
References Ball::id(), and toString().
Referenced by acquireBall(), deleteBall(), deleteKnownBalls(), divestBall(), and sendUpdates().
| bool BallController13::createAndJoinFederation | ( | const std::wstring & | federation, |
| const std::wstring & | federateType, | ||
| const std::wstring & | federateName = std::wstring(), |
||
| bool | includeInterExt = false |
||
| ) | [virtual] |
Implements BallController.
References RTI::Exception::_name, RTI::Exception::_reason, RTI::AttributeHandleSet::add(), RTI::AttributeSetFactory::create(), RTI::AttributeHandleSetFactory::create(), RTI::RTIambassador::createFederationExecution(), RTI::RTIambassador::enableAttributeScopeAdvisorySwitch(), federateType(), RTI::RTIambassador::getAttributeHandle(), RTI::RTIambassador::getDimensionHandle(), RTI::RTIambassador::getObjectClassHandle(), RTI::RTIambassador::getRoutingSpaceHandle(), RTI::RTIambassador::joinFederationExecution(), myAllBallAttrs, myAttrVals, myBallClass, myColorAttr, BallController::myDdmEnabled, myDirectionAttr, myFederateAmbassador, myFederateHandle, myFederateHandleString, myFederateType, myFederationName, BallController::myIsJoined, BallController::myLog, BallController::myOwnershipTransferEnabled, myPrivToDeleteAttr, myRtiAmbassador, mySizeAttr, mySpeedAttr, myXAttr, myXDim, myXYSpace, myYAttr, myYDim, RTI::RTIambassador::publishObjectClass(), RTI::AttributeHandleSet::size(), theBallClassName, theColorAttrName, theDirectionAttrName, theFedFile, thePrivToDeleteAttrName, theSizeAttrName, theSpeedAttrName, theXAttrName, theXDimName, theXYSpaceName, theYAttrName, theYDimName, RTI::RTIambassador::tick(), toString(), and toWString().
| bool BallController13::createPublicationRegion | ( | Ball * | ball | ) | [protected] |
References RTI::Exception::_name, RTI::Exception::_reason, RTI::RTIambassador::associateRegionForUpdates(), RTI::RTIambassador::createRegion(), ObjectParams13::instanceHandle(), myAllBallAttrs, myDdmXRangeConv, myDdmYRangeConv, BallController::myLog, myRtiAmbassador, myXDim, myXYSpace, myYDim, RTI::RTIambassador::notifyAboutRegionModification(), Ball::objectParams(), RTI::Region::setRangeLowerBound(), RTI::Region::setRangeUpperBound(), ObjectParams13::setRegion(), Ball::size(), toWString(), Ball::x(), and Ball::y().
Referenced by ownershipAcquired(), and sendUpdates().
| void BallController13::deleteBall | ( | const std::wstring | id | ) | [virtual] |
Implements BallController.
References RTI::Exception::_name, RTI::Exception::_reason, constructTag(), RTI::RTIambassador::deleteObjectInstance(), RTI::RTIambassador::deleteRegion(), ObjectParams13::instanceHandle(), Ball::isMine(), Ball::markForDeletion(), BallController::myBallData, BallController::myDdmEnabled, BallController::myLog, myRtiAmbassador, Ball::objectParams(), ObjectParams13::region(), and toWString().
| void BallController13::deleteKnownBalls | ( | bool | deleteOwned, |
| bool | deleteOthers | ||
| ) | [protected, virtual] |
References constructTag(), RTI::RTIambassador::deleteObjectInstance(), RTI::RTIambassador::deleteRegion(), ObjectParams13::instanceHandle(), Ball::isMine(), RTI::RTIambassador::localDeleteObjectInstance(), Ball::markForDeletion(), BallController::myBallData, BallController::myDdmEnabled, BallController::myIsJoined, myRtiAmbassador, Ball::objectParams(), and ObjectParams13::region().
Referenced by resignAndDestroyFederation(), unsubscribeFromDefaultRegion(), and unsubscribeWithRegionsKeepRegionInfo().
| void BallController13::divestBall | ( | const std::wstring | id | ) | [virtual] |
Implements BallController.
References RTI::Exception::_name, RTI::Exception::_reason, RTI::AttributeHandleSet::add(), RTI::RTIambassador::cancelNegotiatedAttributeOwnershipDivestiture(), constructTag(), RTI::AttributeHandleSetFactory::create(), RTI::AttributeHandleSet::getHandle(), ObjectParams13::instanceHandle(), Ball::isMine(), myAllBallAttrs, BallController::myBallData, BallController::myLog, BallController::myOwnershipTransferEnabled, myPrivToDeleteAttr, myRtiAmbassador, RTI::RTIambassador::negotiatedAttributeOwnershipDivestiture(), Ball::objectParams(), RTI::AttributeHandleSet::size(), and toWString().
| const std::wstring & BallController13::federateId | ( | ) | const [virtual] |
Implements BallController.
References myFederateHandleString.
| const std::wstring & BallController13::federateName | ( | ) | const [virtual] |
Implements BallController.
| const std::wstring & BallController13::federateType | ( | ) | const [virtual] |
| const std::wstring & BallController13::federationName | ( | ) | const [virtual] |
| bool BallController13::isFederateNameSupported | ( | ) | const [virtual] |
Implements BallController.
| bool BallController13::isInteractionExtensionSupported | ( | ) | const [virtual] |
Implements BallController.
| void BallController13::markBallsOutOfScope | ( | ) | [protected] |
References Ball::isMine(), BallController::myBallData, Ball::objectParams(), ObjectParams13::setIsInScope(), and Ball::setVisible().
Referenced by unsubscribeFromDefaultRegion().
| void BallController13::ownershipAcquired | ( | RTI::ObjectHandle | theObject, |
| RTI::AttributeHandleSet const & | attributes | ||
| ) |
| void BallController13::ownershipDivested | ( | RTI::ObjectHandle | theObject, |
| RTI::AttributeHandleSet const & | attributes | ||
| ) |
References RTI::RTIambassador::deleteRegion(), Ball::isMine(), BallController::myBallData, BallController::myDdmEnabled, BallController::myOwnershipTransferEnabled, myRtiAmbassador, Ball::objectParams(), ObjectParams13::region(), Ball::setIsMine(), toWString(), and RTI::RTIambassador::unassociateRegionForUpdates().
| void BallController13::receiveUpdates | ( | ) | [protected, virtual] |
Implements BallController.
References myRtiAmbassador, and RTI::RTIambassador::tick().
| void BallController13::releaseOwnership | ( | RTI::ObjectHandle | theObject, |
| RTI::AttributeHandleSet const & | attributes | ||
| ) |
References RTI::Exception::_name, RTI::Exception::_reason, RTI::RTIambassador::attributeOwnershipReleaseResponse(), RTI::RTIambassador::deleteRegion(), Ball::isMine(), BallController::myBallData, BallController::myDdmEnabled, BallController::myLog, BallController::myOwnershipTransferEnabled, myRtiAmbassador, Ball::objectParams(), ObjectParams13::region(), Ball::setIsMine(), and toWString().
| void BallController13::requestNewBall | ( | Ball * | ball, |
| const std::wstring | name | ||
| ) | [protected, virtual] |
Implements BallController.
References myPendingBalls.
| bool BallController13::resignAndDestroyFederation | ( | ) | [virtual] |
Implements BallController.
References RTI::Exception::_name, RTI::Exception::_reason, RTI::DELETE_OBJECTS, deleteKnownBalls(), RTI::RTIambassador::destroyFederationExecution(), federationName(), BallController::myDdmEnabled, myFederationName, BallController::myIsJoined, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, BallController::myLog, myRtiAmbassador, RTI::RTIambassador::resignFederationExecution(), toString(), and toWString().
Referenced by ~BallController13().
| void BallController13::sendUpdates | ( | ) | [protected, virtual] |
Implements BallController.
References RTI::Exception::_name, RTI::Exception::_reason, constructTag(), createPublicationRegion(), Ball::id(), ObjectParams13::instanceHandle(), Ball::isMarkedForDeletion(), Ball::isMine(), myAttrVals, myBallClass, BallController::myBallData, BallController::myDdmEnabled, myDdmXRangeConv, myDdmYRangeConv, BallController::myIsJoined, BallController::myLog, myPendingBalls, myRtiAmbassador, myXDim, myYDim, RTI::RTIambassador::notifyAboutRegionModification(), Ball::objectParams(), ObjectParams13::region(), RTI::RTIambassador::registerObjectInstance(), setAttributesForBall(), ObjectParams13::setClassHandle(), ObjectParams13::setInstanceHandle(), ObjectParams13::setInstanceName(), Ball::setObjectParams(), RTI::Region::setRangeLowerBound(), RTI::Region::setRangeUpperBound(), Ball::size(), toString(), toWString(), RTI::RTIambassador::updateAttributeValues(), Ball::x(), and Ball::y().
| void BallController13::setAttributesForBall | ( | RTI::AttributeHandleValuePairSet & | attrVals, |
| const Ball * | ball | ||
| ) | [protected] |
References RTI::AttributeHandleValuePairSet::add(), Ball::color(), Ball::direction(), RTI::AttributeHandleValuePairSet::empty(), myColorAttr, myDirectionAttr, mySizeAttr, mySpeedAttr, myXAttr, myYAttr, Ball::size(), Ball::speed(), swap64(), Ball::x(), and Ball::y().
Referenced by sendUpdates().
| void BallController13::setBallFromAttributes | ( | Ball * | ball, |
| const RTI::AttributeHandleValuePairSet & | attrVals | ||
| ) | [protected] |
References RTI::AttributeHandleValuePairSet::getHandle(), RTI::AttributeHandleValuePairSet::getValueLength(), RTI::AttributeHandleValuePairSet::getValuePointer(), ObjectParams13::isInScope(), myColorAttr, myDirectionAttr, mySizeAttr, mySpeedAttr, myXAttr, myYAttr, Ball::objectParams(), Ball::setColor(), Ball::setDirection(), Ball::setSize(), Ball::setSpeed(), Ball::setVisible(), Ball::setX(), Ball::setY(), RTI::AttributeHandleValuePairSet::size(), and swap64().
Referenced by ballUpdated().
| void BallController13::setDimensions | ( | int | minX, |
| int | minY, | ||
| int | maxX, | ||
| int | maxY | ||
| ) | [virtual] |
Reimplemented from BallController.
References myDdmXRangeConv, and myDdmYRangeConv.
| bool BallController13::subscribe | ( | ) | [virtual] |
Implements BallController.
References myIsSubscribedToDefaultRegion, and subscribeToDefaultRegion().
| void BallController13::subscribeToDefaultRegion | ( | ) | [protected] |
References RTI::Exception::_name, RTI::Exception::_reason, myAllBallAttrs, myBallClass, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, BallController::myLog, myRtiAmbassador, RTI::RTIambassador::subscribeObjectClassAttributes(), and toWString().
Referenced by subscribe(), and unsubscribeWithRegionsKeepRegionInfo().
| bool BallController13::subscribeWithRegion | ( | int | xLowerBound, |
| int | yLowerBound, | ||
| int | xUpperBound, | ||
| int | yUpperBound | ||
| ) | [virtual] |
Implements BallController.
References RTI::Exception::_name, RTI::Exception::_reason, RTI::RTIambassador::createRegion(), DdmRegion13::id(), myAllBallAttrs, myBallClass, BallController::myDdmEnabled, myDdmXRangeConv, myDdmYRangeConv, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, BallController::myLog, BallController::myRegionData, myRtiAmbassador, mySubscriptionRegion, myXDim, myXYSpace, myYDim, RTI::RTIambassador::notifyAboutRegionModification(), DdmRegion13::setExtentIndex(), DdmRegion::setRangeBounds(), RTI::Region::setRangeLowerBound(), RTI::Region::setRangeUpperBound(), RTI::RTIambassador::subscribeObjectClassAttributesWithRegion(), RTI::RTIambassador::tick(), toWString(), unsubscribeFromDefaultRegion(), unsubscribeWithRegionsKeepRegionInfo(), DdmRegion::xLowerBound(), DdmRegion::xUpperBound(), DdmRegion::yLowerBound(), and DdmRegion::yUpperBound().
| bool BallController13::unsubscribe | ( | ) | [virtual] |
Implements BallController.
References BallController::myIsSubscribed, unsubscribeFromDefaultRegion(), and unsubscribeWithRegions().
| void BallController13::unsubscribeFromDefaultRegion | ( | bool | deleteDiscoveredBalls | ) | [protected] |
References RTI::Exception::_name, RTI::Exception::_reason, deleteKnownBalls(), markBallsOutOfScope(), myBallClass, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, BallController::myLog, BallController::myRegionData, myRtiAmbassador, toWString(), and RTI::RTIambassador::unsubscribeObjectClass().
Referenced by subscribeWithRegion(), and unsubscribe().
| bool BallController13::unsubscribeWithRegions | ( | bool | resubscribeWithoutRegion | ) | [virtual] |
Implements BallController.
References BallController::myDdmEnabled, BallController::myIsSubscribed, BallController::myRegionData, and unsubscribeWithRegionsKeepRegionInfo().
Referenced by unsubscribe().
| bool BallController13::unsubscribeWithRegionsKeepRegionInfo | ( | bool | resubscribeWithoutRegion | ) | [virtual] |
References RTI::Exception::_name, RTI::Exception::_reason, deleteKnownBalls(), RTI::RTIambassador::deleteRegion(), myBallClass, BallController::myDdmEnabled, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, BallController::myLog, BallController::myRegionData, myRtiAmbassador, mySubscriptionRegion, subscribeToDefaultRegion(), toWString(), and RTI::RTIambassador::unsubscribeObjectClassWithRegion().
Referenced by subscribeWithRegion(), and unsubscribeWithRegions().
RTI::AttributeHandleSet* BallController13::myAllBallAttrs [protected] |
Referenced by createAndJoinFederation(), and sendUpdates().
RTI::ObjectClassHandle BallController13::myBallClass [protected] |
RTI::AttributeHandle BallController13::myColorAttr [protected] |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
int BallController13::myDdmXRangeConv [protected] |
Referenced by createPublicationRegion(), sendUpdates(), setDimensions(), and subscribeWithRegion().
int BallController13::myDdmYRangeConv [protected] |
Referenced by createPublicationRegion(), sendUpdates(), setDimensions(), and subscribeWithRegion().
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
Referenced by BallController13(), createAndJoinFederation(), and ~BallController13().
Referenced by createAndJoinFederation().
std::wstring BallController13::myFederateHandleString [protected] |
Referenced by createAndJoinFederation(), and federateId().
std::wstring BallController13::myFederateType [protected] |
Referenced by createAndJoinFederation(), and federateType().
std::wstring BallController13::myFederationName [protected] |
Referenced by createAndJoinFederation(), federationName(), and resignAndDestroyFederation().
bool BallController13::myIsSubscribedToDefaultRegion [protected] |
BallMap BallController13::myPendingBalls [protected] |
Referenced by requestNewBall(), and sendUpdates().
Referenced by acquireBall(), createAndJoinFederation(), and divestBall().
RTI::RTIambassador* BallController13::myRtiAmbassador [protected] |
Referenced by acquireBall(), assumeOwnership(), BallController13(), createAndJoinFederation(), createPublicationRegion(), deleteBall(), deleteKnownBalls(), divestBall(), ownershipDivested(), receiveUpdates(), releaseOwnership(), resignAndDestroyFederation(), sendUpdates(), subscribeToDefaultRegion(), subscribeWithRegion(), unsubscribeFromDefaultRegion(), unsubscribeWithRegionsKeepRegionInfo(), and ~BallController13().
RTI::AttributeHandle BallController13::mySizeAttr [protected] |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
RTI::AttributeHandle BallController13::mySpeedAttr [protected] |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
RTI::Region* BallController13::mySubscriptionRegion [protected] |
Referenced by subscribeWithRegion(), and unsubscribeWithRegionsKeepRegionInfo().
RTI::AttributeHandle BallController13::myXAttr [protected] |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
RTI::DimensionHandle BallController13::myXDim [protected] |
Referenced by createAndJoinFederation(), createPublicationRegion(), sendUpdates(), and subscribeWithRegion().
RTI::SpaceHandle BallController13::myXYSpace [protected] |
Referenced by createAndJoinFederation(), createPublicationRegion(), and subscribeWithRegion().
RTI::AttributeHandle BallController13::myYAttr [protected] |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
RTI::DimensionHandle BallController13::myYDim [protected] |
Referenced by createAndJoinFederation(), createPublicationRegion(), sendUpdates(), and subscribeWithRegion().
const std::string BallController13::theBallClassName = "Ball" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theColorAttrName = "Color" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theDirectionAttrName = "Direction" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theFedFile = "MakHlaBounce13.fed" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::thePrivToDeleteAttrName = "privilegeToDelete" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theSizeAttrName = "Size" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theSpeedAttrName = "Speed" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theXAttrName = "XLocation" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theXDimName = "X" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theXYSpaceName = "XYSpace" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theYAttrName = "YLocation" [static, protected] |
Referenced by createAndJoinFederation().
const std::string BallController13::theYDimName = "Y" [static, protected] |
Referenced by createAndJoinFederation().