Class KindBigraphFactory
java.lang.Object
org.bigraphs.framework.core.factory.AbstractBigraphFactory<KindSignature>
org.bigraphs.framework.core.factory.KindBigraphFactory
- All Implemented Interfaces:
BigraphFactoryElement
- Author:
- Dominik Grzelak
-
Field Summary
Fields inherited from class org.bigraphs.framework.core.factory.AbstractBigraphFactory
bigraphClassType, signatureImplType
-
Method Summary
Modifier and TypeMethodDescriptionasBigraphOperator
(Bigraph<KindSignature> outerBigraph) Create a composition object for a given bigraph which allows to compose bigraphs.createBigraphBuilder
(Signature<?> signature) Throws a class cast exception when a signature is passed as argument which was not created with theSignatureBuilder
created by the same instance of this factory.createBigraphBuilder
(Signature<?> signature, String metaModelFileName) createBigraphBuilder
(Signature<?> signature, EMetaModelData metaModelData) Throws a class cast exception when a signature is passed as argument which was not created with theSignatureBuilder
created by the same instance of this factory.createBigraphBuilder
(Signature<?> signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) createDiscreteIon
(String name, Set<String> outerNames, KindSignature signature) Convenient method.createDiscreteIon
(String name, Set<String> outerNames, KindSignature signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) createDiscreteIon
(NamedType<?> name, Set<NamedType<?>> outerNames, KindSignature signature) Throws a runtime exception either because of InvalidConnectionException or TypeNotExistsException when connecting the outer names to the node.createLinkings
(KindSignature signature) createLinkings
(KindSignature signature, EMetaModelData metaModelData) createLinkings
(KindSignature signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) createPlacings
(KindSignature signature) createPlacings
(KindSignature signature, EMetaModelData metaModelData) createPlacings
(KindSignature signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) Creates a builder for constructing pure dynamic signatures .Methods inherited from class org.bigraphs.framework.core.factory.AbstractBigraphFactory
createRandomBuilder, createRandomBuilder, getBigraphClassType, getSignatureType
-
Method Details
-
createSignatureBuilder
Description copied from class:AbstractBigraphFactory
Creates a builder for constructing pure dynamic signatures .- Specified by:
createSignatureBuilder
in classAbstractBigraphFactory<KindSignature>
- Returns:
- a new signature builder instance
-
createBigraphBuilder
Description copied from class:AbstractBigraphFactory
Throws a class cast exception when a signature is passed as argument which was not created with theSignatureBuilder
created by the same instance of this factory. Thus, they must have the same signature type.- Specified by:
createBigraphBuilder
in classAbstractBigraphFactory<KindSignature>
- Parameters:
signature
- the signature of the bigraph to build- Returns:
- a
PureBigraphBuilder
instance with signature type S which is inferred from the given signature.
-
createBigraphBuilder
public KindBigraphBuilder createBigraphBuilder(Signature<?> signature, EMetaModelData metaModelData) Description copied from class:AbstractBigraphFactory
Throws a class cast exception when a signature is passed as argument which was not created with theSignatureBuilder
created by the same instance of this factory. Thus, they must have the same signature type.- Specified by:
createBigraphBuilder
in classAbstractBigraphFactory<KindSignature>
- Parameters:
signature
- the signature of the bigraph to buildmetaModelData
- meta data for the ecore files- Returns:
- a
PureBigraphBuilder
instance with signature type S which is inferred from the given signature.
-
createBigraphBuilder
- Specified by:
createBigraphBuilder
in classAbstractBigraphFactory<KindSignature>
-
createBigraphBuilder
public KindBigraphBuilder createBigraphBuilder(Signature<?> signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) - Specified by:
createBigraphBuilder
in classAbstractBigraphFactory<KindSignature>
-
createPlacings
- Specified by:
createPlacings
in classAbstractBigraphFactory<KindSignature>
-
createPlacings
public Placings<KindSignature> createPlacings(KindSignature signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) - Specified by:
createPlacings
in classAbstractBigraphFactory<KindSignature>
-
createPlacings
public Placings<KindSignature> createPlacings(KindSignature signature, EMetaModelData metaModelData) - Specified by:
createPlacings
in classAbstractBigraphFactory<KindSignature>
-
createLinkings
- Specified by:
createLinkings
in classAbstractBigraphFactory<KindSignature>
-
createLinkings
public Linkings<KindSignature> createLinkings(KindSignature signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) - Specified by:
createLinkings
in classAbstractBigraphFactory<KindSignature>
-
createLinkings
public Linkings<KindSignature> createLinkings(KindSignature signature, EMetaModelData metaModelData) - Specified by:
createLinkings
in classAbstractBigraphFactory<KindSignature>
-
createDiscreteIon
public DiscreteIon<KindSignature> createDiscreteIon(NamedType<?> name, Set<NamedType<?>> outerNames, KindSignature signature) Throws a runtime exception either because of InvalidConnectionException or TypeNotExistsException when connecting the outer names to the node.- Specified by:
createDiscreteIon
in classAbstractBigraphFactory<KindSignature>
- Parameters:
name
- the control's name for the ion, must be of typeStringTypedName
outerNames
- a set of outer names the ion shall have, must be of typeStringTypedName
signature
- the signature of that ion- Returns:
- a discrete ion
-
createDiscreteIon
public DiscreteIon<KindSignature> createDiscreteIon(String name, Set<String> outerNames, KindSignature signature) Convenient method.- Specified by:
createDiscreteIon
in classAbstractBigraphFactory<KindSignature>
- See Also:
-
createDiscreteIon
public DiscreteIon<KindSignature> createDiscreteIon(String name, Set<String> outerNames, KindSignature signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) - Specified by:
createDiscreteIon
in classAbstractBigraphFactory<KindSignature>
-
asBigraphOperator
Description copied from class:AbstractBigraphFactory
Create a composition object for a given bigraph which allows to compose bigraphs. By that, bigraph operations can be extended and easily linked together.- Specified by:
asBigraphOperator
in classAbstractBigraphFactory<KindSignature>
- Parameters:
outerBigraph
- the outer bigraph in terms of a composition operator when an operator is applied- Returns:
- a bigraph composition operator based on the passed bigraph
-