Class DynamicSignature
java.lang.Object
org.bigraphs.framework.core.AbstractEcoreSignature<DynamicControl>
org.bigraphs.framework.core.impl.signature.DynamicSignature
- All Implemented Interfaces:
EcoreBigraphExt,EcoreSignature,IsPlaceSortable,Signature<DynamicControl>
public final class DynamicSignature
extends AbstractEcoreSignature<DynamicControl>
implements IsPlaceSortable
Concrete implementation of a pure dynamic signature in which controls
can be assigned a
status value: active, passive,
or atomic.
This determines the "reactivity" of the node.- Author:
- Dominik Grzelak
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.emf.ecore.EFactoryFields inherited from class org.bigraphs.framework.core.AbstractEcoreSignature
controls, instanceModel, sigPackageFields inherited from interface org.bigraphs.framework.core.EcoreSignature
VALIDATORS -
Constructor Summary
ConstructorsConstructorDescriptionDynamicSignature(Set<DynamicControl> controls) DynamicSignature(org.eclipse.emf.ecore.EObject bSignature) Create a dynamic signature object for the given Ecore instance model. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObjectReturn the respective signature Ecore-based instance model.org.eclipse.emf.ecore.EPackageReturn the respective signature Ecore-based metamodel.protected voidprotected voidMethods inherited from class org.bigraphs.framework.core.AbstractEcoreSignature
equals, extendBControlEClass, extendBKindSortCompositeEClass, extendBKindSortLeafEClass, getControls, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bigraphs.framework.core.Signature
getArity, getArity, getControl, getControl, getControlByName
-
Field Details
-
kindFunction
-
sigFactory
protected org.eclipse.emf.ecore.EFactory sigFactory
-
-
Constructor Details
-
DynamicSignature
public DynamicSignature(org.eclipse.emf.ecore.EObject bSignature) Create a dynamic signature object for the given Ecore instance model. The "extended" metamodel for dynamic signatures is stored in the member variableAbstractEcoreSignature.sigPackage.- Parameters:
bSignature- the instance model of a dynamic signature- Throws:
RuntimeException- if the instance model is invalid (not conforming to the metamodel)- See Also:
-
DynamicSignature
-
-
Method Details
-
recreateControls
protected void recreateControls()- Overrides:
recreateControlsin classAbstractEcoreSignature<DynamicControl>
-
recreateSorts
protected void recreateSorts()- Overrides:
recreateSortsin classAbstractEcoreSignature<DynamicControl>
-
getMetaModel
public org.eclipse.emf.ecore.EPackage getMetaModel()Description copied from interface:EcoreSignatureReturn the respective signature Ecore-based metamodel.- Specified by:
getMetaModelin interfaceEcoreBigraphExt- Specified by:
getMetaModelin interfaceEcoreSignature- Specified by:
getMetaModelin classAbstractEcoreSignature<DynamicControl>- Returns:
- the metamodel of the base signature specification
- See Also:
-
getInstanceModel
public org.eclipse.emf.ecore.EObject getInstanceModel()Description copied from interface:EcoreSignatureReturn the respective signature Ecore-based instance model.- Specified by:
getInstanceModelin interfaceEcoreBigraphExt- Specified by:
getInstanceModelin interfaceEcoreSignature- Specified by:
getInstanceModelin classAbstractEcoreSignature<DynamicControl>- Returns:
- the signature instance model
-
getPlaceKindMap
- Specified by:
getPlaceKindMapin interfaceIsPlaceSortable
-