Class DynamicSignatureBuilder
java.lang.Object
org.bigraphs.framework.core.SignatureBuilder<StringTypedName,FiniteOrdinal<Integer>,DynamicControlBuilder,DynamicSignatureBuilder>
org.bigraphs.framework.core.impl.signature.DynamicSignatureBuilder
public class DynamicSignatureBuilder
extends SignatureBuilder<StringTypedName,FiniteOrdinal<Integer>,DynamicControlBuilder,DynamicSignatureBuilder>
The default signature with "dynamic" controls, meaning that controls can be active, passive or atomic.
- Author:
- Dominik Grzelak
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddControl
(String name, int arity) addControl
(String name, int arity, ControlStatus status) create()
Create the signature with the assigned controls so far.create
(EMetaModelData metaModelData) protected DynamicControlBuilder
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.protected DefaultDynamicSignature
Creates an empty signature without controls.createWith
(Iterable<? extends Control<StringTypedName, FiniteOrdinal<Integer>>> controls) Creates a signature with the given controls.newControl
(String name, int arity) Methods inherited from class org.bigraphs.framework.core.SignatureBuilder
addControl, getControls, newControl, newControl, self
-
Constructor Details
-
DynamicSignatureBuilder
public DynamicSignatureBuilder()
-
-
Method Details
-
createControlBuilder
Description copied from class:SignatureBuilder
Hook method to be implemented by subclasses for creating the corresponding control builder (i.e., only active or dynamic controls).- Specified by:
createControlBuilder
in classSignatureBuilder<StringTypedName,
FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder> - Returns:
- the control builder
-
newControl
-
addControl
-
addControl
-
createWith
public DefaultDynamicSignature createWith(Iterable<? extends Control<StringTypedName, FiniteOrdinal<Integer>>> controls) Creates a signature with the given controls. Note: All previously assigned controls will be discarded.- Specified by:
createWith
in classSignatureBuilder<StringTypedName,
FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder> - Parameters:
controls
- the controls to use for the signature- Returns:
- a signature with the given controls
-
createEmpty
Description copied from class:SignatureBuilder
Creates an empty signature, meaning that the control set is empty.
Needed for the interaction of elementary bigraphs and user-defined bigraphs.- Overrides:
createEmpty
in classSignatureBuilder<StringTypedName,
FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder> - Returns:
- an empty signature of type <S>.
-
createEmptyStub
Creates an empty signature without controls.- Specified by:
createEmptyStub
in classSignatureBuilder<StringTypedName,
FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder> - Returns:
- an empty signature of type
DefaultDynamicSignature
-
create
Description copied from class:SignatureBuilder
Create the signature with the assigned controls so far.- Overrides:
create
in classSignatureBuilder<StringTypedName,
FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder> - Returns:
- a signature
-
create
- Overrides:
create
in classSignatureBuilder<StringTypedName,
FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder>
-