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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(String name, int arity, ControlStatus status) create()Create the signature with the assigned controls so far.create(EMetaModelData metaModelData) protected DynamicControlBuilderHook 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 DynamicSignatureCreates 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
add, getControls, newControl, newControl, self
-
Constructor Details
-
DynamicSignatureBuilder
public DynamicSignatureBuilder()
-
-
Method Details
-
createControlBuilder
Description copied from class:SignatureBuilderHook method to be implemented by subclasses for creating the corresponding control builder (i.e., only active or dynamic controls).- Specified by:
createControlBuilderin classSignatureBuilder<StringTypedName,FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder> - Returns:
- the control builder
-
newControl
-
add
-
add
-
createWith
public DynamicSignature 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:
createWithin 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:SignatureBuilderCreates an empty signature, meaning that the control set is empty.
Needed for the interaction of elementary bigraphs and user-defined bigraphs.- Overrides:
createEmptyin classSignatureBuilder<StringTypedName,FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder> - Returns:
- an empty signature of type <S>.
-
createEmptyStub
Creates an empty signature without controls.- Specified by:
createEmptyStubin classSignatureBuilder<StringTypedName,FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder> - Returns:
- an empty signature of type
DynamicSignature
-
create
Description copied from class:SignatureBuilderCreate the signature with the assigned controls so far.- Overrides:
createin classSignatureBuilder<StringTypedName,FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder> - Returns:
- a signature
-
create
- Overrides:
createin classSignatureBuilder<StringTypedName,FiniteOrdinal<Integer>, DynamicControlBuilder, DynamicSignatureBuilder>
-