|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eodisp.hla.crc.FederationExecution
public class FederationExecution
Represents a federation execution on the CRC. Most methods in this class are declared package private. It is crucial that other classes in this package using these methods care for synchronization of returned instances from these methods, because they make the non-thread-safe ecore model available to the outside. The reason these methods are not private is because it makes testing easier (Testing classes reside in the same package and therefore have access to the package private methods).
Constructor Summary | |
---|---|
FederationExecution(java.lang.String name,
byte[] fdd)
|
Method Summary | |
---|---|
(package private) void |
addFederationExecutionEventListener(FederationExecutionEventListener listener)
|
(package private) void |
doAnnounceSynchronizationPointCallback(java.lang.String synchronizationPointLabel,
java.util.Set<FederateHandle> callbackFederates,
byte[] userSuppliedTag)
|
(package private) void |
doFederatesSynchronizedCallback(java.lang.String syncPointName,
java.util.Set<FederateHandle> synchronizedFederates,
byte[] userSuppliedTag)
|
(package private) Attribute |
getAttribute(ObjectClassHandle objectClassHandle,
AttributeHandle attributeHandle)
Returns the attribute bound to the given attribute handle. |
(package private) AttributeHandle |
getAttributeHandle(ObjectClassHandle objectClassHandle,
java.lang.String theName)
Implements HLA service 10.4 (See IEEE Std 1516.1-2000). |
(package private) AttributeHandle[] |
getAttributeHandles(java.util.Set<Attribute> attributes)
|
(package private) java.lang.String |
getAttributeName(ObjectClassHandle whichClass,
AttributeHandle theHandle)
Implements HLA service 10.5 (See IEEE Std 1516.1-2000). |
(package private) java.util.Set<Attribute> |
getAttributes(ObjectClassHandle objectClassHandle,
AttributeHandle[] attributeHandles)
|
(package private) Federate |
getFederate(FederateHandle federateHandle)
Returns the federate associated with the given handle. |
(package private) InteractionClass |
getInteractionClass(InteractionClassHandle interactionClassHandle)
Returns the interaction class associated with the given handle. |
(package private) InteractionClassHandle |
getInteractionClassHandle(java.lang.String theName)
Implements HLA service 10.6 (See IEEE Std 1516.1-2000). |
(package private) java.lang.String |
getInteractionClassName(InteractionClassHandle theHandle)
Implements HLA service 10.7 (See IEEE Std 1516.1-2000). |
(package private) ObjectClassHandle |
getKnownObjectClassHandle(ObjectInstanceHandle objectInstanceHandle)
Implements HLA service 10.16 (See IEEE Std 1516.1-2000). |
java.lang.String |
getName()
Returns the name of this federation execution as it was initialized in Crc#createFederationExecution(String, URL) |
(package private) int |
getNrOfJoinedFederates()
|
(package private) ObjectClass |
getObjectClass(ObjectClassHandle objectClassHandle)
Returns the object class associated with the given handle. |
(package private) ObjectClassHandle |
getObjectClassHandle(java.lang.String theName)
Implements HLA service 10.2 (See IEEE Std 1516.1-2000). |
(package private) java.lang.String |
getObjectClassName(ObjectClassHandle theHandle)
Implements HLA service 10.3 (See IEEE Std 1516.1-2000). |
(package private) ObjectInstance |
getObjectInstance(ObjectInstanceHandle objectInstanceHandle)
|
(package private) ObjectInstanceHandle |
getObjectInstanceHandle(java.lang.String theName)
Implements HLA service 10.10 (See IEEE Std 1516.1-2000). |
(package private) java.lang.String |
getObjectInstanceName(ObjectInstanceHandle objectInstanceHandle)
Implements HLA service 10.11 (See IEEE Std 1516.1-2000). |
(package private) Parameter |
getParameter(InteractionClassHandle interactionClassHandle,
ParameterHandle parameterHandle)
|
(package private) Parameter |
getParameter(ParameterHandle parameterHandle)
|
(package private) ParameterHandle |
getParameterHandle(InteractionClassHandle interactionClassHandle,
java.lang.String theName)
Implements HLA service 10.8 (See IEEE Std 1516.1-2000). |
(package private) java.lang.String |
getParameterName(InteractionClassHandle interactionClassHandle,
ParameterHandle parameterHandle)
Implements HLA service 10.9 (See IEEE Std 1516.1-2000). |
FederationExecutionRemote |
getRemoteInterface()
Returns the (always the same) remote proxy of. |
(package private) java.util.Map<LrcRemote,java.util.Set<FederateHandle>> |
getSubscriptions(InteractionClassHandle interactionClassHandle,
FederateHandle federateHandle)
|
(package private) java.util.Map<LrcRemote,java.util.Map<FederateHandle,AttributeHandle[]>> |
getSubscriptions(ObjectInstanceHandle objectInstanceHandle,
AttributeHandle[] attributeHandles,
FederateHandle askingFederateHandle)
|
(package private) FederateHandle |
join(java.lang.String federateType,
LrcHandle lrcHandle,
MobileFederateServices serviceReferences)
Implements HLA service 4.4 (See IEEE Std 1516.1-2000). |
(package private) void |
publishInteractionClass(InteractionClassHandle interactionClassHandle,
FederateHandle federateHandle)
|
(package private) void |
publishObjectClassAttributes(ObjectClassHandle objectClassHandle,
AttributeHandle[] attributeHandles,
FederateHandle federateHandle)
|
(package private) void |
registerFederationSynchronizationPoint(java.lang.String synchronizationPointLabel,
byte[] userSuppliedTag,
FederateHandle askingFederate)
Implements HLA service 4.6 (See IEEE Std 1516.1-2000). |
(package private) void |
registerFederationSynchronizationPoint(java.lang.String synchronizationPointLabel,
byte[] userSuppliedTag,
FederateHandle[] synchronizationSet,
FederateHandle askingFederate)
Implements HLA service 4.6 (See IEEE Std 1516.1-2000). |
(package private) ObjectInstanceHandle |
registerObjectInstance(ObjectClassHandle objectClassHandle,
FederateHandle federateHandle)
|
(package private) void |
removeFederationExecutionEventListener(FederationExecutionEventListener listener)
|
(package private) void |
reset()
Used for testing only |
(package private) void |
resign(ResignAction resignAction,
FederateHandle federateHandle)
Implements HLA service 4.5 (See IEEE Std 1516.1-2000). |
(package private) void |
subscribeInteractionClass(InteractionClassHandle interactionClassHandle,
FederateHandle federateHandle)
|
(package private) void |
subscribeObjectClassAttributes(ObjectClassHandle objectClassHandle,
AttributeHandle[] attributeHandles,
FederateHandle federateHandle)
|
(package private) void |
synchronizationPointAchieved(java.lang.String synchronizationPointLabel,
FederateHandle askingFederate)
Implements HLA service 4.9 (See IEEE Std 1516.1-2000). |
(package private) void |
unexport()
|
(package private) void |
unpublishObjectClass(ObjectClassHandle objectClassHandle,
FederateHandle federateHandle)
|
void |
unpublishObjectClassAttributes(ObjectClassHandle objectClassHandle,
AttributeHandle[] attributeHandles,
FederateHandle federateHandle)
fallback hafd |
(package private) void |
unpusblishInteractionClass(InteractionClassHandle interactionClassHandle,
FederateHandle federateHandle)
|
(package private) void |
unsubscribeInteractionClass(InteractionClassHandle interactionClassHandle,
FederateHandle federateHandle)
|
void |
unsubscribeObjectClass(ObjectClassHandle objectClassHandle,
FederateHandle federateHandle)
|
(package private) void |
unsubscribeObjectClassAttributes(ObjectClassHandle objectClassHandle,
AttributeHandle[] attributeHandles,
FederateHandle federateHandle)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
FederationExecution(java.lang.String name, byte[] fdd) throws ErrorReadingFDD
name
- The name of the new federation executionfdd
- The Federation Object Model (FOM) Document Data
CouldNotOpenFDD
ErrorReadingFDD
java.rmi.server.ExportException
Method Detail |
---|
void unexport()
void addFederationExecutionEventListener(FederationExecutionEventListener listener)
void removeFederationExecutionEventListener(FederationExecutionEventListener listener)
Attribute getAttribute(ObjectClassHandle objectClassHandle, AttributeHandle attributeHandle) throws InvalidAttributeHandle, ObjectClassNotDefined, AttributeNotDefined
objectClassHandle
- the object class this attribute is defined inattributeHandle
- the attribute handle
InvalidAttributeHandle
- If the given handle does not exist within this federation
execution.
InvalidObjectClassHandle
- If the given handle does not exist within this federation
execution.
AttributeNotDefined
- If the attribute specified with the attribute handle is not
available within the specified object class.
ObjectClassNotDefined
Attribute.isAvailableFrom(ObjectClass)
java.util.Set<Attribute> getAttributes(ObjectClassHandle objectClassHandle, AttributeHandle[] attributeHandles) throws InvalidAttributeHandle, ObjectClassNotDefined, AttributeNotDefined
InvalidAttributeHandle
ObjectClassNotDefined
AttributeNotDefined
AttributeHandle[] getAttributeHandles(java.util.Set<Attribute> attributes)
ObjectInstance getObjectInstance(ObjectInstanceHandle objectInstanceHandle) throws ObjectInstanceNotKnown
ObjectInstanceNotKnown
Parameter getParameter(InteractionClassHandle interactionClassHandle, ParameterHandle parameterHandle) throws InvalidParameterHandle, InteractionParameterNotDefined, InteractionClassNotDefined
InvalidParameterHandle
InteractionParameterNotDefined
InteractionClassNotDefined
Parameter getParameter(ParameterHandle parameterHandle) throws InvalidParameterHandle
InvalidParameterHandle
ObjectClass getObjectClass(ObjectClassHandle objectClassHandle) throws ObjectClassNotDefined
objectClassHandle
- the handle of the object class to be returned.
ObjectClassNotDefined
- if the given handle is not associated with an object classInteractionClass getInteractionClass(InteractionClassHandle interactionClassHandle) throws InteractionClassNotDefined
interactionClassHandle
- the handle of the interaction class to be returned
InteractionClassNotDefined
- if the given handle is not associated with an interaction
class.Federate getFederate(FederateHandle federateHandle) throws FederateNotExecutionMember
federateHandle
- the handle of the federate to be returned.
FederateNotExecutionMember
- if the federate is not an execution member of this federation
execution.public java.lang.String getName()
Crc#createFederationExecution(String, URL)
FederateHandle join(java.lang.String federateType, LrcHandle lrcHandle, MobileFederateServices serviceReferences)
federateType
- unusedlrcHandle
- reference to the remote federate that wants to joinserviceReferences
- unused
java.lang.AssertionError
- if thevoid resign(ResignAction resignAction, FederateHandle federateHandle) throws OwnershipAcquisitionPending, FederateOwnsAttributes, FederateNotExecutionMember
OwnershipAcquisitionPending
FederateOwnsAttributes
FederateNotExecutionMember
void registerFederationSynchronizationPoint(java.lang.String synchronizationPointLabel, byte[] userSuppliedTag, FederateHandle askingFederate) throws SaveInProgress, RestoreInProgress, FederateNotExecutionMember
FederateNotExecutionMember
SaveInProgress
RestoreInProgress
void registerFederationSynchronizationPoint(java.lang.String synchronizationPointLabel, byte[] userSuppliedTag, FederateHandle[] synchronizationSet, FederateHandle askingFederate) throws SaveInProgress, RestoreInProgress, FederateNotExecutionMember
FederateNotExecutionMember
SaveInProgress
RestoreInProgress
void doAnnounceSynchronizationPointCallback(java.lang.String synchronizationPointLabel, java.util.Set<FederateHandle> callbackFederates, byte[] userSuppliedTag)
void doFederatesSynchronizedCallback(java.lang.String syncPointName, java.util.Set<FederateHandle> synchronizedFederates, byte[] userSuppliedTag)
void synchronizationPointAchieved(java.lang.String synchronizationPointLabel, FederateHandle askingFederate) throws SynchronizationPointLabelNotAnnounced, SaveInProgress, RestoreInProgress
askingFederate
-
SynchronizationPointLabelNotAnnounced
SaveInProgress
RestoreInProgress
ObjectClassHandle getObjectClassHandle(java.lang.String theName) throws NameNotFound
NameNotFound
java.lang.String getObjectClassName(ObjectClassHandle theHandle) throws ObjectClassNotDefined
ObjectClassNotDefined
AttributeHandle getAttributeHandle(ObjectClassHandle objectClassHandle, java.lang.String theName) throws ObjectClassNotDefined, NameNotFound
ObjectClassNotDefined
NameNotFound
java.lang.String getAttributeName(ObjectClassHandle whichClass, AttributeHandle theHandle) throws ObjectClassNotDefined, InvalidAttributeHandle, AttributeNotDefined
ObjectClassNotDefined
InvalidAttributeHandle
AttributeNotDefined
InteractionClassHandle getInteractionClassHandle(java.lang.String theName) throws NameNotFound
NameNotFound
java.lang.String getInteractionClassName(InteractionClassHandle theHandle) throws InteractionClassNotDefined
InteractionClassNotDefined
ParameterHandle getParameterHandle(InteractionClassHandle interactionClassHandle, java.lang.String theName) throws NameNotFound, InteractionClassNotDefined
InteractionClassNotDefined
NameNotFound
java.lang.String getParameterName(InteractionClassHandle interactionClassHandle, ParameterHandle parameterHandle) throws InvalidParameterHandle, InteractionParameterNotDefined, InteractionClassNotDefined
InteractionClassNotDefined
InvalidParameterHandle
InteractionParameterNotDefined
void publishObjectClassAttributes(ObjectClassHandle objectClassHandle, AttributeHandle[] attributeHandles, FederateHandle federateHandle) throws ObjectClassNotDefined, AttributeNotDefined, FederateNotExecutionMember, InvalidAttributeHandle
ObjectClassNotDefined
AttributeNotDefined
FederateNotExecutionMember
InvalidAttributeHandle
public void unpublishObjectClassAttributes(ObjectClassHandle objectClassHandle, AttributeHandle[] attributeHandles, FederateHandle federateHandle) throws ObjectClassNotDefined, AttributeNotDefined, FederateNotExecutionMember, InvalidAttributeHandle
ObjectClassNotDefined
AttributeNotDefined
FederateNotExecutionMember
InvalidAttributeHandle
void unpublishObjectClass(ObjectClassHandle objectClassHandle, FederateHandle federateHandle) throws ObjectClassNotDefined, FederateNotExecutionMember
ObjectClassNotDefined
FederateNotExecutionMember
void subscribeObjectClassAttributes(ObjectClassHandle objectClassHandle, AttributeHandle[] attributeHandles, FederateHandle federateHandle) throws ObjectClassNotDefined, AttributeNotDefined, FederateNotExecutionMember, InvalidAttributeHandle
ObjectClassNotDefined
AttributeNotDefined
FederateNotExecutionMember
InvalidAttributeHandle
public void unsubscribeObjectClass(ObjectClassHandle objectClassHandle, FederateHandle federateHandle) throws ObjectClassNotDefined, FederateNotExecutionMember
ObjectClassNotDefined
FederateNotExecutionMember
void unsubscribeObjectClassAttributes(ObjectClassHandle objectClassHandle, AttributeHandle[] attributeHandles, FederateHandle federateHandle) throws ObjectClassNotDefined, AttributeNotDefined, FederateNotExecutionMember, InvalidAttributeHandle
ObjectClassNotDefined
AttributeNotDefined
FederateNotExecutionMember
InvalidAttributeHandle
void publishInteractionClass(InteractionClassHandle interactionClassHandle, FederateHandle federateHandle) throws InteractionClassNotDefined, FederateNotExecutionMember, SaveInProgress, RestoreInProgress
InteractionClassNotDefined
FederateNotExecutionMember
SaveInProgress
RestoreInProgress
void unpusblishInteractionClass(InteractionClassHandle interactionClassHandle, FederateHandle federateHandle) throws FederateNotExecutionMember, InteractionClassNotDefined
FederateNotExecutionMember
InteractionClassNotDefined
void subscribeInteractionClass(InteractionClassHandle interactionClassHandle, FederateHandle federateHandle) throws InteractionClassNotDefined, FederateNotExecutionMember
InteractionClassNotDefined
FederateNotExecutionMember
void unsubscribeInteractionClass(InteractionClassHandle interactionClassHandle, FederateHandle federateHandle) throws InteractionClassNotDefined, FederateNotExecutionMember, SaveInProgress, RestoreInProgress
InteractionClassNotDefined
FederateNotExecutionMember
SaveInProgress
RestoreInProgress
ObjectInstanceHandle registerObjectInstance(ObjectClassHandle objectClassHandle, FederateHandle federateHandle) throws ObjectClassNotDefined, ObjectClassNotPublished, FederateNotExecutionMember
ObjectClassNotDefined
ObjectClassNotPublished
FederateNotExecutionMember
ObjectInstanceHandle getObjectInstanceHandle(java.lang.String theName) throws ObjectInstanceNotKnown
ObjectInstanceNotKnown
java.lang.String getObjectInstanceName(ObjectInstanceHandle objectInstanceHandle) throws ObjectInstanceNotKnown
ObjectInstanceNotKnown
java.util.Map<LrcRemote,java.util.Map<FederateHandle,AttributeHandle[]>> getSubscriptions(ObjectInstanceHandle objectInstanceHandle, AttributeHandle[] attributeHandles, FederateHandle askingFederateHandle) throws AttributeNotDefined, AttributeNotOwned, FederateNotExecutionMember, InvalidAttributeHandle, ObjectInstanceNotKnown
AttributeNotDefined
AttributeNotOwned
FederateNotExecutionMember
InvalidAttributeHandle
ObjectInstanceNotKnown
FederationExecutionRemote.getSubscriptions(ObjectInstanceHandle,
AttributeHandle[], FederateHandle)
java.util.Map<LrcRemote,java.util.Set<FederateHandle>> getSubscriptions(InteractionClassHandle interactionClassHandle, FederateHandle federateHandle) throws InteractionClassNotDefined, InteractionClassNotPublished, FederateNotExecutionMember
InteractionClassNotDefined
InteractionClassNotPublished
FederateNotExecutionMember
ObjectClassHandle getKnownObjectClassHandle(ObjectInstanceHandle objectInstanceHandle) throws ObjectInstanceNotKnown
ObjectInstanceNotKnown
public FederationExecutionRemote getRemoteInterface()
int getNrOfJoinedFederates()
void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |