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 theSignatureBuildercreated 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 theSignatureBuildercreated 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:AbstractBigraphFactoryCreates a builder for constructing pure dynamic signatures .- Specified by:
createSignatureBuilderin classAbstractBigraphFactory<KindSignature>- Returns:
- a new signature builder instance
-
createBigraphBuilder
Description copied from class:AbstractBigraphFactoryThrows a class cast exception when a signature is passed as argument which was not created with theSignatureBuildercreated by the same instance of this factory. Thus, they must have the same signature type.- Specified by:
createBigraphBuilderin classAbstractBigraphFactory<KindSignature>- Parameters:
signature- the signature of the bigraph to build- Returns:
- a
PureBigraphBuilderinstance with signature type S which is inferred from the given signature.
-
createBigraphBuilder
public KindBigraphBuilder createBigraphBuilder(Signature<?> signature, EMetaModelData metaModelData) Description copied from class:AbstractBigraphFactoryThrows a class cast exception when a signature is passed as argument which was not created with theSignatureBuildercreated by the same instance of this factory. Thus, they must have the same signature type.- Specified by:
createBigraphBuilderin classAbstractBigraphFactory<KindSignature>- Parameters:
signature- the signature of the bigraph to buildmetaModelData- meta data for the ecore files- Returns:
- a
PureBigraphBuilderinstance with signature type S which is inferred from the given signature.
-
createBigraphBuilder
- Specified by:
createBigraphBuilderin classAbstractBigraphFactory<KindSignature>
-
createBigraphBuilder
public KindBigraphBuilder createBigraphBuilder(Signature<?> signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) - Specified by:
createBigraphBuilderin classAbstractBigraphFactory<KindSignature>
-
createPlacings
- Specified by:
createPlacingsin classAbstractBigraphFactory<KindSignature>
-
createPlacings
public Placings<KindSignature> createPlacings(KindSignature signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) - Specified by:
createPlacingsin classAbstractBigraphFactory<KindSignature>
-
createPlacings
public Placings<KindSignature> createPlacings(KindSignature signature, EMetaModelData metaModelData) - Specified by:
createPlacingsin classAbstractBigraphFactory<KindSignature>
-
createLinkings
- Specified by:
createLinkingsin classAbstractBigraphFactory<KindSignature>
-
createLinkings
public Linkings<KindSignature> createLinkings(KindSignature signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) - Specified by:
createLinkingsin classAbstractBigraphFactory<KindSignature>
-
createLinkings
public Linkings<KindSignature> createLinkings(KindSignature signature, EMetaModelData metaModelData) - Specified by:
createLinkingsin 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:
createDiscreteIonin classAbstractBigraphFactory<KindSignature>- Parameters:
name- the control's name for the ion, must be of typeStringTypedNameouterNames- a set of outer names the ion shall have, must be of typeStringTypedNamesignature- 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:
createDiscreteIonin classAbstractBigraphFactory<KindSignature>- See Also:
-
createDiscreteIon
public DiscreteIon<KindSignature> createDiscreteIon(String name, Set<String> outerNames, KindSignature signature, org.eclipse.emf.ecore.EPackage bigraphMetaModel) - Specified by:
createDiscreteIonin classAbstractBigraphFactory<KindSignature>
-
asBigraphOperator
Description copied from class:AbstractBigraphFactoryCreate 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:
asBigraphOperatorin 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
-