MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
BallController1516e Class Reference
+ 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 &paramVals)
 
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 &paramVals)
 
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
 

Protected Attributes

BallMap myUnnamedBalls
 
BallMap myPendingBalls
 
std::auto_ptr
< rti1516e::RTIambassador
myRtiAmbassador
 
HlaBounceFederateAmbassadormyFederateAmbassador
 
rti1516e::FederateHandle myFederateHandle
 
std::wstring myFederateHandleString
 
std::wstring myFederateType
 
std::wstring myFederationName
 
bool myIsSubscribedToDefaultRegion
 
int myDdmXRangeConv
 
int myDdmYRangeConv
 
rti1516e::ObjectClassHandle myBallClass
 
rti1516e::AttributeHandle myColorAttr
 
rti1516e::AttributeHandle mySizeAttr
 
rti1516e::AttributeHandle myXAttr
 
rti1516e::AttributeHandle myYAttr
 
rti1516e::AttributeHandle mySpeedAttr
 
rti1516e::AttributeHandle myDirectionAttr
 
rti1516e::AttributeHandleSet myAllBallAttrs
 
rti1516e::AttributeHandle myPrivToDeleteAttr
 
rti1516e::DimensionHandle myXDim
 
rti1516e::DimensionHandle myYDim
 
bool myIsUsingInteractionModule
 
rti1516e::InteractionClassHandle myTextClass
 
rti1516e::ParameterHandle myTextParam
 
rti1516e::ParameterHandle myTextXParam
 
rti1516e::ParameterHandle myTextYParam
 
rti1516e::ParameterHandle myTextSizeParam
 
rti1516e::ParameterHandle myTextIntervalParam
 
rti1516e::ParameterHandleSet myAllTextParams
 
- Protected Attributes inherited from BallController
BallMapmyBallData
 
DdmRegionMapmyRegionData
 
std::list< TextEventmyPendingTextEvents
 
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 const std::wstring theInteractionFomModule
 
static const std::wstring theTextClassName
 
static const std::wstring theTextParamName
 
static const std::wstring theTextXParamName
 
static const std::wstring theTextYParamName
 
static const std::wstring theTextSizeParamName
 
static const std::wstring theTextIntervalParamName
 
- 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

 BallController1516e ()
 

Constructor & Destructor Documentation

BallController1516e::BallController1516e ( BallMap data,
DdmRegionMap regionData 
)
virtual BallController1516e::~BallController1516e ( )
virtual
BallController1516e::BallController1516e ( )
private

Member Function Documentation

virtual void BallController1516e::acquireBall ( const std::wstring  id)
virtual

Implements BallController.

void BallController1516e::assumeOwnership ( rti1516e::ObjectInstanceHandle  theObject,
rti1516e::AttributeHandleSet const &  attributes 
)
void BallController1516e::ballDiscovered ( ObjectParams1516e objParams)
void BallController1516e::ballNotVisible ( rti1516e::ObjectInstanceHandle  handle)
void BallController1516e::ballRemoved ( rti1516e::ObjectInstanceHandle  handle)
void BallController1516e::ballUpdated ( rti1516e::ObjectInstanceHandle  handle,
const rti1516e::AttributeHandleValueMap &  attrVals 
)
void BallController1516e::ballVisible ( rti1516e::ObjectInstanceHandle  handle)
void BallController1516e::confirmDivestiture ( rti1516e::ObjectInstanceHandle  theObject,
rti1516e::AttributeHandleSet const &  attributes 
)
rti1516e::VariableLengthData BallController1516e::constructTag ( const Ball ball) const
protected
virtual bool BallController1516e::createAndJoinFederation ( const std::wstring &  federation,
const std::wstring &  federateType,
const std::wstring &  federateName = std::wstring(),
bool  includeInterExt = false 
)
virtual

Implements BallController.

bool BallController1516e::createPublicationRegion ( Ball ball)
protected
virtual void BallController1516e::deleteBall ( const std::wstring  id)
virtual

Implements BallController.

virtual void BallController1516e::deleteKnownBalls ( bool  deleteOwned,
bool  deleteOthers 
)
protectedvirtual
void BallController1516e::displayInteractionText ( rti1516e::InteractionClassHandle  handle,
const rti1516e::ParameterHandleValueMap &  paramVals 
)
virtual void BallController1516e::divestBall ( const std::wstring  id)
virtual

Implements BallController.

virtual const std::wstring& BallController1516e::federateId ( ) const
virtual

Implements BallController.

virtual const std::wstring& BallController1516e::federateName ( ) const
virtual

Implements BallController.

virtual const std::wstring& BallController1516e::federateType ( ) const
virtual

Implements BallController.

virtual const std::wstring& BallController1516e::federationName ( ) const
virtual

Implements BallController.

virtual bool BallController1516e::isFederateNameSupported ( ) const
virtual

Implements BallController.

virtual bool BallController1516e::isInteractionExtensionSupported ( ) const
virtual

Implements BallController.

void BallController1516e::markBallsOutOfScope ( )
protected
void BallController1516e::nameReservationFailed ( const std::wstring &  name)
void BallController1516e::nameReservationSucceeded ( const std::wstring &  name)
void BallController1516e::ownershipAcquired ( rti1516e::ObjectInstanceHandle  theObject,
rti1516e::AttributeHandleSet const &  attributes 
)
virtual void BallController1516e::receiveUpdates ( )
protectedvirtual

Implements BallController.

void BallController1516e::releaseOwnership ( rti1516e::ObjectInstanceHandle  theObject,
rti1516e::AttributeHandleSet const &  attributes 
)
virtual void BallController1516e::requestNewBall ( Ball ball,
const std::wstring  name 
)
protectedvirtual

Implements BallController.

virtual bool BallController1516e::resignAndDestroyFederation ( )
virtual

Implements BallController.

virtual void BallController1516e::sendUpdates ( )
protectedvirtual

Implements BallController.

void BallController1516e::setAttributesForBall ( rti1516e::AttributeHandleValueMap &  attrVals,
const Ball ball 
)
protected
void BallController1516e::setBallFromAttributes ( Ball ball,
const rti1516e::AttributeHandleValueMap &  attrVals 
)
protected
virtual void BallController1516e::setDimensions ( int  minX,
int  minY,
int  maxX,
int  maxY 
)
virtual

Reimplemented from BallController.

void BallController1516e::setTextEventFromParameters ( TextEvent textEvent,
const rti1516e::ParameterHandleValueMap &  paramVals 
)
protected
virtual bool BallController1516e::subscribe ( )
virtual

Implements BallController.

void BallController1516e::subscribeInteractionClass ( )
protected
void BallController1516e::subscribeToDefaultRegion ( )
protected
virtual bool BallController1516e::subscribeWithRegion ( int  xLowerBound,
int  yLowerBound,
int  xUpperBound,
int  yUpperBound 
)
virtual

Implements BallController.

virtual bool BallController1516e::unsubscribe ( )
virtual

Implements BallController.

void BallController1516e::unsubscribeFromDefaultRegion ( bool  deleteDiscoveredBalls)
protected
void BallController1516e::unsubscribeInteractionClass ( )
protected
virtual bool BallController1516e::unsubscribeWithRegions ( bool  resubscribeWithoutRegion)
virtual

Implements BallController.

Member Data Documentation

rti1516e::AttributeHandleSet BallController1516e::myAllBallAttrs
protected
rti1516e::ParameterHandleSet BallController1516e::myAllTextParams
protected
rti1516e::ObjectClassHandle BallController1516e::myBallClass
protected
rti1516e::AttributeHandle BallController1516e::myColorAttr
protected
int BallController1516e::myDdmXRangeConv
protected
int BallController1516e::myDdmYRangeConv
protected
rti1516e::AttributeHandle BallController1516e::myDirectionAttr
protected
HlaBounceFederateAmbassador* BallController1516e::myFederateAmbassador
protected
rti1516e::FederateHandle BallController1516e::myFederateHandle
protected
std::wstring BallController1516e::myFederateHandleString
protected
std::wstring BallController1516e::myFederateType
protected
std::wstring BallController1516e::myFederationName
protected
bool BallController1516e::myIsSubscribedToDefaultRegion
protected
bool BallController1516e::myIsUsingInteractionModule
protected
BallMap BallController1516e::myPendingBalls
protected
rti1516e::AttributeHandle BallController1516e::myPrivToDeleteAttr
protected
std::auto_ptr< rti1516e::RTIambassador > BallController1516e::myRtiAmbassador
protected
rti1516e::AttributeHandle BallController1516e::mySizeAttr
protected
rti1516e::AttributeHandle BallController1516e::mySpeedAttr
protected
rti1516e::InteractionClassHandle BallController1516e::myTextClass
protected
rti1516e::ParameterHandle BallController1516e::myTextIntervalParam
protected
rti1516e::ParameterHandle BallController1516e::myTextParam
protected
rti1516e::ParameterHandle BallController1516e::myTextSizeParam
protected
rti1516e::ParameterHandle BallController1516e::myTextXParam
protected
rti1516e::ParameterHandle BallController1516e::myTextYParam
protected
BallMap BallController1516e::myUnnamedBalls
protected
rti1516e::AttributeHandle BallController1516e::myXAttr
protected
rti1516e::DimensionHandle BallController1516e::myXDim
protected
rti1516e::AttributeHandle BallController1516e::myYAttr
protected
rti1516e::DimensionHandle BallController1516e::myYDim
protected
const std::wstring BallController1516e::theBallClassName
staticprotected
const std::wstring BallController1516e::theColorAttrName
staticprotected
const std::wstring BallController1516e::theDirectionAttrName
staticprotected
const std::wstring BallController1516e::theFddFile
staticprotected
const std::wstring BallController1516e::theInteractionFomModule
staticprotected
const std::wstring BallController1516e::thePrivToDeleteAttrName
staticprotected
const std::wstring BallController1516e::theSizeAttrName
staticprotected
const std::wstring BallController1516e::theSpeedAttrName
staticprotected
const std::wstring BallController1516e::theTextClassName
staticprotected
const std::wstring BallController1516e::theTextIntervalParamName
staticprotected
const std::wstring BallController1516e::theTextParamName
staticprotected
const std::wstring BallController1516e::theTextSizeParamName
staticprotected
const std::wstring BallController1516e::theTextXParamName
staticprotected
const std::wstring BallController1516e::theTextYParamName
staticprotected
const std::wstring BallController1516e::theXAttrName
staticprotected
const std::wstring BallController1516e::theXDimName
staticprotected
const std::wstring BallController1516e::theYAttrName
staticprotected
const std::wstring BallController1516e::theYDimName
staticprotected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)