![]() |
MAK RTIspy API Documentation for HLA 1516
|
Inheritance diagram for BallController1516e:
Collaboration diagram for BallController1516e:Public Member Functions | |
| BallController1516e (BallMap *data, DdmRegionMap *regionData) | |
| virtual | ~BallController1516e () |
| virtual bool | createAndJoinFederation (const std::wstring &federation, const std::wstring &federateType, const std::wstring &federateName=std::wstring(), bool includeInterExt=false) |
| virtual bool | resignAndDestroyFederation () |
| virtual bool | subscribe () |
| virtual bool | unsubscribe () |
| virtual void | deleteBall (const std::wstring id) |
| virtual void | acquireBall (const std::wstring id) |
| virtual void | divestBall (const std::wstring id) |
| virtual bool | subscribeWithRegion (int xLowerBound, int yLowerBound, int xUpperBound, int yUpperBound) |
| virtual bool | unsubscribeWithRegions (bool resubscribeWithoutRegion) |
| void | nameReservationFailed (const std::wstring &name) |
| void | nameReservationSucceeded (const std::wstring &name) |
| void | ballDiscovered (ObjectParams1516e *objParams) |
| void | ballRemoved (rti1516e::ObjectInstanceHandle handle) |
| void | ballVisible (rti1516e::ObjectInstanceHandle handle) |
| void | ballNotVisible (rti1516e::ObjectInstanceHandle handle) |
| void | ballUpdated (rti1516e::ObjectInstanceHandle handle, const rti1516e::AttributeHandleValueMap &attrVals) |
| void | displayInteractionText (rti1516e::InteractionClassHandle handle, const rti1516e::ParameterHandleValueMap ¶mVals) |
| void | releaseOwnership (rti1516e::ObjectInstanceHandle theObject, rti1516e::AttributeHandleSet const &attributes) |
| void | ownershipAcquired (rti1516e::ObjectInstanceHandle theObject, rti1516e::AttributeHandleSet const &attributes) |
| void | assumeOwnership (rti1516e::ObjectInstanceHandle theObject, rti1516e::AttributeHandleSet const &attributes) |
| void | confirmDivestiture (rti1516e::ObjectInstanceHandle theObject, rti1516e::AttributeHandleSet const &attributes) |
| virtual void | setDimensions (int minX, int minY, int maxX, int maxY) |
| virtual const std::wstring & | federateId () const |
| virtual const std::wstring & | federateType () const |
| virtual const std::wstring & | federateName () const |
| virtual const std::wstring & | federationName () const |
| virtual bool | isFederateNameSupported () const |
| virtual bool | isInteractionExtensionSupported () const |
Public Member Functions inherited from BallController | |
| BallController (BallMap *data, DdmRegionMap *regionData) | |
| virtual | ~BallController () |
| virtual void | update () |
| virtual void | addBall (int x, int y) |
| virtual void | setBallColor (BallColor) |
| virtual bool | isDdmEnabled () const |
| virtual bool | isOwnershipTransferEnabled () const |
| virtual bool | isConnected () const |
| virtual bool | isJoined () const |
| virtual bool | isSubscribed () const |
| virtual void | getPendingTextEvents (std::list< TextEvent > &textEvents) |
| virtual const std::wstring & | getLog () const |
| virtual void | clearLog () |
Protected Member Functions | |
| virtual void | sendUpdates () |
| virtual void | receiveUpdates () |
| virtual void | requestNewBall (Ball *ball, const std::wstring name) |
| void | setAttributesForBall (rti1516e::AttributeHandleValueMap &attrVals, const Ball *ball) |
| void | setBallFromAttributes (Ball *ball, const rti1516e::AttributeHandleValueMap &attrVals) |
| void | setTextEventFromParameters (TextEvent &textEvent, const rti1516e::ParameterHandleValueMap ¶mVals) |
| void | subscribeToDefaultRegion () |
| void | unsubscribeFromDefaultRegion (bool deleteDiscoveredBalls) |
| void | subscribeInteractionClass () |
| void | unsubscribeInteractionClass () |
| virtual void | deleteKnownBalls (bool deleteOwned, bool deleteOthers) |
| void | markBallsOutOfScope () |
| bool | createPublicationRegion (Ball *ball) |
| rti1516e::VariableLengthData | constructTag (const Ball *ball) const |
Protected Member Functions inherited from BallController | |
| virtual void | moveBalls () |
| virtual void | calculateNewLoc (double x, double y, double distance, double direction, double &newX, double &newY) const |
| virtual bool | calculateVertWallCollision (double x, double y, double distance, double direction, double newX, double newY, double radius, double &finalDirection, double &distAfterColl, double &collX, double &collY, double &finalX, double &finalY) const |
| virtual bool | calculateHorizWallCollision (double x, double y, double distance, double direction, double newX, double newY, double radius, double &finalDirection, double &distAfterColl, double &collX, double &collY, double &finalX, double &finalY) const |
Static Protected Attributes | |
| static const std::wstring | theFddFile = "MakHlaBounce1516e.xml" |
| static const std::wstring | theBallClassName = "Ball" |
| static const std::wstring | theColorAttrName = "Color" |
| static const std::wstring | theSizeAttrName = "Size" |
| static const std::wstring | theXAttrName = "XLocation" |
| static const std::wstring | theYAttrName = "YLocation" |
| static const std::wstring | theSpeedAttrName = "Speed" |
| static const std::wstring | theDirectionAttrName = "Direction" |
| static const std::wstring | thePrivToDeleteAttrName = "HLAprivilegeToDeleteObject" |
| static const std::wstring | theXDimName = "X" |
| static const std::wstring | theYDimName = "Y" |
| static const std::wstring | theInteractionFomModule = "MakHlaBounceInter1516e.xml" |
| static const std::wstring | theTextClassName = "DisplayText" |
| static const std::wstring | theTextParamName = "Text" |
| static const std::wstring | theTextXParamName = "XLocation" |
| static const std::wstring | theTextYParamName = "YLocation" |
| static const std::wstring | theTextSizeParamName = "Size" |
| static const std::wstring | theTextIntervalParamName = "Interval" |
Static Protected Attributes inherited from BallController | |
| static const double | pi = 3.14159265 |
| static const double | maxRadians = 2*BallController::pi |
| static const double | maxDegrees = 360 |
| static const double | degreesToRadians |
Private Member Functions | |
| BallController1516e () | |
| BallController1516e::BallController1516e | ( | BallMap * | data, |
| DdmRegionMap * | regionData | ||
| ) |
|
virtual |
|
private |
|
virtual |
Implements BallController.
References constructTag(), ObjectParams1516e::instanceHandle(), Ball::isMine(), Ball::isVisible(), myAllBallAttrs, BallController::myBallData, BallController::myLog, BallController::myOwnershipTransferEnabled, myPrivToDeleteAttr, myRtiAmbassador, Ball::objectParams(), and rti1516e::Exception::what().
| void BallController1516e::assumeOwnership | ( | rti1516e::ObjectInstanceHandle | theObject, |
| rti1516e::AttributeHandleSet const & | attributes | ||
| ) |
| void BallController1516e::ballDiscovered | ( | ObjectParams1516e * | objParams | ) |
| void BallController1516e::ballNotVisible | ( | rti1516e::ObjectInstanceHandle | handle | ) |
References BallController::myBallData, and ObjectParams1516e::setIsInScope().
| void BallController1516e::ballRemoved | ( | rti1516e::ObjectInstanceHandle | handle | ) |
References BallController::myBallData.
| void BallController1516e::ballUpdated | ( | rti1516e::ObjectInstanceHandle | handle, |
| const rti1516e::AttributeHandleValueMap & | attrVals | ||
| ) |
References BallController::myBallData, and setBallFromAttributes().
| void BallController1516e::ballVisible | ( | rti1516e::ObjectInstanceHandle | handle | ) |
References BallController::myBallData, and ObjectParams1516e::setIsInScope().
| void BallController1516e::confirmDivestiture | ( | rti1516e::ObjectInstanceHandle | theObject, |
| rti1516e::AttributeHandleSet const & | attributes | ||
| ) |
|
protected |
References Ball::id().
Referenced by acquireBall(), confirmDivestiture(), deleteBall(), deleteKnownBalls(), divestBall(), and sendUpdates().
|
virtual |
Implements BallController.
References federateType(), myAllBallAttrs, myAllTextParams, myBallClass, myColorAttr, BallController::myDdmEnabled, myDirectionAttr, myFederateHandle, myFederateHandleString, myFederateType, myFederationName, BallController::myIsConnected, BallController::myIsJoined, myIsUsingInteractionModule, BallController::myLog, BallController::myOwnershipTransferEnabled, myPrivToDeleteAttr, myRtiAmbassador, mySizeAttr, mySpeedAttr, myTextClass, myTextIntervalParam, myTextParam, myTextSizeParam, myTextXParam, myTextYParam, myXAttr, myXDim, myYAttr, myYDim, theBallClassName, theColorAttrName, theDirectionAttrName, theFddFile, theInteractionFomModule, thePrivToDeleteAttrName, theSizeAttrName, theSpeedAttrName, theTextClassName, theTextIntervalParamName, theTextParamName, theTextSizeParamName, theTextXParamName, theTextYParamName, theXAttrName, theXDimName, theYAttrName, theYDimName, and rti1516e::Exception::what().
|
protected |
References ObjectParams1516e::instanceHandle(), myAllBallAttrs, myDdmXRangeConv, myDdmYRangeConv, BallController::myLog, myRtiAmbassador, myXDim, myYDim, Ball::objectParams(), rti1516e::RangeBounds::setLowerBound(), ObjectParams1516e::setRegionHandle(), rti1516e::RangeBounds::setUpperBound(), Ball::size(), rti1516e::Exception::what(), Ball::x(), and Ball::y().
Referenced by ownershipAcquired(), and sendUpdates().
|
virtual |
Implements BallController.
References constructTag(), ObjectParams1516e::instanceHandle(), Ball::isMine(), Ball::markForDeletion(), BallController::myBallData, BallController::myDdmEnabled, BallController::myLog, myRtiAmbassador, Ball::objectParams(), ObjectParams1516e::regionHandle(), and rti1516e::Exception::what().
|
protectedvirtual |
References constructTag(), ObjectParams1516e::instanceHandle(), Ball::isMine(), Ball::markForDeletion(), BallController::myBallData, BallController::myDdmEnabled, BallController::myIsJoined, myRtiAmbassador, Ball::objectParams(), and ObjectParams1516e::regionHandle().
Referenced by resignAndDestroyFederation(), unsubscribeFromDefaultRegion(), and unsubscribeWithRegions().
| void BallController1516e::displayInteractionText | ( | rti1516e::InteractionClassHandle | handle, |
| const rti1516e::ParameterHandleValueMap & | paramVals | ||
| ) |
|
virtual |
Implements BallController.
References constructTag(), ObjectParams1516e::instanceHandle(), Ball::isMine(), myAllBallAttrs, BallController::myBallData, BallController::myLog, BallController::myOwnershipTransferEnabled, myPrivToDeleteAttr, myRtiAmbassador, Ball::objectParams(), and rti1516e::Exception::what().
|
virtual |
Implements BallController.
References myFederateHandleString.
|
virtual |
Implements BallController.
|
virtual |
|
virtual |
Implements BallController.
References myFederationName.
|
virtual |
Implements BallController.
|
virtual |
Implements BallController.
|
protected |
References Ball::isMine(), BallController::myBallData, Ball::objectParams(), ObjectParams1516e::setIsInScope(), and Ball::setVisible().
Referenced by unsubscribeFromDefaultRegion().
| void BallController1516e::nameReservationFailed | ( | const std::wstring & | name | ) |
References BallController::myLog, and myUnnamedBalls.
| void BallController1516e::nameReservationSucceeded | ( | const std::wstring & | name | ) |
References myPendingBalls, and myUnnamedBalls.
| void BallController1516e::ownershipAcquired | ( | rti1516e::ObjectInstanceHandle | theObject, |
| rti1516e::AttributeHandleSet const & | attributes | ||
| ) |
|
protectedvirtual |
Implements BallController.
References BallController::myIsJoined, BallController::myLog, myRtiAmbassador, and resignAndDestroyFederation().
| void BallController1516e::releaseOwnership | ( | rti1516e::ObjectInstanceHandle | theObject, |
| rti1516e::AttributeHandleSet const & | attributes | ||
| ) |
|
protectedvirtual |
Implements BallController.
References myRtiAmbassador, and myUnnamedBalls.
|
virtual |
Implements BallController.
References rti1516e::DELETE_OBJECTS, deleteKnownBalls(), BallController::myDdmEnabled, myFederationName, BallController::myIsJoined, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, myIsUsingInteractionModule, BallController::myLog, myRtiAmbassador, and rti1516e::Exception::what().
Referenced by receiveUpdates(), and ~BallController1516e().
|
protectedvirtual |
Implements BallController.
References constructTag(), createPublicationRegion(), Ball::id(), ObjectParams1516e::instanceHandle(), Ball::isMarkedForDeletion(), Ball::isMine(), Ball::markForDeletion(), myBallClass, BallController::myBallData, BallController::myDdmEnabled, myDdmXRangeConv, myDdmYRangeConv, BallController::myIsJoined, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, BallController::myLog, myPendingBalls, myRtiAmbassador, myXDim, myYDim, Ball::objectParams(), ObjectParams1516e::regionHandle(), setAttributesForBall(), ObjectParams1516e::setClassHandle(), ObjectParams1516e::setInstanceHandle(), ObjectParams1516e::setInstanceName(), rti1516e::RangeBounds::setLowerBound(), Ball::setObjectParams(), rti1516e::RangeBounds::setUpperBound(), Ball::size(), rti1516e::Exception::what(), Ball::x(), and Ball::y().
|
protected |
References Ball::color(), Ball::direction(), myColorAttr, myDirectionAttr, mySizeAttr, mySpeedAttr, myXAttr, myYAttr, Ball::size(), Ball::speed(), Ball::x(), and Ball::y().
Referenced by sendUpdates().
|
protected |
References ObjectParams1516e::isInScope(), myColorAttr, myDirectionAttr, mySizeAttr, mySpeedAttr, myXAttr, myYAttr, Ball::objectParams(), Ball::setColor(), Ball::setDirection(), Ball::setSize(), Ball::setSpeed(), Ball::setVisible(), Ball::setX(), and Ball::setY().
Referenced by ballUpdated().
|
virtual |
Reimplemented from BallController.
References myDdmXRangeConv, and myDdmYRangeConv.
|
protected |
References interval, myTextIntervalParam, myTextParam, myTextSizeParam, myTextXParam, myTextYParam, TextEvent::setInterval(), TextEvent::setSize(), TextEvent::setText(), TextEvent::setX(), and TextEvent::setY().
Referenced by displayInteractionText().
|
virtual |
Implements BallController.
References myIsSubscribedToDefaultRegion, subscribeInteractionClass(), and subscribeToDefaultRegion().
|
protected |
References myIsUsingInteractionModule, BallController::myLog, myRtiAmbassador, myTextClass, and rti1516e::Exception::what().
Referenced by subscribe().
|
protected |
References myAllBallAttrs, myBallClass, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, BallController::myLog, myRtiAmbassador, and rti1516e::Exception::what().
Referenced by subscribe(), and unsubscribeWithRegions().
|
virtual |
Implements BallController.
References DdmRegion1516e::id(), myAllBallAttrs, myBallClass, BallController::myDdmEnabled, myDdmXRangeConv, myDdmYRangeConv, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, BallController::myLog, BallController::myRegionData, myRtiAmbassador, myXDim, myYDim, DdmRegion1516e::setHandle(), rti1516e::RangeBounds::setLowerBound(), DdmRegion::setRangeBounds(), rti1516e::RangeBounds::setUpperBound(), unsubscribeFromDefaultRegion(), and rti1516e::Exception::what().
|
virtual |
Implements BallController.
References BallController::myIsSubscribed, unsubscribeFromDefaultRegion(), unsubscribeInteractionClass(), and unsubscribeWithRegions().
|
protected |
|
protected |
References myIsUsingInteractionModule, BallController::myLog, myRtiAmbassador, myTextClass, and rti1516e::Exception::what().
Referenced by unsubscribe().
|
virtual |
Implements BallController.
References deleteKnownBalls(), DdmRegion1516e::handle(), DdmRegion::markForDeletion(), myAllBallAttrs, myBallClass, BallController::myDdmEnabled, BallController::myIsSubscribed, myIsSubscribedToDefaultRegion, BallController::myLog, BallController::myRegionData, myRtiAmbassador, subscribeToDefaultRegion(), and rti1516e::Exception::what().
Referenced by unsubscribe().
|
protected |
|
protected |
Referenced by createAndJoinFederation(), and displayInteractionText().
|
protected |
|
protected |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
|
protected |
Referenced by createPublicationRegion(), sendUpdates(), setDimensions(), and subscribeWithRegion().
|
protected |
Referenced by createPublicationRegion(), sendUpdates(), setDimensions(), and subscribeWithRegion().
|
protected |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
|
protected |
Referenced by BallController1516e(), and ~BallController1516e().
|
protected |
Referenced by createAndJoinFederation().
|
protected |
Referenced by createAndJoinFederation(), and federateId().
|
protected |
Referenced by createAndJoinFederation(), and federateType().
|
protected |
Referenced by createAndJoinFederation(), federationName(), and resignAndDestroyFederation().
|
protected |
|
protected |
|
protected |
Referenced by nameReservationSucceeded(), and sendUpdates().
|
protected |
Referenced by acquireBall(), createAndJoinFederation(), and divestBall().
|
protected |
Referenced by acquireBall(), assumeOwnership(), BallController1516e(), confirmDivestiture(), createAndJoinFederation(), createPublicationRegion(), deleteBall(), deleteKnownBalls(), divestBall(), receiveUpdates(), releaseOwnership(), requestNewBall(), resignAndDestroyFederation(), sendUpdates(), subscribeInteractionClass(), subscribeToDefaultRegion(), subscribeWithRegion(), unsubscribeFromDefaultRegion(), unsubscribeInteractionClass(), unsubscribeWithRegions(), and ~BallController1516e().
|
protected |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
|
protected |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
|
protected |
|
protected |
Referenced by createAndJoinFederation(), and setTextEventFromParameters().
|
protected |
Referenced by createAndJoinFederation(), and setTextEventFromParameters().
|
protected |
Referenced by createAndJoinFederation(), and setTextEventFromParameters().
|
protected |
Referenced by createAndJoinFederation(), and setTextEventFromParameters().
|
protected |
Referenced by createAndJoinFederation(), and setTextEventFromParameters().
|
protected |
Referenced by nameReservationFailed(), nameReservationSucceeded(), and requestNewBall().
|
protected |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
|
protected |
Referenced by createAndJoinFederation(), createPublicationRegion(), sendUpdates(), and subscribeWithRegion().
|
protected |
Referenced by createAndJoinFederation(), setAttributesForBall(), and setBallFromAttributes().
|
protected |
Referenced by createAndJoinFederation(), createPublicationRegion(), sendUpdates(), and subscribeWithRegion().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().
|
staticprotected |
Referenced by createAndJoinFederation().