Class DynamicControl
java.lang.Object
org.bigraphs.framework.core.AbstractControl<StringTypedName,FiniteOrdinal<Integer>>
org.bigraphs.framework.core.impl.signature.DynamicControl
- All Implemented Interfaces:
Control<StringTypedName,,FiniteOrdinal<Integer>> HasIdentifier<StringTypedName>
Immutable dynamic control.
The status of a control can be explicitly specified; if none is provided, the control defaults to active.
Atomic nodes are always empty.
Non-atomic nodes can be either active or passive.
Atomicity of a node:
- Author:
- Dominik Grzelak
-
Field Summary
Fields inherited from class org.bigraphs.framework.core.AbstractControl
arity, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDynamicControl(StringTypedName name, FiniteOrdinal<Integer> arity) Status will be set toControlStatus.ACTIVE -
Method Summary
Modifier and TypeMethodDescriptionstatic DynamicControlcreateDynamicControl(StringTypedName name, FiniteOrdinal<Integer> arity, ControlStatus kindOfControl) booleanReturns the kind of the control.inthashCode()Methods inherited from class org.bigraphs.framework.core.AbstractControl
getArity, getNamedType, toString
-
Constructor Details
-
DynamicControl
Status will be set toControlStatus.ACTIVE- Parameters:
name- the label of the controlarity- the arity of the control
-
-
Method Details
-
createDynamicControl
public static DynamicControl createDynamicControl(StringTypedName name, FiniteOrdinal<Integer> arity, ControlStatus kindOfControl) -
getControlKind
Description copied from interface:ControlReturns the kind of the control.- Returns:
- kind of the control
-
equals
- Overrides:
equalsin classAbstractControl<StringTypedName,FiniteOrdinal<Integer>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractControl<StringTypedName,FiniteOrdinal<Integer>>
-