MAK RTIspy API Documentation for HLA 1.3
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
BallController13 Class Reference
+ Inheritance diagram for BallController13:
+ Collaboration diagram for BallController13:

List of all members.

Public Member Functions

 BallController13 (BallMap *data, DdmRegionMap *regionData)
virtual ~BallController13 ()
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)
virtual bool unsubscribeWithRegionsKeepRegionInfo (bool resubscribeWithoutRegion)
void ballDiscovered (ObjectParams13 *objParams)
void ballRemoved (RTI::ObjectHandle handle)
void ballVisible (RTI::ObjectHandle handle)
void ballNotVisible (RTI::ObjectHandle handle)
void ballUpdated (RTI::ObjectHandle handle, const RTI::AttributeHandleValuePairSet &attrVals)
void releaseOwnership (RTI::ObjectHandle theObject, RTI::AttributeHandleSet const &attributes)
void ownershipAcquired (RTI::ObjectHandle theObject, RTI::AttributeHandleSet const &attributes)
void assumeOwnership (RTI::ObjectHandle theObject, RTI::AttributeHandleSet const &attributes)
void ownershipDivested (RTI::ObjectHandle theObject, RTI::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

Protected Member Functions

virtual void sendUpdates ()
virtual void receiveUpdates ()
virtual void requestNewBall (Ball *ball, const std::wstring name)
void setAttributesForBall (RTI::AttributeHandleValuePairSet &attrVals, const Ball *ball)
void setBallFromAttributes (Ball *ball, const RTI::AttributeHandleValuePairSet &attrVals)
void subscribeToDefaultRegion ()
void unsubscribeFromDefaultRegion (bool deleteDiscoveredBalls)
virtual void deleteKnownBalls (bool deleteOwned, bool deleteOthers)
void markBallsOutOfScope ()
bool createPublicationRegion (Ball *ball)
std::string constructTag (const Ball *ball) const

Protected Attributes

BallMap myPendingBalls
RTI::RTIambassadormyRtiAmbassador
HlaBounceFederateAmbassadormyFederateAmbassador
RTI::FederateHandle myFederateHandle
std::wstring myFederateHandleString
std::wstring myFederateType
std::wstring myFederationName
bool myIsSubscribedToDefaultRegion
RTI::RegionmySubscriptionRegion
int myDdmXRangeConv
int myDdmYRangeConv
RTI::ObjectClassHandle myBallClass
RTI::AttributeHandle myColorAttr
RTI::AttributeHandle mySizeAttr
RTI::AttributeHandle myXAttr
RTI::AttributeHandle myYAttr
RTI::AttributeHandle mySpeedAttr
RTI::AttributeHandle myDirectionAttr
RTI::AttributeHandleSetmyAllBallAttrs
RTI::AttributeHandleValuePairSetmyAttrVals
RTI::AttributeHandle myPrivToDeleteAttr
RTI::SpaceHandle myXYSpace
RTI::DimensionHandle myXDim
RTI::DimensionHandle myYDim

Static Protected Attributes

static const std::string theFedFile = "MakHlaBounce13.fed"
static const std::string theBallClassName = "Ball"
static const std::string theColorAttrName = "Color"
static const std::string theSizeAttrName = "Size"
static const std::string theXAttrName = "XLocation"
static const std::string theYAttrName = "YLocation"
static const std::string theSpeedAttrName = "Speed"
static const std::string theDirectionAttrName = "Direction"
static const std::string thePrivToDeleteAttrName = "privilegeToDelete"
static const std::string theXYSpaceName = "XYSpace"
static const std::string theXDimName = "X"
static const std::string theYDimName = "Y"

Private Member Functions

 BallController13 ()

Constructor & Destructor Documentation


Member Function Documentation

void BallController13::acquireBall ( const std::wstring  id) [virtual]
void BallController13::assumeOwnership ( RTI::ObjectHandle  theObject,
RTI::AttributeHandleSet const &  attributes 
)
std::string BallController13::constructTag ( const Ball ball) const [protected]
bool BallController13::createAndJoinFederation ( const std::wstring &  federation,
const std::wstring &  federateType,
const std::wstring &  federateName = std::wstring(),
bool  includeInterExt = false 
) [virtual]
void BallController13::deleteBall ( const std::wstring  id) [virtual]
void BallController13::deleteKnownBalls ( bool  deleteOwned,
bool  deleteOthers 
) [protected, virtual]
void BallController13::divestBall ( const std::wstring  id) [virtual]
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]

Implements BallController.

References myFederateType.

Referenced by createAndJoinFederation().

const std::wstring & BallController13::federationName ( ) const [virtual]

Implements BallController.

References myFederationName.

Referenced by resignAndDestroyFederation().

Implements BallController.

Implements BallController.

void BallController13::receiveUpdates ( ) [protected, virtual]
void BallController13::requestNewBall ( Ball ball,
const std::wstring  name 
) [protected, virtual]

Implements BallController.

References myPendingBalls.

void BallController13::sendUpdates ( ) [protected, virtual]
void BallController13::setAttributesForBall ( RTI::AttributeHandleValuePairSet attrVals,
const Ball ball 
) [protected]
void BallController13::setBallFromAttributes ( Ball ball,
const RTI::AttributeHandleValuePairSet attrVals 
) [protected]
void BallController13::setDimensions ( int  minX,
int  minY,
int  maxX,
int  maxY 
) [virtual]

Reimplemented from BallController.

References myDdmXRangeConv, and myDdmYRangeConv.

bool BallController13::subscribeWithRegion ( int  xLowerBound,
int  yLowerBound,
int  xUpperBound,
int  yUpperBound 
) [virtual]
void BallController13::unsubscribeFromDefaultRegion ( bool  deleteDiscoveredBalls) [protected]
bool BallController13::unsubscribeWithRegions ( bool  resubscribeWithoutRegion) [virtual]
bool BallController13::unsubscribeWithRegionsKeepRegionInfo ( bool  resubscribeWithoutRegion) [virtual]

Member Data Documentation

Referenced by createAndJoinFederation().

std::wstring BallController13::myFederateHandleString [protected]
std::wstring BallController13::myFederateType [protected]
std::wstring BallController13::myFederationName [protected]

Referenced by requestNewBall(), and sendUpdates().

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().


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)