|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
edu.BaseFedAmb | +--edu.WBFedAmb
This is callback object to receive RTI messages. We used the following callback messages for this demo program:
Field Summary | |
(package private) RTIObjectsContainer |
boss
|
(package private) java.io.PrintWriter |
myLog
|
Constructor Summary | |
WBFedAmb(RTIObjectsContainer father)
|
Method Summary | |
void |
discoverObjectInstance(int theObject,
short theObjectClass)
Add this new discovered object to the EntityManager. |
void |
provideAttributeValueUpdate(int theObject,
short[] theAttributes)
Ask the corresponding SimCountry object to update its attribute. |
void |
receiveInteraction(short theInteraction,
RTIcap.ParameterHandleValuePair[] theParameters,
java.lang.String theTag)
|
void |
receiveInteractionWithTime(short theInteraction,
RTIcap.ParameterHandleValuePair[] theParameters,
double theTime,
java.lang.String theTag,
RTIcap.EventRetractionHandle theHandle)
|
void |
reflectAttributeValues(int theObject,
RTIcap.AttributeHandleValuePair[] theAttributes,
java.lang.String theTag)
Find the objects in the EntityManager and updates their received attributes. |
void |
reflectAttributeValuesWithTime(int theObject,
RTIcap.AttributeHandleValuePair[] theAttributes,
double theTime,
java.lang.String theTag,
RTIcap.EventRetractionHandle theHandle)
Update attributes. |
void |
removeObjectInstance(int theObject,
java.lang.String theTag)
Remove the corresponding object from EntityManager. |
void |
removeObjectInstanceWithTime(int theObject,
double theTime,
java.lang.String theTag,
RTIcap.EventRetractionHandle theHandle)
Remove the corresponding object from EntityManager. |
void |
timeAdvanceGrant(double theTime)
Change the HelloWorld federation's time. |
void |
timeConstrainedEnabled(double theTime)
Change the HelloWorld federate's time. |
void |
timeRegulationEnabled(double theTime)
Change the HelloWorld federate's time. |
void |
turnUpdatesOffForObjectInstance(int theObject,
short[] theAttributes)
Tell simulated object *NOT* to send its updates to RTI. |
void |
turnUpdatesOnForObjectInstance(int theObject,
short[] theAttributes)
Tell simulated object to send its updates to RTI. |
Field Detail |
RTIObjectsContainer boss
java.io.PrintWriter myLog
Constructor Detail |
public WBFedAmb(RTIObjectsContainer father)
Method Detail |
public void discoverObjectInstance(int theObject, short theObjectClass) throws RTIcap.CouldNotDiscover, RTIcap.ObjectClassNotKnown, RTIcap.InvalidFederationTime, RTIcap.FederateInternalError
public void reflectAttributeValuesWithTime(int theObject, RTIcap.AttributeHandleValuePair[] theAttributes, double theTime, java.lang.String theTag, RTIcap.EventRetractionHandle theHandle) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.FederateOwnsAttributes, RTIcap.InvalidFederationTime, RTIcap.FederateInternalError
public void reflectAttributeValues(int theObject, RTIcap.AttributeHandleValuePair[] theAttributes, java.lang.String theTag) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.FederateOwnsAttributes, RTIcap.FederateInternalError
public void receiveInteractionWithTime(short theInteraction, RTIcap.ParameterHandleValuePair[] theParameters, double theTime, java.lang.String theTag, RTIcap.EventRetractionHandle theHandle) throws RTIcap.InteractionClassNotKnown, RTIcap.InteractionParameterNotKnown, RTIcap.InvalidFederationTime, RTIcap.FederateInternalError
public void receiveInteraction(short theInteraction, RTIcap.ParameterHandleValuePair[] theParameters, java.lang.String theTag) throws RTIcap.InteractionClassNotKnown, RTIcap.InteractionParameterNotKnown, RTIcap.FederateInternalError
public void removeObjectInstanceWithTime(int theObject, double theTime, java.lang.String theTag, RTIcap.EventRetractionHandle theHandle) throws RTIcap.ObjectNotKnown, RTIcap.InvalidFederationTime, RTIcap.FederateInternalError
public void removeObjectInstance(int theObject, java.lang.String theTag) throws RTIcap.ObjectNotKnown, RTIcap.FederateInternalError
public void provideAttributeValueUpdate(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotKnown, RTIcap.AttributeNotOwned, RTIcap.FederateInternalError
public void turnUpdatesOnForObjectInstance(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotOwned, RTIcap.FederateInternalError
public void turnUpdatesOffForObjectInstance(int theObject, short[] theAttributes) throws RTIcap.ObjectNotKnown, RTIcap.AttributeNotOwned, RTIcap.FederateInternalError
public void timeAdvanceGrant(double theTime) throws RTIcap.InvalidFederationTime, RTIcap.TimeAdvanceWasNotInProgress, RTIcap.FederateInternalError
public void timeRegulationEnabled(double theTime) throws RTIcap.InvalidFederationTime, RTIcap.EnableTimeRegulationWasNotPending, RTIcap.FederateInternalError
public void timeConstrainedEnabled(double theTime) throws RTIcap.InvalidFederationTime, RTIcap.EnableTimeConstrainedWasNotPending, RTIcap.FederateInternalError
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |