![]() |
MAK RTIspy API Documentation for HLA 4
|
Inheritance diagram for BallController1516:
Collaboration diagram for BallController1516:Public Member Functions | |
| BallController1516 (BallMap *data, DdmRegionMap *regionData) | |
| virtual | ~BallController1516 () |
| 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 (ObjectParams1516 *objParams) |
| void | ballRemoved (rti1516::ObjectInstanceHandle handle) |
| void | ballVisible (rti1516::ObjectInstanceHandle handle) |
| void | ballNotVisible (rti1516::ObjectInstanceHandle handle) |
| void | ballUpdated (rti1516::ObjectInstanceHandle handle, const rti1516::AttributeHandleValueMap &attrVals) |
| void | releaseOwnership (rti1516::ObjectInstanceHandle theObject, rti1516::AttributeHandleSet const &attributes) |
| void | ownershipAcquired (rti1516::ObjectInstanceHandle theObject, rti1516::AttributeHandleSet const &attributes) |
| void | assumeOwnership (rti1516::ObjectInstanceHandle theObject, rti1516::AttributeHandleSet const &attributes) |
| void | confirmDivestiture (rti1516::ObjectInstanceHandle theObject, rti1516::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 (rti1516::AttributeHandleValueMap &attrVals, const Ball *ball) |
| void | setBallFromAttributes (Ball *ball, const rti1516::AttributeHandleValueMap &attrVals) |
| void | subscribeToDefaultRegion () |
| void | unsubscribeFromDefaultRegion (bool deleteDiscoveredBalls) |
| virtual void | deleteKnownBalls (bool deleteOwned, bool deleteOthers) |
| void | markBallsOutOfScope () |
| bool | createPublicationRegion (Ball *ball) |
| rti1516::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 |
Protected Attributes | |
| BallMap | myUnnamedBalls |
| BallMap | myPendingBalls |
| std::auto_ptr < rti1516::RTIambassador > | myRtiAmbassador |
| HlaBounceFederateAmbassador * | myFederateAmbassador |
| rti1516::FederateHandle | myFederateHandle |
| std::wstring | myFederateHandleString |
| std::wstring | myFederateType |
| std::wstring | myFederationName |
| bool | myIsSubscribedToDefaultRegion |
| int | myDdmXRangeConv |
| int | myDdmYRangeConv |
| rti1516::ObjectClassHandle | myBallClass |
| rti1516::AttributeHandle | myColorAttr |
| rti1516::AttributeHandle | mySizeAttr |
| rti1516::AttributeHandle | myXAttr |
| rti1516::AttributeHandle | myYAttr |
| rti1516::AttributeHandle | mySpeedAttr |
| rti1516::AttributeHandle | myDirectionAttr |
| rti1516::AttributeHandleSet | myAllBallAttrs |
| rti1516::AttributeHandle | myPrivToDeleteAttr |
| rti1516::DimensionHandle | myXDim |
| rti1516::DimensionHandle | myYDim |
Protected Attributes inherited from BallController | |
| BallMap * | myBallData |
| DdmRegionMap * | myRegionData |
| std::list< TextEvent > | myPendingTextEvents |
| bool | myIsConnected |
| bool | myDdmEnabled |
| bool | myOwnershipTransferEnabled |
| bool | myIsJoined |
| bool | myIsSubscribed |
| int | myMinX |
| int | myMinY |
| int | myMaxX |
| int | myMaxY |
| unsigned int | myNextBallNumber |
| BallColor | myBallColor |
| std::wstring | myLog |
Static Protected Attributes | |
| static const std::wstring | theFddFile |
| static const std::wstring | theBallClassName |
| static const std::wstring | theColorAttrName |
| static const std::wstring | theSizeAttrName |
| static const std::wstring | theXAttrName |
| static const std::wstring | theYAttrName |
| static const std::wstring | theSpeedAttrName |
| static const std::wstring | theDirectionAttrName |
| static const std::wstring | thePrivToDeleteAttrName |
| static const std::wstring | theXDimName |
| static const std::wstring | theYDimName |
Static Protected Attributes inherited from BallController | |
| static const double | pi |
| static const double | maxRadians |
| static const double | maxDegrees |
| static const double | degreesToRadians |
Private Member Functions | |
| BallController1516 () | |
| BallController1516::BallController1516 | ( | BallMap * | data, |
| DdmRegionMap * | regionData | ||
| ) |
|
virtual |
|
private |
|
virtual |
Implements BallController.
| void BallController1516::assumeOwnership | ( | rti1516::ObjectInstanceHandle | theObject, |
| rti1516::AttributeHandleSet const & | attributes | ||
| ) |
| void BallController1516::ballDiscovered | ( | ObjectParams1516 * | objParams | ) |
| void BallController1516::ballNotVisible | ( | rti1516::ObjectInstanceHandle | handle | ) |
| void BallController1516::ballRemoved | ( | rti1516::ObjectInstanceHandle | handle | ) |
| void BallController1516::ballUpdated | ( | rti1516::ObjectInstanceHandle | handle, |
| const rti1516::AttributeHandleValueMap & | attrVals | ||
| ) |
| void BallController1516::ballVisible | ( | rti1516::ObjectInstanceHandle | handle | ) |
| void BallController1516::confirmDivestiture | ( | rti1516::ObjectInstanceHandle | theObject, |
| rti1516::AttributeHandleSet const & | attributes | ||
| ) |
|
protected |
|
virtual |
Implements BallController.
|
protected |
|
virtual |
Implements BallController.
|
protectedvirtual |
|
virtual |
Implements BallController.
|
virtual |
Implements BallController.
|
virtual |
Implements BallController.
|
virtual |
Implements BallController.
|
virtual |
Implements BallController.
|
virtual |
Implements BallController.
|
virtual |
Implements BallController.
|
protected |
| void BallController1516::nameReservationFailed | ( | const std::wstring | name | ) |
| void BallController1516::nameReservationSucceeded | ( | const std::wstring | name | ) |
| void BallController1516::ownershipAcquired | ( | rti1516::ObjectInstanceHandle | theObject, |
| rti1516::AttributeHandleSet const & | attributes | ||
| ) |
|
protectedvirtual |
Implements BallController.
| void BallController1516::releaseOwnership | ( | rti1516::ObjectInstanceHandle | theObject, |
| rti1516::AttributeHandleSet const & | attributes | ||
| ) |
|
protectedvirtual |
Implements BallController.
|
virtual |
Implements BallController.
|
protectedvirtual |
Implements BallController.
|
protected |
|
protected |
|
virtual |
Reimplemented from BallController.
|
virtual |
Implements BallController.
|
protected |
|
virtual |
Implements BallController.
|
virtual |
Implements BallController.
|
protected |
|
virtual |
Implements BallController.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |