ObjectAttribute Class Reference

Object attribute information. More...

#include <ObjectAttribute.hh>

List of all members.

Public Member Functions

 ObjectAttribute ()
 Declared by not defined (Don't call it).
 ObjectAttribute (AttributeHandle, FederateHandle, ObjectClassAttribute *)
 Constructor that sets handle and attribute owner.
 ~ObjectAttribute ()
 Destructor (nothing to do).
void display () const
 Displays the object attribute information.
FederateHandle getOwner () const
 Returns the owner.
void setOwner (FederateHandle NewOwner)
 Change the federate owner.
void setDivesting (bool divesting_state)
 Put object attribute in divesting state.
bool beingDivested () const
 Returns attribute divesting state.
int isCandidate (FederateHandle candidate) const
 Return the candidate position in list, null otherwise.
void addCandidate (FederateHandle candidate)
 Add a new candidate to list.
void removeCandidate (FederateHandle candidate)
FederateHandle getCandidate (unsigned int) const throw (RTIinternalError)
bool hasCandidates () const
AttributeHandle getHandle () const
void setHandle (AttributeHandle h)
SpaceHandle getSpace () const
void setSpace (SpaceHandle)
ObjectClassAttributegetObjectClassAttribute () const
void associate (RTIRegion *)
void unassociate (RTIRegion *)
const RTIRegiongetRegion () const

Private Attributes

AttributeHandle handle
 The object attribute handle.
FederateHandle owner
 Federate who owns the attribute.
bool divesting
 Divesting state.
std::list< FederateHandleownerCandidates
 Federates candidate.
SpaceHandle space
 Associated routing space.
ObjectClassAttributesource
 The associated class attribute.
RTIRegionregion


Detailed Description

Object attribute information.

This class maintains information about an attribute:

Definition at line 46 of file ObjectAttribute.hh.


Constructor & Destructor Documentation

ObjectAttribute (  ) 

Declared by not defined (Don't call it).

ObjectAttribute ( AttributeHandle  new_handle,
FederateHandle  new_owner,
ObjectClassAttribute associated_attribute 
)

Constructor that sets handle and attribute owner.

Definition at line 43 of file ObjectAttribute.cc.

~ObjectAttribute (  ) 

Destructor (nothing to do).

Definition at line 53 of file ObjectAttribute.cc.


Member Function Documentation

void display (  )  const

Displays the object attribute information.

Definition at line 60 of file ObjectAttribute.cc.

References ObjectAttribute::handle, and ObjectAttribute::owner.

FederateHandle getOwner (  )  const

void setOwner ( FederateHandle  NewOwner  ) 

void setDivesting ( bool  divesting_state  ) 

bool beingDivested (  )  const

int isCandidate ( FederateHandle  candidate  )  const

void addCandidate ( FederateHandle  candidate  ) 

void removeCandidate ( FederateHandle  candidate  ) 

FederateHandle getCandidate ( unsigned int  indice  )  const throw (RTIinternalError)

bool hasCandidates (  )  const

AttributeHandle getHandle (  )  const

void setHandle ( AttributeHandle  h  ) 

Definition at line 161 of file ObjectAttribute.cc.

References ObjectAttribute::handle.

SpaceHandle getSpace (  )  const

Definition at line 168 of file ObjectAttribute.cc.

References ObjectAttribute::space.

void setSpace ( SpaceHandle  h  ) 

Definition at line 175 of file ObjectAttribute.cc.

References ObjectAttribute::space.

ObjectClassAttribute* getObjectClassAttribute (  )  const [inline]

Definition at line 76 of file ObjectAttribute.hh.

Referenced by RootObject::getObjectClassAttribute().

void associate ( RTIRegion r  ) 

void unassociate ( RTIRegion r  ) 

Definition at line 194 of file ObjectAttribute.cc.

References ObjectAttribute::region.

const RTIRegion* getRegion (  )  const [inline]

Definition at line 81 of file ObjectAttribute.hh.

Referenced by ObjectClass::broadcastClassMessage().


Member Data Documentation

The object attribute handle.

Definition at line 81 of file ObjectAttribute.hh.

Referenced by ObjectAttribute::display(), ObjectAttribute::getHandle(), and ObjectAttribute::setHandle().

FederateHandle owner [private]

Federate who owns the attribute.

Definition at line 86 of file ObjectAttribute.hh.

Referenced by ObjectAttribute::display(), ObjectAttribute::getOwner(), and ObjectAttribute::setOwner().

bool divesting [private]

Divesting state.

Definition at line 87 of file ObjectAttribute.hh.

Referenced by ObjectAttribute::beingDivested(), and ObjectAttribute::setDivesting().

std::list<FederateHandle> ownerCandidates [private]

SpaceHandle space [private]

Associated routing space.

Definition at line 89 of file ObjectAttribute.hh.

Referenced by ObjectAttribute::getSpace(), and ObjectAttribute::setSpace().

The associated class attribute.

Definition at line 90 of file ObjectAttribute.hh.

RTIRegion* region [private]

Definition at line 91 of file ObjectAttribute.hh.

Referenced by ObjectAttribute::associate(), and ObjectAttribute::unassociate().


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

Generated on Thu Apr 30 15:57:44 2009 for CERTIDeveloperDocumentation by doxygen 1.5.5