public abstract class SEEAbstractFederate extends java.lang.Object implements SEEFederateInterface
Constructor and Description |
---|
SEEAbstractFederate(SEEAbstractFederateAmbassador seefedamb) |
Modifier and Type | Method and Description |
---|---|
void |
achieveSynchronizationPoint(SynchronizationPoint sp) |
void |
configure(Configuration config)
Configures the SEE federate parameters
|
void |
connectToRTI(java.lang.String local_settings_designator)
Connects the SEE Federate on the SEE Federation
|
protected abstract void |
doAction() |
void |
freezeExecution()
Freezes the Simulation Execution
|
Configuration |
getConfig() |
ExecutionConfiguration |
getExecutionConfiguration() |
Time |
getTime() |
void |
joinFederationExecution()
Joins the Federate to the specified Federation Execution.
|
void |
publishElement(java.lang.Object element)
Publishes the Element on HLA/RTI platform
|
void |
publishElement(java.lang.Object element,
java.lang.String name)
Publishes the Element on HLA/RTI platform with the specified name
|
void |
publishInteraction(java.lang.Object interaction)
Publishes the Interaction on HLA/RTI platform
|
void |
requestAttributeValueUpdate(java.lang.Class<? extends ObjectClass> objectClass) |
void |
resumeExecution()
Resumes the Simulation Execution after Freeze
|
void |
setExecutionConfiguration(ExecutionConfiguration exco) |
void |
setupHLATimeManagement() |
void |
shudownExecution()
Shutdowns and disconnects the SEE Federate from the federation execution
|
void |
startExecution()
Starts the Simulation Execution
|
void |
subscribeElement(java.lang.Class<? extends ObjectClass> objectClass)
Subscribes an element
|
void |
subscribeInteraction(java.lang.Class<? extends InteractionClass> interactionClass)
Subscribes an InteractionObject
|
void |
subscribeReferenceFrame(FrameType frame)
Subscribes the specific ReferenceFrame
|
void |
subscribeSubject(java.util.Observer observer)
Subscribes the SEE Federate to the Subject, in order to be notified about updates.
|
void |
unsubscribeElement(java.lang.Class<? extends ObjectClass> objectClass)
Unsubscribes an ElementObject
|
void |
unsubscribeInteraction(java.lang.Class<? extends InteractionClass> interactionClass)
Unsubscribes an InteractionObject
|
void |
unsubscribeReferenceFrame(FrameType frameType)
Unsubscribes the specific ReferenceFrame
|
void |
unsubscribeSubject(java.util.Observer observer)
Unsubscribes the SEE Federate from the Subject.
|
void |
updateElement(java.lang.Object element)
Updates the Element on HLA/RTI platform
|
void |
updateInteraction(java.lang.Object interaction)
Updates the Interaction on the HLA/RTI platform
|
void |
waitForAttributeValueUpdate(java.lang.Class<? extends ObjectClass> objectClass,
int MAX_WAIT_TIME) |
void |
waitForElementDiscovery(java.lang.Class<? extends ObjectClass> objectClass,
int MAX_WAIT_TIME) |
void |
waitingForAnnouncement(SynchronizationPoint sp,
int max_wait_time) |
void |
waitingForSynchronization(SynchronizationPoint sp,
int max_wait_time) |
public SEEAbstractFederate(SEEAbstractFederateAmbassador seefedamb)
public void configure(Configuration config)
SEEFederateInterface
configure
in interface SEEFederateInterface
config
- the Configuration objectpublic void connectToRTI(java.lang.String local_settings_designator) throws hla.rti1516e.exceptions.ConnectionFailed, hla.rti1516e.exceptions.InvalidLocalSettingsDesignator, hla.rti1516e.exceptions.UnsupportedCallbackModel, hla.rti1516e.exceptions.CallNotAllowedFromWithinCallback, hla.rti1516e.exceptions.RTIinternalError
SEEFederateInterface
connectToRTI
in interface SEEFederateInterface
local_settings_designator
- represents the "local settings designator" string related to the specific
RTI vendor
For PITCH RTI the local_settings_designator parameter MUST be "crcHost=" + {crc_host} + "\ncrcPort=" + {crc_port}
e.g. "crcHost=localhost\ncrcPort=8989"
For MAK RTI the local_settings_designator parameter MUST be an empty string
e.g. ""
hla.rti1516e.exceptions.ConnectionFailed
- connection failedhla.rti1516e.exceptions.InvalidLocalSettingsDesignator
- invalid localSettingsDesignatorhla.rti1516e.exceptions.UnsupportedCallbackModel
- unsupported callback modelhla.rti1516e.exceptions.CallNotAllowedFromWithinCallback
- call not allowed from within a callbackhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructurepublic void joinFederationExecution() 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.FederateNotExecutionMember
SEEFederateInterface
joinFederationExecution
in interface SEEFederateInterface
hla.rti1516e.exceptions.CouldNotCreateLogicalTimeFactory
- could not create LogicalTimeFactoryhla.rti1516e.exceptions.FederationExecutionDoesNotExist
- federation execution does not existhla.rti1516e.exceptions.InconsistentFDD
- inconsistent FDDhla.rti1516e.exceptions.ErrorReadingFDD
- error reading FDDhla.rti1516e.exceptions.CouldNotOpenFDD
- could not open FDDhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progresshla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.CallNotAllowedFromWithinCallback
- call not allowed from within a callbackhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructurejava.net.MalformedURLException
- malformed URL exceptionhla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberpublic void subscribeReferenceFrame(FrameType frame) 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
SEEFederateInterface
subscribeReferenceFrame
in interface SEEFederateInterface
frame
- the name of the ReferenceFramehla.rti1516e.exceptions.AttributeNotDefined
- HLA attribute not definedhla.rti1516e.exceptions.ObjectClassNotDefined
- HLA ObjectClass not definedhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progresshla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructurehla.rti1516e.exceptions.NameNotFound
- name not foundhla.rti1516e.exceptions.InvalidObjectClassHandle
- invalid HLA ObjectClass handlepublic void unsubscribeReferenceFrame(FrameType frameType)
SEEFederateInterface
unsubscribeReferenceFrame
in interface SEEFederateInterface
frameType
- the specific ReferenceFramepublic void subscribeSubject(java.util.Observer observer)
SEEFederateInterface
subscribeSubject
in interface SEEFederateInterface
observer
- the observer objectpublic void unsubscribeSubject(java.util.Observer observer)
SEEFederateInterface
unsubscribeSubject
in interface SEEFederateInterface
observer
- the observer objectprotected abstract void doAction()
public Configuration getConfig()
public void setupHLATimeManagement()
public void startExecution()
SEEFederateInterface
startExecution
in interface SEEFederateInterface
public void freezeExecution()
SEEFederateInterface
freezeExecution
in interface SEEFederateInterface
public void resumeExecution()
SEEFederateInterface
resumeExecution
in interface SEEFederateInterface
public void shudownExecution()
SEEFederateInterface
shudownExecution
in interface SEEFederateInterface
public void publishElement(java.lang.Object element) throws 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.IllegalName, hla.rti1516e.exceptions.ObjectInstanceNameInUse, hla.rti1516e.exceptions.ObjectInstanceNameNotReserved, hla.rti1516e.exceptions.ObjectClassNotPublished, hla.rti1516e.exceptions.AttributeNotOwned, hla.rti1516e.exceptions.ObjectInstanceNotKnown, PublishException, UpdateException
SEEFederateInterface
publishElement
in interface SEEFederateInterface
element
- the element to be publishedhla.rti1516e.exceptions.NameNotFound
- name not foundhla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructurehla.rti1516e.exceptions.InvalidObjectClassHandle
- invalid HLA ObjectClass handlehla.rti1516e.exceptions.AttributeNotDefined
- HLA Attribute not definedhla.rti1516e.exceptions.ObjectClassNotDefined
- HLA ObjectClass not definedhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progressjava.lang.InstantiationException
- instantiation exceptionjava.lang.IllegalAccessException
- illegal access exceptionhla.rti1516e.exceptions.IllegalName
- illegal namehla.rti1516e.exceptions.ObjectInstanceNameInUse
- object instance name in usehla.rti1516e.exceptions.ObjectInstanceNameNotReserved
- object instance name not reservedhla.rti1516e.exceptions.ObjectClassNotPublished
- HLA ObjectClass not publishedhla.rti1516e.exceptions.AttributeNotOwned
- attribute not ownedhla.rti1516e.exceptions.ObjectInstanceNotKnown
- object instance not knownPublishException
- publish exceptionUpdateException
- update exceptionpublic 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, hla.rti1516e.exceptions.AttributeNotDefined, hla.rti1516e.exceptions.ObjectClassNotDefined, hla.rti1516e.exceptions.SaveInProgress, hla.rti1516e.exceptions.RestoreInProgress, PublishException, java.lang.InstantiationException, java.lang.IllegalAccessException, 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
SEEFederateInterface
publishElement
in interface SEEFederateInterface
element
- the element to be publishedname
- the name to give to the element on the HLA/RTI infrastructurehla.rti1516e.exceptions.NameNotFound
- name not foundhla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructurehla.rti1516e.exceptions.InvalidObjectClassHandle
- invalid HLA ObjectClass handlehla.rti1516e.exceptions.AttributeNotDefined
- HLA Attribute not definedhla.rti1516e.exceptions.ObjectClassNotDefined
- HLA ObjectClass not definedhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progressPublishException
- publish exceptionjava.lang.InstantiationException
- instantiation exceptionjava.lang.IllegalAccessException
- illegal access exceptionhla.rti1516e.exceptions.IllegalName
- illegal namehla.rti1516e.exceptions.ObjectInstanceNameInUse
- object instance name in usehla.rti1516e.exceptions.ObjectInstanceNameNotReserved
- object instance name not reservedhla.rti1516e.exceptions.ObjectClassNotPublished
- HLA ObjectClass not publishedhla.rti1516e.exceptions.AttributeNotOwned
- attribute not ownedhla.rti1516e.exceptions.ObjectInstanceNotKnown
- object instance not knownUpdateException
- update exceptionpublic void publishInteraction(java.lang.Object interaction) throws 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
SEEFederateInterface
publishInteraction
in interface SEEFederateInterface
interaction
- the interaction to be publishedhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructurehla.rti1516e.exceptions.NameNotFound
- name not foundhla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.InvalidInteractionClassHandle
- invalid interaction class handlehla.rti1516e.exceptions.InteractionClassNotDefined
- interaction class not definedhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progresshla.rti1516e.exceptions.InteractionClassNotPublished
- interaction class not publishedhla.rti1516e.exceptions.InteractionParameterNotDefined
- interaction parameter not definedPublishException
- publish exceptionpublic void updateElement(java.lang.Object element) throws 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, UpdateException, hla.rti1516e.exceptions.IllegalName, hla.rti1516e.exceptions.ObjectInstanceNameInUse, hla.rti1516e.exceptions.ObjectInstanceNameNotReserved, hla.rti1516e.exceptions.ObjectClassNotPublished, hla.rti1516e.exceptions.ObjectClassNotDefined
SEEFederateInterface
updateElement
in interface SEEFederateInterface
element
- the element to be updatedhla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.AttributeNotOwned
- attribute not ownedhla.rti1516e.exceptions.AttributeNotDefined
- attribute not definedhla.rti1516e.exceptions.ObjectInstanceNotKnown
- object instance not knownhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progresshla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructureUpdateException
- update exceptionhla.rti1516e.exceptions.IllegalName
- illegal namehla.rti1516e.exceptions.ObjectInstanceNameInUse
- object instance name in usehla.rti1516e.exceptions.ObjectInstanceNameNotReserved
- object instance name not reservedhla.rti1516e.exceptions.ObjectClassNotPublished
- HLA ObjectClass not publishedhla.rti1516e.exceptions.ObjectClassNotDefined
- HLA ObjectClass not definedpublic 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
SEEFederateInterface
updateInteraction
in interface SEEFederateInterface
interaction
- the interaction to be updatedhla.rti1516e.exceptions.InteractionClassNotPublished
- interaction class not publishedhla.rti1516e.exceptions.InteractionParameterNotDefined
- interaction parameter not definedhla.rti1516e.exceptions.InteractionClassNotDefined
- interaction class not definedhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progresshla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructureUpdateException
- update exceptionpublic void subscribeElement(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, SubscribeException
SEEFederateInterface
subscribeElement
in interface SEEFederateInterface
objectClass
- the element to be subscribedjava.lang.InstantiationException
- instantiation exceptionjava.lang.IllegalAccessException
- illegal access exceptionhla.rti1516e.exceptions.NameNotFound
- name not foundhla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructurehla.rti1516e.exceptions.InvalidObjectClassHandle
- invalid HLA ObjectClass handlehla.rti1516e.exceptions.AttributeNotDefined
- attribute not definedhla.rti1516e.exceptions.ObjectClassNotDefined
- object class not definedhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progressSubscribeException
- subscribe exceptionpublic 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, SubscribeException
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
SubscribeException
public void waitForAttributeValueUpdate(java.lang.Class<? extends ObjectClass> objectClass, int MAX_WAIT_TIME) throws SubscribeException
SubscribeException
public void subscribeInteraction(java.lang.Class<? extends InteractionClass> interactionClass) throws hla.rti1516e.exceptions.RTIinternalError, java.lang.InstantiationException, java.lang.IllegalAccessException, 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, SubscribeException
SEEFederateInterface
subscribeInteraction
in interface SEEFederateInterface
interactionClass
- the interaction to be subscribedhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructurejava.lang.InstantiationException
- instantiation exceptionjava.lang.IllegalAccessException
- illegal access exceptionhla.rti1516e.exceptions.NameNotFound
- name not foundhla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.InvalidInteractionClassHandle
- invalid interaction class handlehla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM
- federate service invocations are being reported via MOMhla.rti1516e.exceptions.InteractionClassNotDefined
- interaction class not definedhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progressSubscribeException
- subscribe exceptionpublic void unsubscribeElement(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
SEEFederateInterface
unsubscribeElement
in interface SEEFederateInterface
objectClass
- the objectClass to be subscribedhla.rti1516e.exceptions.ObjectClassNotDefined
- HLA ObjectClass not definedhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progresshla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructureUnsubscribeException
- unsubscribe exceptionpublic void unsubscribeInteraction(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
SEEFederateInterface
unsubscribeInteraction
in interface SEEFederateInterface
interactionClass
- the interactionClass to be unsubscribedhla.rti1516e.exceptions.InteractionClassNotDefined
- interaction class not definedhla.rti1516e.exceptions.SaveInProgress
- save in progresshla.rti1516e.exceptions.RestoreInProgress
- restore in progresshla.rti1516e.exceptions.FederateNotExecutionMember
- federate not execution memberhla.rti1516e.exceptions.NotConnected
- not connectedhla.rti1516e.exceptions.RTIinternalError
- internal error related to the specific RTI infrastructureUnsubscribeException
- unsubscribe exceptionpublic Time getTime()
public void waitForElementDiscovery(java.lang.Class<? extends ObjectClass> objectClass, int MAX_WAIT_TIME) throws UnsubscribeException
UnsubscribeException
public void waitingForSynchronization(SynchronizationPoint sp, int max_wait_time) throws java.lang.InterruptedException
java.lang.InterruptedException
public void waitingForAnnouncement(SynchronizationPoint sp, int max_wait_time) throws java.lang.InterruptedException
java.lang.InterruptedException
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 setExecutionConfiguration(ExecutionConfiguration exco)
public ExecutionConfiguration getExecutionConfiguration()
Author: SMASH LAB - University of Calabria (UNICAL)