Package org.bigraphs.framework.core
Class EcoreBigraph.Stub<S extends AbstractEcoreSignature<?>>
java.lang.Object
org.bigraphs.framework.core.EcoreBigraph.Stub<S>
- All Implemented Interfaces:
EcoreBigraph<S>
,EcoreBigraphExt
,HasSignature<S>
- Enclosing interface:
- EcoreBigraph<S extends AbstractEcoreSignature<?>>
public static class EcoreBigraph.Stub<S extends AbstractEcoreSignature<?>>
extends Object
implements EcoreBigraph<S>
A lightweight container for a bigraph that holds only the Ecore-relevant objects.
Though it provides no higher-order functions to access all its elements, it can be useful in some cases.
For example, to copy a Bigraph
instance into memory and later
retrieving it via a builder.
Further, this stub allows the completely copy a bigraph by calling the clone()
method.
- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bigraphs.framework.core.EcoreBigraph
EcoreBigraph.Stub<S extends AbstractEcoreSignature<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
This methods returns a copy of the actual bigraph.Return the actual instance model (*.xmi) of the bigraph as an input stream.org.eclipse.emf.ecore.EObject
Return the Ecore-based instance model of a bigraph object or signature object.org.eclipse.emf.ecore.EPackage
Return the metamodel of a bigraph object or a signature object.Get the corresponding signature of the underlying bigraphMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bigraphs.framework.core.EcoreBigraph
getEMetaModelData, isBEdge, isBInnerName, isBLink, isBNode, isBOuterName, isBPlace, isBPoint, isBPort, isBRoot, isBSite, isIndexable, isNameable, isOfEClass
-
Constructor Details
-
Stub
Copy constructor- Parameters:
bigraph
- an Ecore-based bigraph
-
-
Method Details
-
getMetaModel
public org.eclipse.emf.ecore.EPackage getMetaModel()Description copied from interface:EcoreBigraphExt
Return the metamodel of a bigraph object or a signature object.It is a metamodel that either extends the base bigraph metamodel or the base signature metamodel.
- Specified by:
getMetaModel
in interfaceEcoreBigraphExt
- Returns:
- the metamodel in Ecore format
- See Also:
-
de.tudresden.inf.st.bigraphs.models.bigraphBaseModel.BigraphBaseModelPackage
-
getInstanceModel
public org.eclipse.emf.ecore.EObject getInstanceModel()Description copied from interface:EcoreBigraphExt
Return the Ecore-based instance model of a bigraph object or signature object.- Specified by:
getInstanceModel
in interfaceEcoreBigraphExt
- Returns:
- the instance model in Ecore format
-
clone
This methods returns a copy of the actual bigraph.Therefore, the bigraph is exported into the memory and loaded again.
- Overrides:
clone
in classObject
- Returns:
- a copy of the current bigraph.
- Throws:
CloneNotSupportedException
-
getInputStreamOfInstanceModel
Return the actual instance model (*.xmi) of the bigraph as an input stream.- Returns:
- the bigraph's Ecore instance model as an input stream.
- Throws:
EcoreBigraphFileSystemException
- if the input stream for the model instance could not be created for some reasons. See the wrapped Exception to retrieve a more detailed error message.
-
getSignature
Description copied from interface:HasSignature
Get the corresponding signature of the underlying bigraph- Specified by:
getSignature
in interfaceEcoreBigraph<S extends AbstractEcoreSignature<?>>
- Specified by:
getSignature
in interfaceHasSignature<S extends AbstractEcoreSignature<?>>
- Returns:
- the signature of the bigraph
-