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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()This method returns a copy of the actual bigraph.Return the actual instance model (*.xmi) of the bigraph as an input stream.org.eclipse.emf.ecore.EObjectReturn the Ecore-based instance model of a bigraph object or signature object.org.eclipse.emf.ecore.EPackageReturn the respective Ecore-based metamodel.Get the corresponding signature of the underlying bigraphMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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()Return the respective Ecore-based metamodel.- Specified by:
getMetaModelin interfaceEcoreBigraphExt- Returns:
- the metamodel
- See Also:
-
getInstanceModel
public org.eclipse.emf.ecore.EObject getInstanceModel()Description copied from interface:EcoreBigraphExtReturn the Ecore-based instance model of a bigraph object or signature object.- Specified by:
getInstanceModelin interfaceEcoreBigraphExt- Returns:
- the instance model in Ecore format
-
clone
This method returns a copy of the actual bigraph.Therefore, the bigraph is exported into the memory and loaded again.
- Overrides:
clonein 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 reason. See the wrapped Exception to retrieve a more detailed error message.
-
getSignature
Description copied from interface:HasSignatureGet the corresponding signature of the underlying bigraph- Specified by:
getSignaturein interfaceEcoreBigraph<S extends AbstractEcoreSignature<?>>- Specified by:
getSignaturein interfaceHasSignature<S extends AbstractEcoreSignature<?>>- Returns:
- the signature of the bigraph
-