public class SEEHLAModule
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
SEEHLAModule(SEEAbstractFederate federate,
SEEAbstractFederateAmbassador fedamb) |
Modifier and Type | Method and Description |
---|---|
void |
achieveSynchronizationPoint(SynchronizationPoint sp) |
void |
advanceTime(hla.rti1516e.LogicalTime nextLogicaTime) |
void |
announceSynchronizationPoint(SynchronizationPoint sp) |
protected void |
configureAsynchronousDelivery() |
protected void |
configureTimePolicy() |
protected void |
connect(java.lang.String local_settings_designator) |
void |
disconnect() |
SEEAbstractFederateAmbassador |
getAmbassador() |
SEEAbstractFederate |
getFederate() |
protected void |
joinIntoFederationExecution() |
void |
publishElement(java.lang.Object element,
java.lang.String name) |
void |
publishInteraction(java.lang.Object interaction) |
void |
queryToGALT() |
void |
registerSynchronizationPoint(SynchronizationPoint sp) |
void |
requestAttributeValueUpdate(java.lang.Class<? extends ObjectClass> objectClass) |
protected void |
setTime(Time time) |
void |
subscribeElementObject(java.lang.Class<? extends ObjectClass> objectClass) |
void |
subscribeInteractionObject(java.lang.Class<? extends InteractionClass> interactionClass) |
void |
subscribeReferenceFrame(FrameType frameType) |
void |
subscribeToSubject(java.util.Observer observer) |
void |
unsubscribeFromSubject(java.util.Observer observer) |
void |
unsubscribeInteractionObject(java.lang.Class<? extends InteractionClass> interactionClass) |
void |
unsubscribeObjectClass(java.lang.Class<? extends ObjectClass> objectClass) |
void |
unsubscribeReferenceFrame(FrameType frameType) |
void |
updateElementObject(java.lang.Object element) |
void |
updateInteraction(java.lang.Object interaction) |
void |
waitForAttributeValueUpdate(java.lang.Class<? extends ObjectClass> objectClass,
int MAX_WAIT_TIME) |
void |
waitForElementDiscovery(java.lang.Class<? extends ObjectClass> objectClass,
int MAX_WAIT_TIME) |
protected SEEHLAModule(SEEAbstractFederate federate, SEEAbstractFederateAmbassador fedamb)
protected void setTime(Time time)
protected void connect(java.lang.String local_settings_designator) throws hla.rti1516e.exceptions.RTIinternalError, hla.rti1516e.exceptions.ConnectionFailed, hla.rti1516e.exceptions.InvalidLocalSettingsDesignator, hla.rti1516e.exceptions.UnsupportedCallbackModel, hla.rti1516e.exceptions.CallNotAllowedFromWithinCallback
hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.ConnectionFailed
hla.rti1516e.exceptions.InvalidLocalSettingsDesignator
hla.rti1516e.exceptions.UnsupportedCallbackModel
hla.rti1516e.exceptions.CallNotAllowedFromWithinCallback
protected void joinIntoFederationExecution() throws hla.rti1516e.exceptions.CouldNotCreateLogicalTimeFactory, hla.rti1516e.exceptions.FederationExecutionDoesNotExist, hla.rti1516e.exceptions.InconsistentFDD, hla.rti1516e.exceptions.ErrorReadingFDD, hla.rti1516e.exceptions.CouldNotOpenFDD, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.CallNotAllowedFromWithinCallback, hla.rti1516e.exceptions.RTIinternalError, java.net.MalformedURLException
hla.rti1516e.exceptions.CouldNotCreateLogicalTimeFactory
hla.rti1516e.exceptions.FederationExecutionDoesNotExist
hla.rti1516e.exceptions.InconsistentFDD
hla.rti1516e.exceptions.ErrorReadingFDD
hla.rti1516e.exceptions.CouldNotOpenFDD
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.CallNotAllowedFromWithinCallback
hla.rti1516e.exceptions.RTIinternalError
java.net.MalformedURLException
protected void configureAsynchronousDelivery() throws hla.rti1516e.exceptions.AsynchronousDeliveryAlreadyEnabled, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.AsynchronousDeliveryAlreadyEnabled
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
protected void configureTimePolicy() throws hla.rti1516e.exceptions.RTIexception
hla.rti1516e.exceptions.RTIexception
public void advanceTime(hla.rti1516e.LogicalTime nextLogicaTime) throws hla.rti1516e.exceptions.LogicalTimeAlreadyPassed, hla.rti1516e.exceptions.InvalidLogicalTime, hla.rti1516e.exceptions.InTimeAdvancingState, hla.rti1516e.exceptions.RequestForTimeRegulationPending, hla.rti1516e.exceptions.RequestForTimeConstrainedPending, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.LogicalTimeAlreadyPassed
hla.rti1516e.exceptions.InvalidLogicalTime
hla.rti1516e.exceptions.InTimeAdvancingState
hla.rti1516e.exceptions.RequestForTimeRegulationPending
hla.rti1516e.exceptions.RequestForTimeConstrainedPending
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
public void queryToGALT() throws hla.rti1516e.exceptions.RTIexception
hla.rti1516e.exceptions.RTIexception
public void disconnect() throws hla.rti1516e.exceptions.InvalidResignAction, hla.rti1516e.exceptions.OwnershipAcquisitionPending, hla.rti1516e.exceptions.FederateOwnsAttributes, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.CallNotAllowedFromWithinCallback, hla.rti1516e.exceptions.RTIinternalError, hla.rti1516e.exceptions.FederateIsExecutionMember, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.InvalidResignAction
hla.rti1516e.exceptions.OwnershipAcquisitionPending
hla.rti1516e.exceptions.FederateOwnsAttributes
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.CallNotAllowedFromWithinCallback
hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.FederateIsExecutionMember
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
public void subscribeReferenceFrame(FrameType frameType) throws hla.rti1516e.exceptions.AttributeNotDefined, hla.rti1516e.exceptions.ObjectClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError, hla.rti1516e.exceptions.NameNotFound, hla.rti1516e.exceptions.InvalidObjectClassHandle
hla.rti1516e.exceptions.AttributeNotDefined
hla.rti1516e.exceptions.ObjectClassNotDefined
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.NameNotFound
hla.rti1516e.exceptions.InvalidObjectClassHandle
public void unsubscribeReferenceFrame(FrameType frameType)
public SEEAbstractFederate getFederate()
public SEEAbstractFederateAmbassador getAmbassador()
public void subscribeToSubject(java.util.Observer observer)
public void unsubscribeFromSubject(java.util.Observer observer)
public void publishElement(java.lang.Object element, java.lang.String name) throws hla.rti1516e.exceptions.NameNotFound, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError, hla.rti1516e.exceptions.InvalidObjectClassHandle, PublishException, java.lang.InstantiationException, java.lang.IllegalAccessException, hla.rti1516e.exceptions.AttributeNotDefined, hla.rti1516e.exceptions.ObjectClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.IllegalName, hla.rti1516e.exceptions.ObjectInstanceNameInUse, hla.rti1516e.exceptions.ObjectInstanceNameNotReserved, hla.rti1516e.exceptions.ObjectClassNotPublished, hla.rti1516e.exceptions.AttributeNotOwned, hla.rti1516e.exceptions.ObjectInstanceNotKnown, UpdateException
hla.rti1516e.exceptions.NameNotFound
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.InvalidObjectClassHandle
PublishException
java.lang.InstantiationException
java.lang.IllegalAccessException
hla.rti1516e.exceptions.AttributeNotDefined
hla.rti1516e.exceptions.ObjectClassNotDefined
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.IllegalName
hla.rti1516e.exceptions.ObjectInstanceNameInUse
hla.rti1516e.exceptions.ObjectInstanceNameNotReserved
hla.rti1516e.exceptions.ObjectClassNotPublished
hla.rti1516e.exceptions.AttributeNotOwned
hla.rti1516e.exceptions.ObjectInstanceNotKnown
UpdateException
public void publishInteraction(java.lang.Object interaction) throws PublishException, hla.rti1516e.exceptions.RTIinternalError, hla.rti1516e.exceptions.NameNotFound, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.InvalidInteractionClassHandle, hla.rti1516e.exceptions.InteractionClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.InteractionClassNotPublished, hla.rti1516e.exceptions.InteractionParameterNotDefined
PublishException
hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.NameNotFound
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.InvalidInteractionClassHandle
hla.rti1516e.exceptions.InteractionClassNotDefined
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.InteractionClassNotPublished
hla.rti1516e.exceptions.InteractionParameterNotDefined
public void updateElementObject(java.lang.Object element) throws UpdateException, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.AttributeNotOwned, hla.rti1516e.exceptions.AttributeNotDefined, hla.rti1516e.exceptions.ObjectInstanceNotKnown, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.RTIinternalError, hla.rti1516e.exceptions.IllegalName, hla.rti1516e.exceptions.ObjectInstanceNameInUse, hla.rti1516e.exceptions.ObjectInstanceNameNotReserved, hla.rti1516e.exceptions.ObjectClassNotPublished, hla.rti1516e.exceptions.ObjectClassNotDefined
UpdateException
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.AttributeNotOwned
hla.rti1516e.exceptions.AttributeNotDefined
hla.rti1516e.exceptions.ObjectInstanceNotKnown
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.IllegalName
hla.rti1516e.exceptions.ObjectInstanceNameInUse
hla.rti1516e.exceptions.ObjectInstanceNameNotReserved
hla.rti1516e.exceptions.ObjectClassNotPublished
hla.rti1516e.exceptions.ObjectClassNotDefined
public void updateInteraction(java.lang.Object interaction) throws hla.rti1516e.exceptions.InteractionClassNotPublished, hla.rti1516e.exceptions.InteractionParameterNotDefined, hla.rti1516e.exceptions.InteractionClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError, UpdateException
hla.rti1516e.exceptions.InteractionClassNotPublished
hla.rti1516e.exceptions.InteractionParameterNotDefined
hla.rti1516e.exceptions.InteractionClassNotDefined
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
UpdateException
public void subscribeElementObject(java.lang.Class<? extends ObjectClass> objectClass) throws java.lang.InstantiationException, java.lang.IllegalAccessException, hla.rti1516e.exceptions.NameNotFound, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError, hla.rti1516e.exceptions.InvalidObjectClassHandle, hla.rti1516e.exceptions.AttributeNotDefined, hla.rti1516e.exceptions.ObjectClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress
java.lang.InstantiationException
java.lang.IllegalAccessException
hla.rti1516e.exceptions.NameNotFound
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.InvalidObjectClassHandle
hla.rti1516e.exceptions.AttributeNotDefined
hla.rti1516e.exceptions.ObjectClassNotDefined
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
public void subscribeInteractionObject(java.lang.Class<? extends InteractionClass> interactionClass) throws hla.rti1516e.exceptions.RTIinternalError, hla.rti1516e.exceptions.NameNotFound, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.InvalidInteractionClassHandle, hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM, hla.rti1516e.exceptions.InteractionClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, java.lang.InstantiationException, java.lang.IllegalAccessException
hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.NameNotFound
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.InvalidInteractionClassHandle
hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM
hla.rti1516e.exceptions.InteractionClassNotDefined
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
java.lang.InstantiationException
java.lang.IllegalAccessException
public void unsubscribeObjectClass(java.lang.Class<? extends ObjectClass> objectClass) throws hla.rti1516e.exceptions.ObjectClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError, UnsubscribeException
hla.rti1516e.exceptions.ObjectClassNotDefined
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
UnsubscribeException
public void unsubscribeInteractionObject(java.lang.Class<? extends InteractionClass> interactionClass) throws hla.rti1516e.exceptions.InteractionClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError, UnsubscribeException
hla.rti1516e.exceptions.InteractionClassNotDefined
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
UnsubscribeException
public void requestAttributeValueUpdate(java.lang.Class<? extends ObjectClass> objectClass) throws hla.rti1516e.exceptions.AttributeNotDefined, hla.rti1516e.exceptions.ObjectClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError, UnsubscribeException
hla.rti1516e.exceptions.AttributeNotDefined
hla.rti1516e.exceptions.ObjectClassNotDefined
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
UnsubscribeException
public void waitForAttributeValueUpdate(java.lang.Class<? extends ObjectClass> objectClass, int MAX_WAIT_TIME)
public void waitForElementDiscovery(java.lang.Class<? extends ObjectClass> objectClass, int MAX_WAIT_TIME)
public void achieveSynchronizationPoint(SynchronizationPoint sp) throws hla.rti1516e.exceptions.SynchronizationPointLabelNotAnnounced, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.SynchronizationPointLabelNotAnnounced
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
public void registerSynchronizationPoint(SynchronizationPoint sp) throws hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, hla.rti1516e.exceptions.FederateNotExecutionMember, hla.rti1516e.exceptions.NotConnected, hla.rti1516e.exceptions.RTIinternalError
hla.rti1516e.exceptions.SaveInProgress
hla.rti1516e.exceptions.RestoreInProgress
hla.rti1516e.exceptions.FederateNotExecutionMember
hla.rti1516e.exceptions.NotConnected
hla.rti1516e.exceptions.RTIinternalError
public void announceSynchronizationPoint(SynchronizationPoint sp) throws hla.rti1516e.exceptions.FederateInternalError
hla.rti1516e.exceptions.FederateInternalError
Author: SMASH LAB - University of Calabria (UNICAL)