|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eodisp.hla.crc.data.impl.FederateImpl
public class FederateImpl
An implementation of the model object 'Federate'.
The following features are implemented:
Registered Object InstancesSubscribed AttributesSubscribed InteractionsPublished AttributesPublished InteractionsLrc HandleHandleFederation ExecutionPublished Object ClassesSubscribed Object Classes
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl |
| Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
org.eclipse.emf.ecore.InternalEObject.EStore |
| Field Summary | |
|---|---|
static java.lang.String |
copyright
|
protected static FederationExecution |
FEDERATION_EXECUTION_EDEFAULT
The default value of the ' Federation Execution' attribute. |
protected FederationExecution |
federationExecution
The cached value of the ' Federation Execution' attribute. |
protected FederateHandle |
handle
The cached value of the ' Handle' attribute. |
protected static FederateHandle |
HANDLE_EDEFAULT
The default value of the ' Handle' attribute. |
protected static LrcHandle |
LRC_HANDLE_EDEFAULT
The default value of the ' Lrc Handle' attribute. |
protected LrcHandle |
lrcHandle
The cached value of the ' Lrc Handle' attribute. |
protected org.eclipse.emf.common.util.EList |
publishedAttributes
The cached value of the ' Published Attributes' reference list. |
protected org.eclipse.emf.common.util.EList |
publishedInteractions
The cached value of the ' Published Interactions' reference list. |
protected org.eclipse.emf.common.util.EList |
registeredObjectInstances
The cached value of the ' Registered Object Instances' containment reference list. |
protected org.eclipse.emf.common.util.EList |
subscribedAttributes
The cached value of the ' Subscribed Attributes' reference list. |
protected org.eclipse.emf.common.util.EList |
subscribedInteractions
The cached value of the ' Subscribed Interactions' reference list. |
| Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
|---|
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
| Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
EOPPOSITE_FEATURE_BASE |
| Constructor Summary | |
|---|---|
protected |
FederateImpl()
|
| Method Summary | |
|---|---|
void |
checkPublication(ObjectClass objectClass)
Checks if the given object class is published by this federate, throws an ObjectClassNotPublished otherwise. |
void |
checkPublication(java.util.Set<Attribute> attributes)
Checks if the given attributes are published by this federate, throws a AttributeNotPublished exception otherwise. |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
// * |
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
protected org.eclipse.emf.ecore.EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
FederationExecution |
getFederationExecution()
|
FederateHandle |
getHandle()
|
LrcHandle |
getLrcHandle()
|
org.eclipse.emf.common.util.EList |
getPublishedAttributes()
|
org.eclipse.emf.common.util.EList |
getPublishedInteractions()
|
org.eclipse.emf.common.util.EList |
getPublishedObjectClasses()
Returns the value of the 'Published Object Classes' reference list. |
org.eclipse.emf.common.util.EList |
getRegisteredObjectInstances()
|
org.eclipse.emf.common.util.EList |
getSubscribedAttributes()
|
org.eclipse.emf.common.util.EList |
getSubscribedInteractions()
|
org.eclipse.emf.common.util.EList |
getSubscribedObjectClasses()
Returns the value of the 'Subscribed Object Classes' reference list. |
boolean |
ownsAttributes()
Returns true if this federate owns at least one attribute, otherwise returns false. |
boolean |
ownsAttributes(ObjectInstance objectInstance,
java.util.Set<Attribute> attributes)
Returns true if this federate owns all of the given attributes. |
void |
setFederationExecution(FederationExecution newFederationExecution)
|
void |
setHandle(FederateHandle newHandle)
|
void |
setLrcHandle(LrcHandle newLrcHandle)
|
java.lang.String |
toString()
|
| Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
|---|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
| Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
| Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
eNotificationRequired, eNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
|---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
|---|
eAdapters, eDeliver, eNotify, eSetDeliver |
| Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
eNotificationRequired |
| Field Detail |
|---|
public static final java.lang.String copyright
protected org.eclipse.emf.common.util.EList registeredObjectInstances
Registered Object Instances' containment reference list.
getRegisteredObjectInstances()protected org.eclipse.emf.common.util.EList subscribedAttributes
Subscribed Attributes' reference list.
getSubscribedAttributes()protected org.eclipse.emf.common.util.EList subscribedInteractions
Subscribed Interactions' reference list.
getSubscribedInteractions()protected org.eclipse.emf.common.util.EList publishedAttributes
Published Attributes' reference list.
getPublishedAttributes()protected org.eclipse.emf.common.util.EList publishedInteractions
Published Interactions' reference list.
getPublishedInteractions()protected static final LrcHandle LRC_HANDLE_EDEFAULT
Lrc Handle' attribute.
getLrcHandle()protected LrcHandle lrcHandle
Lrc Handle' attribute.
getLrcHandle()protected static final FederateHandle HANDLE_EDEFAULT
Handle' attribute.
getHandle()protected FederateHandle handle
Handle' attribute.
getHandle()protected static final FederationExecution FEDERATION_EXECUTION_EDEFAULT
Federation Execution' attribute.
getFederationExecution()protected FederationExecution federationExecution
Federation Execution' attribute.
getFederationExecution()| Constructor Detail |
|---|
protected FederateImpl()
| Method Detail |
|---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass in class org.eclipse.emf.ecore.impl.EObjectImplpublic org.eclipse.emf.common.util.EList getRegisteredObjectInstances()
getRegisteredObjectInstances in interface FederateDataPackage.getFederate_RegisteredObjectInstances(),
ObjectInstance.getRegisteringFederate()public org.eclipse.emf.common.util.EList getSubscribedAttributes()
getSubscribedAttributes in interface FederateDataPackage.getFederate_SubscribedAttributes(),
Attribute.getSubscribingFederates()public org.eclipse.emf.common.util.EList getSubscribedInteractions()
getSubscribedInteractions in interface FederateDataPackage.getFederate_SubscribedInteractions(),
InteractionClass.getSubscribingFederates()public org.eclipse.emf.common.util.EList getPublishedAttributes()
getPublishedAttributes in interface FederateDataPackage.getFederate_PublishedAttributes(),
Attribute.getPublishingFederates()public org.eclipse.emf.common.util.EList getPublishedInteractions()
getPublishedInteractions in interface FederateDataPackage.getFederate_PublishedInteractions(),
InteractionClass.getPublishingFederates()public LrcHandle getLrcHandle()
getLrcHandle in interface FederateFederate.setLrcHandle(LrcHandle),
DataPackage.getFederate_LrcHandle()public void setLrcHandle(LrcHandle newLrcHandle)
setLrcHandle in interface FederatenewLrcHandle - the new value of the 'Lrc Handle' attribute.Federate.getLrcHandle()public FederateHandle getHandle()
getHandle in interface FederateFederate.setHandle(FederateHandle),
DataPackage.getFederate_Handle()public void setHandle(FederateHandle newHandle)
setHandle in interface FederatenewHandle - the new value of the 'Handle' attribute.Federate.getHandle()public FederationExecution getFederationExecution()
getFederationExecution in interface FederateFederate.setFederationExecution(FederationExecution),
DataPackage.getFederate_FederationExecution()public void setFederationExecution(FederationExecution newFederationExecution)
setFederationExecution in interface FederatenewFederationExecution - the new value of the 'Federation Execution' attribute.Federate.getFederationExecution()public org.eclipse.emf.common.util.EList getPublishedObjectClasses()
ObjectClass.
If the meaning of the 'Published Object Classes' reference list isn't clear, there really should be more of a description here...
getPublishedObjectClasses in interface FederateDataPackage.getFederate_PublishedObjectClasses()public org.eclipse.emf.common.util.EList getSubscribedObjectClasses()
ObjectClass.
If the meaning of the 'Subscribed Object Classes' reference list isn't clear, there really should be more of a description here...
getSubscribedObjectClasses in interface FederateDataPackage.getFederate_SubscribedObjectClasses()
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic java.lang.String toString()
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void checkPublication(ObjectClass objectClass)
throws ObjectClassNotPublished
FederateObjectClassNotPublished otherwise.
checkPublication in interface FederateobjectClass - the object class to be checked for publiscation on this
federate
ObjectClassNotPublished - if the given object class is not published by this federate
public void checkPublication(java.util.Set<Attribute> attributes)
throws AttributeNotPublished
FederateAttributeNotPublished exception otherwise.
checkPublication in interface Federateattributes - the attributes to be checked for publication on this federate
AttributeNotPublished - if this federate is not publishing the given attributes
public boolean ownsAttributes(ObjectInstance objectInstance,
java.util.Set<Attribute> attributes)
RTIambassador.attributeOwnershipAcquisition(ObjectInstanceHandle, AttributeHandleSet, byte[]).
Note that this method declaration does not need be changed for this.
ownsAttributes in interface FederateobjectInstance - the object instance of that is registered for the given
attributesattributes - the attributes of the given object instance that shall be
checked for ownership on this federate.
public boolean ownsAttributes()
RTIambassador.attributeOwnershipAcquisition(ObjectInstanceHandle, AttributeHandleSet, byte[])
is implemented. Note that this method declaration does not need be
changed for this.
ownsAttributes in interface Federate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||