Package org.bigraphs.framework.core
Class SignatureBuilder<NT extends NamedType<?>,FO extends FiniteOrdinal<?>,C extends ControlBuilder<NT,FO,C>,B extends SignatureBuilder<?,?,?,?>>
java.lang.Object
org.bigraphs.framework.core.SignatureBuilder<NT,FO,C,B>
- Type Parameters:
NT
- type of the name representationFO
- type of the finite ordinal representationC
- type of the control builderB
- type of the signature builder
- Direct Known Subclasses:
DynamicSignatureBuilder
,KindSignatureBuilder
public abstract class SignatureBuilder<NT extends NamedType<?>,FO extends FiniteOrdinal<?>,C extends ControlBuilder<NT,FO,C>,B extends SignatureBuilder<?,?,?,?>>
extends Object
Abstract base builder class for all types of signatures.
- Author:
- Dominik Grzelak
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddControl
(Control<NT, FO> control) Signature<?>
create()
Create the signature with the assigned controls so far.Signature<?>
create
(EMetaModelData metaModelData) protected abstract C
Hook method to be implemented by subclasses for creating the corresponding control builder (i.e., only active or dynamic controls).Creates an empty signature, meaning that the control set is empty.
Needed for the interaction of elementary bigraphs and user-defined bigraphs.This method is not called by the user; it is called bycreateEmpty()
.abstract Signature<?>
createWith
(Iterable<? extends Control<NT, FO>> controls) Create a signature with the given controls.newControl
(NT type, FO arity) protected final B
self()
-
Constructor Details
-
SignatureBuilder
public SignatureBuilder()
-
-
Method Details
-
createControlBuilder
Hook method to be implemented by subclasses for creating the corresponding control builder (i.e., only active or dynamic controls).- Returns:
- the control builder
-
newControl
-
newControl
-
addControl
-
createWith
Create a signature with the given controls.- Parameters:
controls
- the controls to use for the signature- Returns:
- a signature with the given controls
-
create
Create the signature with the assigned controls so far.- Returns:
- a signature
-
create
-
createEmpty
Creates an empty signature, meaning that the control set is empty.
Needed for the interaction of elementary bigraphs and user-defined bigraphs.- Returns:
- an empty signature of type <S>.
-
createEmptyStub
This method is not called by the user; it is called bycreateEmpty()
. -
self
-
getControls
-