cz.zcu.fav.kiv.jsim.proxies
Class HLAobjectRootProxy

java.lang.Object
  extended byorg.npsnet.xrti.utilities.ObjectInstanceProxy
      extended bycz.zcu.fav.kiv.jsim.proxies.HLAobjectRootProxy
All Implemented Interfaces:
HLAobjectRoot

public class HLAobjectRootProxy
extends ObjectInstanceProxy
implements HLAobjectRoot

Autogenerated object instance proxy.

Author:
org.npsnet.xrti.utilities.ProxyCompiler

Field Summary
private  java.util.Vector HLAobjectRootListeners
          Listeners for attributes associated with the HLAobjectRoot class.
private  AttributeHandle HLAprivilegeToDeleteObjectHandle
          The handle of the HLAprivilegeToDeleteObject attribute.
 
Fields inherited from class org.npsnet.xrti.utilities.ObjectInstanceProxy
autoFlushDisabled, classHandle, deleted, instanceHandle, name, rtiAmbassador
 
Constructor Summary
protected HLAobjectRootProxy(RTIambassador pRTIAmbassador, ObjectClassHandle pClassHandle)
          Constructor for object instance proxies created to represent new locally owned objects.
protected HLAobjectRootProxy(RTIambassador pRTIAmbassador, ObjectClassHandle pClassHandle, java.lang.String pName)
          Constructor for object instance proxies created to represent new locally owned objects.
protected HLAobjectRootProxy(RTIambassador pRTIAmbassador, ObjectInstanceHandle pInstanceHandle, ObjectClassHandle pClassHandle, java.lang.String pName)
          Constructor for object instance proxies created in response to discovered objects.
 
Method Summary
 void addHLAobjectRootListener(HLAobjectRootListener l)
          Adds a listener for attributes associated with the HLAobjectRoot class.
protected  void getAttributeValuesToFlush(AttributeHandleValueMap ahvm, boolean superFlush)
          Places the attribute values to flush into the specified map.
private  void initializeAttributes()
          Initializes the attributes and their handles.
 void provideAttributeValueUpdate(AttributeHandleSet theAttributes, byte[] userSuppliedTag)
          Notifies the proxy that it should provide an update regarding a set of object attributes.
 void reflectAttributeValues(AttributeHandleValueMap theAttributes, byte[] userSuppliedTag, OrderType sentOrdering, TransportationType theTransport)
          Notifies the proxy of changes to the state of an object instance.
 void removeHLAobjectRootListener(HLAobjectRootListener l)
          Removes a listener for attributes associated with the HLAobjectRoot class.
 
Methods inherited from class org.npsnet.xrti.utilities.ObjectInstanceProxy
delete, equals, flushAttributeValues, flushAttributeValues, getAutoFlushDisabled, getClassHandle, getInstanceHandle, getName, hashCode, isDeleted, reflectAttributeValues, reflectAttributeValues, reflectAttributeValues, reflectAttributeValues, reflectAttributeValues, setAutoFlushDisabled, setDeleted, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HLAobjectRootListeners

private java.util.Vector HLAobjectRootListeners
Listeners for attributes associated with the HLAobjectRoot class.


HLAprivilegeToDeleteObjectHandle

private AttributeHandle HLAprivilegeToDeleteObjectHandle
The handle of the HLAprivilegeToDeleteObject attribute.

Constructor Detail

HLAobjectRootProxy

protected HLAobjectRootProxy(RTIambassador pRTIAmbassador,
                             ObjectInstanceHandle pInstanceHandle,
                             ObjectClassHandle pClassHandle,
                             java.lang.String pName)
                      throws RTIinternalError
Constructor for object instance proxies created in response to discovered objects.

Parameters:
pRTIAmbassador - the run-time infrastructure ambassador
pInstanceHandle - the object instance handle
pClassHandle - the object class handle
pName - the object name
Throws:
RTIinternalError - if an internal error occurred in the run-time infrastructure

HLAobjectRootProxy

protected HLAobjectRootProxy(RTIambassador pRTIAmbassador,
                             ObjectClassHandle pClassHandle)
                      throws ObjectClassNotDefined,
                             ObjectClassNotPublished,
                             FederateNotExecutionMember,
                             SaveInProgress,
                             RestoreInProgress,
                             RTIinternalError
Constructor for object instance proxies created to represent new locally owned objects. Automatically notifies the run-time infrastructure.

Parameters:
pRTIAmbassador - the run-time infrastructure ambassador
pClassHandle - the object class handle
Throws:
ObjectClassNotDefined - if the specified object class is not defined
ObjectClassNotPublished - if the specified object class is not published
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the run-time infrastructure

HLAobjectRootProxy

protected HLAobjectRootProxy(RTIambassador pRTIAmbassador,
                             ObjectClassHandle pClassHandle,
                             java.lang.String pName)
                      throws ObjectClassNotDefined,
                             ObjectClassNotPublished,
                             IllegalName,
                             ObjectInstanceNameInUse,
                             FederateNotExecutionMember,
                             SaveInProgress,
                             RestoreInProgress,
                             RTIinternalError
Constructor for object instance proxies created to represent new locally owned objects. Automatically notifies the run-time infrastructure.

Parameters:
pRTIAmbassador - the run-time infrastructure ambassador
pClassHandle - the object class handle
pName - the object name
Throws:
ObjectClassNotDefined - if the specified object class is not defined
ObjectClassNotPublished - if the specified object class is not published
IllegalName - if the instance name has is illegal
ObjectInstanceNameInUse - if the instance name is already in use
FederateNotExecutionMember - if the federate is not a member of an execution
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the run-time infrastructure
Method Detail

initializeAttributes

private void initializeAttributes()
                           throws InvalidObjectClassHandle,
                                  NameNotFound,
                                  ObjectClassNotDefined,
                                  AttributeNotDefined,
                                  FederateNotExecutionMember,
                                  SaveInProgress,
                                  RestoreInProgress,
                                  RTIinternalError
Initializes the attributes and their handles.

Throws:
InvalidObjectClassHandle - if an object class handle is invalid
NameNotFound - if a name is not found
ObjectClassNotDefined - if an object class is not defined
AttributeNotDefined - if an attribute is not defined
FederateNotExecutionMember - if the federate is not an execution member
SaveInProgress - if a save operation is in progress
RestoreInProgress - if a restore operation is in progress
RTIinternalError - if an internal error occurred in the run-time infrastructure

reflectAttributeValues

public void reflectAttributeValues(AttributeHandleValueMap theAttributes,
                                   byte[] userSuppliedTag,
                                   OrderType sentOrdering,
                                   TransportationType theTransport)
                            throws AttributeNotRecognized,
                                   AttributeNotSubscribed,
                                   FederateInternalError
Notifies the proxy of changes to the state of an object instance.

Overrides:
reflectAttributeValues in class ObjectInstanceProxy
Parameters:
theAttributes - the map between attribute handles and the new values of the identified attributes
userSuppliedTag - a user-supplied tag associated with the state change
sentOrdering - the type of ordering with which the update was sent
theTransport - the type of transport associated with the update
Throws:
AttributeNotRecognized - if the attribute was not recognized
AttributeNotSubscribed - if the federate had not subscribed to the attribute
FederateInternalError - if an error occurs in the federate

provideAttributeValueUpdate

public void provideAttributeValueUpdate(AttributeHandleSet theAttributes,
                                        byte[] userSuppliedTag)
                                 throws AttributeNotRecognized,
                                        AttributeNotOwned,
                                        FederateInternalError
Notifies the proxy that it should provide an update regarding a set of object attributes.

Overrides:
provideAttributeValueUpdate in class ObjectInstanceProxy
Parameters:
theAttributes - the set of attribute handles identifying the attributes that should be sent
userSuppliedTag - the user-supplied tag associated with the request
Throws:
AttributeNotRecognized - if an identified attribute was not recognized
AttributeNotOwned - if the federate did not own a specified attribute
FederateInternalError - if an error occurs in the federate

getAttributeValuesToFlush

protected void getAttributeValuesToFlush(AttributeHandleValueMap ahvm,
                                         boolean superFlush)
                                  throws RTIinternalError
Places the attribute values to flush into the specified map.

Overrides:
getAttributeValuesToFlush in class ObjectInstanceProxy
Parameters:
ahvm - the attribute handle value map to populate
superFlush - if true provide updates for all attributes; if false, only provide updates for the modified ones
Throws:
RTIinternalError - if an internal error occurs in the run-time infrastructure

addHLAobjectRootListener

public void addHLAobjectRootListener(HLAobjectRootListener l)
Adds a listener for attributes associated with the HLAobjectRoot class.

Specified by:
addHLAobjectRootListener in interface HLAobjectRoot
Parameters:
l - the listener to remove

removeHLAobjectRootListener

public void removeHLAobjectRootListener(HLAobjectRootListener l)
Removes a listener for attributes associated with the HLAobjectRoot class.

Specified by:
removeHLAobjectRootListener in interface HLAobjectRoot
Parameters:
l - the listener to remove