|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.portico.impl.cpp13.ProxyRTIAmbassador
public class ProxyRTIAmbassador
This class is the RTIambassador implementation called by the C++ interface. It is a thin wrapper over the existing HLA 1.3 RTIambassador, serving only to do any necessary deserialization of information as it comes across the wire.
Field Summary | |
---|---|
private ProxyFederateAmbassador |
fedamb
|
private int |
id
|
private org.apache.log4j.Logger |
logger
|
private Default13RTIAmbassador |
rtiamb
|
Constructor Summary | |
---|---|
ProxyRTIAmbassador(int id)
Create a new RTIambassador that will be used by a federate on the C++ side of the bindings. |
Method Summary | |
---|---|
void |
associateRegionForUpdates(hla.rti.Region region,
int theObject,
int[] theAttributes)
|
void |
attributeOwnershipAcquisition(int theObject,
int[] theAttributes,
byte[] theTag)
|
void |
attributeOwnershipAcquisitionIfAvailable(int theObject,
int[] theAttributes)
|
int[] |
attributeOwnershipReleaseResponse(int oHandle,
int[] theAttributes)
|
void |
cancelAttributeOwnershipAcquisition(int theObject,
int[] theAttributes)
|
void |
cancelNegotiatedAttributeOwnershipDivestiture(int theObject,
int[] theAttributes)
|
void |
changeAttributeOrderType(int theObject,
int[] theAttributes,
int theType)
|
void |
changeAttributeTransportationType(int theObject,
int[] theAttributes,
int theType)
|
void |
changeInteractionOrderType(int theClass,
int theType)
|
void |
changeInteractionTransportationType(int theClass,
int theType)
|
private HLA13SuppliedAttributes |
convertAttributes(int[] handles,
byte[][] values)
Converts the form that attribute values are sent over from C++ in into the form expected by the java side of the bindings. |
private HLA13AttributeHandleSet |
convertHandles(int[] handles)
Converts the form that attribute handles are sent over from C++ in into the form expected by the java side of the bindings |
private HLA13SuppliedParameters |
convertParameters(int[] handles,
byte[][] values)
Converts the form that parameter values are sent over from C++ in into the form expected by the java side of the bindings. |
byte[] |
convertTag(byte[] given)
|
void |
createFederationExecution(String executionName,
String fed)
|
hla.rti.Region |
createRegion(int space,
int extents)
|
void |
deleteObjectInstance(int objectHandle,
byte[] tag)
|
int |
deleteObjectInstance(int objectHandle,
byte[] tag,
double theTime)
|
void |
deleteRegion(hla.rti.Region region)
|
void |
destroyFederationExecution(String executionName)
|
void |
disableAsynchronousDelivery()
|
void |
disableAttributeRelevanceAdvisorySwitch()
|
void |
disableAttributeScopeAdvisorySwitch()
|
void |
disableClassRelevanceAdvisorySwitch()
|
void |
disableInteractionRelevanceAdvisorySwitch()
|
void |
disableTimeConstrained()
|
void |
disableTimeRegulation()
|
void |
enableAsynchronousDelivery()
|
void |
enableAttributeRelevanceAdvisorySwitch()
|
void |
enableAttributeScopeAdvisorySwitch()
|
void |
enableClassRelevanceAdvisorySwitch()
|
void |
enableInteractionRelevanceAdvisorySwitch()
|
void |
enableTimeConstrained()
|
void |
enableTimeRegulation(double theFederateTime,
double theLookahead)
|
void |
federateRestoreComplete()
|
void |
federateRestoreNotComplete()
|
void |
federateSaveBegun()
|
void |
federateSaveComplete()
|
void |
federateSaveNotComplete()
|
void |
flushQueueRequest(double theTime)
|
int |
getAttributeHandle(String theName,
int whichClass)
|
String |
getAttributeName(int theHandle,
int whichClass)
|
int |
getAttributeRoutingSpaceHandle(int theHandle,
int whichClass)
|
int |
getDimensionHandle(String theName,
int whichSpace)
|
String |
getDimensionName(int theHandle,
int whichClass)
|
int |
getInteractionClassHandle(String theName)
|
String |
getInteractionClassName(int theHandle)
|
int |
getInteractionRoutingSpaceHandle(int theHandle)
|
int |
getObjectClass(int theObject)
|
int |
getObjectClassHandle(String theName)
|
String |
getObjectClassName(int theHandle)
|
int |
getObjectInstanceHandle(String theName)
|
String |
getObjectInstanceName(int theHandle)
|
int |
getOrderingHandle(String theName)
|
String |
getOrderingName(int theHandle)
|
int |
getParameterHandle(String theName,
int whichClass)
|
String |
getParameterName(int theHandle,
int whichClass)
|
hla.rti.Region |
getRegion(int regionToken)
|
int |
getRegionToken(hla.rti.Region region)
|
int |
getRoutingSpaceHandle(String theName)
|
String |
getRoutingSpaceName(int theHandle)
|
int |
getTransportationHandle(String theName)
|
String |
getTransportationName(int theHandle)
|
boolean |
isAttributeOwnedByFederate(int theObject,
int theAttribute)
|
int |
joinFederationExecution(String federateType,
String executionName)
|
void |
kill()
|
void |
localDeleteObjectInstance(int objectHandle)
|
void |
modifyLookahead(double theLookahead)
|
void |
negotiatedAttributeOwnershipDivestiture(int theObject,
int[] theAttributes,
byte[] theTag)
|
void |
nextEventRequest(double theTime)
|
void |
nextEventRequestAvailable(double theTime)
|
void |
notifyOfRegionModification(hla.rti.Region region)
|
static boolean |
parseCppRid()
This method is only to be called from the C++ side of the bindings. |
void |
publishInteractionClass(int theInteraction)
|
void |
publishObjectClass(int theClass,
int[] attributeHandles)
|
void |
queryAttributeOwnership(int theObject,
int theAttribute)
|
double |
queryFederateTime()
|
double |
queryLBTS()
|
double |
queryLookahead()
|
double |
queryMinNextEventTime()
|
private String |
regionsToString(hla.rti.Region[] array)
Converts an array of regions into a string form. |
void |
registerFederationSynchronizationPoint(String label,
byte[] tag)
|
void |
registerFederationSynchronizationPoint(String label,
byte[] tag,
int[] handles)
|
int |
registerObjectInstance(int theClass)
|
int |
registerObjectInstance(int theClass,
String theObject)
|
int |
registerObjectInstanceWithRegion(int theClass,
int[] attributes,
hla.rti.Region[] regions)
|
int |
registerObjectInstanceWithRegion(int theClass,
String theObject,
int[] attributes,
hla.rti.Region[] regions)
|
void |
requestClassAttributeValueUpdate(int theClass,
int[] theAttributes)
|
void |
requestClassAttributeValueUpdateWithRegion(int theClass,
int[] attributes,
hla.rti.Region region)
|
void |
requestFederationRestore(String label)
|
void |
requestFederationSave(String label)
|
void |
requestFederationSave(String label,
double time)
|
void |
requestObjectAttributeValueUpdate(int theObject,
int[] attributes)
|
void |
resignFederationExecution(int resignAction)
|
void |
retract(int theHandle)
|
void |
sendInteraction(int theInteraction,
int[] handles,
byte[][] values,
byte[] tag)
|
int |
sendInteraction(int iHan,
int[] handles,
byte[][] values,
byte[] tag,
double time)
|
void |
sendInteractionWithRegion(int theInteraction,
int[] handles,
byte[][] values,
byte[] tag,
hla.rti.Region theRegion)
|
int |
sendInteractionWithRegion(int theInteraction,
int[] handles,
byte[][] values,
byte[] tag,
hla.rti.Region theRegion,
double time)
|
void |
subscribeInteractionClass(int theClass)
|
void |
subscribeInteractionClassPassively(int theClass)
|
void |
subscribeInteractionClassPassivelyWithRegion(int theClass,
hla.rti.Region theRegion)
|
void |
subscribeInteractionClassWithRegion(int theClass,
hla.rti.Region theRegion)
|
void |
subscribeObjectClassAttributes(int theClass,
int[] attributes)
|
void |
subscribeObjectClassAttributesPassively(int theClass,
int[] attributes)
|
void |
subscribeObjectClassAttributesPassivelyWithRegion(int theClass,
hla.rti.Region region,
int[] attributes)
|
void |
subscribeObjectClassAttributesWithRegion(int theClass,
hla.rti.Region region,
int[] atts)
|
void |
synchronizationPointAchieved(String label)
|
void |
tick()
|
void |
tick(double min,
double max)
|
void |
timeAdvanceRequest(double theTime)
|
void |
timeAdvanceRequestAvailable(double theTime)
|
void |
unassociateRegionForUpdates(hla.rti.Region theRegion,
int theObject)
|
void |
unconditionalAttributeOwnershipDivestiture(int theObject,
int[] attributes)
|
void |
unpublishInteractionClass(int theInteraction)
|
void |
unpublishObjectClass(int theClass)
|
void |
unsubscribeInteractionClass(int theClass)
|
void |
unsubscribeInteractionClassWithRegion(int theClass,
hla.rti.Region theRegion)
|
void |
unsubscribeObjectClass(int theClass)
|
void |
unsubscribeObjectClassWithRegion(int theClass,
hla.rti.Region theRegion)
|
void |
updateAttributeValues(int theObject,
int[] handles,
byte[][] values,
byte[] tag)
|
int |
updateAttributeValues(int oHandle,
int[] handles,
byte[][] values,
byte[] tag,
double time)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Default13RTIAmbassador rtiamb
private ProxyFederateAmbassador fedamb
private int id
private org.apache.log4j.Logger logger
Constructor Detail |
---|
public ProxyRTIAmbassador(int id) throws Exception
Exception
Method Detail |
---|
public byte[] convertTag(byte[] given)
private HLA13SuppliedParameters convertParameters(int[] handles, byte[][] values)
private HLA13SuppliedAttributes convertAttributes(int[] handles, byte[][] values)
private HLA13AttributeHandleSet convertHandles(int[] handles)
private String regionsToString(hla.rti.Region[] array)
public void createFederationExecution(String executionName, String fed)
public void destroyFederationExecution(String executionName)
public int joinFederationExecution(String federateType, String executionName)
public void resignFederationExecution(int resignAction)
public void registerFederationSynchronizationPoint(String label, byte[] tag)
public void registerFederationSynchronizationPoint(String label, byte[] tag, int[] handles)
public void synchronizationPointAchieved(String label)
public void requestFederationSave(String label, double time)
public void requestFederationSave(String label)
public void federateSaveBegun()
public void federateSaveComplete()
public void federateSaveNotComplete()
public void requestFederationRestore(String label)
public void federateRestoreComplete()
public void federateRestoreNotComplete()
public void publishObjectClass(int theClass, int[] attributeHandles)
public void unpublishObjectClass(int theClass)
public void publishInteractionClass(int theInteraction)
public void unpublishInteractionClass(int theInteraction)
public void subscribeObjectClassAttributes(int theClass, int[] attributes)
public void subscribeObjectClassAttributesPassively(int theClass, int[] attributes)
public void unsubscribeObjectClass(int theClass)
public void subscribeInteractionClass(int theClass)
public void subscribeInteractionClassPassively(int theClass)
public void unsubscribeInteractionClass(int theClass)
public int registerObjectInstance(int theClass)
public int registerObjectInstance(int theClass, String theObject)
public void updateAttributeValues(int theObject, int[] handles, byte[][] values, byte[] tag)
public int updateAttributeValues(int oHandle, int[] handles, byte[][] values, byte[] tag, double time)
public void sendInteraction(int theInteraction, int[] handles, byte[][] values, byte[] tag)
public int sendInteraction(int iHan, int[] handles, byte[][] values, byte[] tag, double time)
public void deleteObjectInstance(int objectHandle, byte[] tag)
public int deleteObjectInstance(int objectHandle, byte[] tag, double theTime)
public void localDeleteObjectInstance(int objectHandle)
public void changeAttributeTransportationType(int theObject, int[] theAttributes, int theType)
public void changeInteractionTransportationType(int theClass, int theType)
public void requestObjectAttributeValueUpdate(int theObject, int[] attributes)
public void requestClassAttributeValueUpdate(int theClass, int[] theAttributes)
public void unconditionalAttributeOwnershipDivestiture(int theObject, int[] attributes)
public void negotiatedAttributeOwnershipDivestiture(int theObject, int[] theAttributes, byte[] theTag)
public void attributeOwnershipAcquisition(int theObject, int[] theAttributes, byte[] theTag)
public void attributeOwnershipAcquisitionIfAvailable(int theObject, int[] theAttributes)
public int[] attributeOwnershipReleaseResponse(int oHandle, int[] theAttributes)
public void cancelNegotiatedAttributeOwnershipDivestiture(int theObject, int[] theAttributes)
public void cancelAttributeOwnershipAcquisition(int theObject, int[] theAttributes)
public void queryAttributeOwnership(int theObject, int theAttribute)
public boolean isAttributeOwnedByFederate(int theObject, int theAttribute)
public void enableTimeRegulation(double theFederateTime, double theLookahead)
public void disableTimeRegulation()
public void enableTimeConstrained()
public void disableTimeConstrained()
public void timeAdvanceRequest(double theTime)
public void timeAdvanceRequestAvailable(double theTime)
public void nextEventRequest(double theTime)
public void nextEventRequestAvailable(double theTime)
public void flushQueueRequest(double theTime)
public void enableAsynchronousDelivery()
public void disableAsynchronousDelivery()
public double queryLBTS()
public double queryFederateTime()
public double queryMinNextEventTime()
public void modifyLookahead(double theLookahead)
public double queryLookahead()
public void retract(int theHandle)
public void changeAttributeOrderType(int theObject, int[] theAttributes, int theType)
public void changeInteractionOrderType(int theClass, int theType)
public hla.rti.Region createRegion(int space, int extents)
public void notifyOfRegionModification(hla.rti.Region region)
public void deleteRegion(hla.rti.Region region)
public int registerObjectInstanceWithRegion(int theClass, int[] attributes, hla.rti.Region[] regions)
public int registerObjectInstanceWithRegion(int theClass, String theObject, int[] attributes, hla.rti.Region[] regions)
public void associateRegionForUpdates(hla.rti.Region region, int theObject, int[] theAttributes)
public void unassociateRegionForUpdates(hla.rti.Region theRegion, int theObject)
public void subscribeObjectClassAttributesWithRegion(int theClass, hla.rti.Region region, int[] atts)
public void subscribeObjectClassAttributesPassivelyWithRegion(int theClass, hla.rti.Region region, int[] attributes)
public void unsubscribeObjectClassWithRegion(int theClass, hla.rti.Region theRegion)
public void subscribeInteractionClassWithRegion(int theClass, hla.rti.Region theRegion)
public void subscribeInteractionClassPassivelyWithRegion(int theClass, hla.rti.Region theRegion)
public void unsubscribeInteractionClassWithRegion(int theClass, hla.rti.Region theRegion)
public void sendInteractionWithRegion(int theInteraction, int[] handles, byte[][] values, byte[] tag, hla.rti.Region theRegion)
public int sendInteractionWithRegion(int theInteraction, int[] handles, byte[][] values, byte[] tag, hla.rti.Region theRegion, double time)
public void requestClassAttributeValueUpdateWithRegion(int theClass, int[] attributes, hla.rti.Region region)
public int getObjectClassHandle(String theName)
public String getObjectClassName(int theHandle)
public int getAttributeHandle(String theName, int whichClass)
public String getAttributeName(int theHandle, int whichClass)
public int getInteractionClassHandle(String theName)
public String getInteractionClassName(int theHandle)
public int getParameterHandle(String theName, int whichClass)
public String getParameterName(int theHandle, int whichClass)
public int getObjectInstanceHandle(String theName)
public String getObjectInstanceName(int theHandle)
public int getRoutingSpaceHandle(String theName)
public String getRoutingSpaceName(int theHandle)
public int getDimensionHandle(String theName, int whichSpace)
public String getDimensionName(int theHandle, int whichClass)
public int getAttributeRoutingSpaceHandle(int theHandle, int whichClass)
public int getObjectClass(int theObject)
public int getInteractionRoutingSpaceHandle(int theHandle)
public int getTransportationHandle(String theName)
public String getTransportationName(int theHandle)
public int getOrderingHandle(String theName)
public String getOrderingName(int theHandle)
public void enableClassRelevanceAdvisorySwitch()
public void disableClassRelevanceAdvisorySwitch()
public void enableAttributeRelevanceAdvisorySwitch()
public void disableAttributeRelevanceAdvisorySwitch()
public void enableAttributeScopeAdvisorySwitch()
public void disableAttributeScopeAdvisorySwitch()
public void enableInteractionRelevanceAdvisorySwitch()
public void disableInteractionRelevanceAdvisorySwitch()
public hla.rti.Region getRegion(int regionToken)
public int getRegionToken(hla.rti.Region region)
public void tick()
public void tick(double min, double max)
public void kill()
public static boolean parseCppRid()
|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |