Class DefaultDynamicControl
java.lang.Object
org.bigraphs.framework.core.AbstractControl<StringTypedName,FiniteOrdinal<Integer>>
org.bigraphs.framework.core.impl.signature.DefaultDynamicControl
- All Implemented Interfaces:
Control<StringTypedName,
,FiniteOrdinal<Integer>> HasIdentifier<StringTypedName>
Immutable dynamic control. Status of a control can be specified. If non provided the control will be active.
A node can be atomic or non-atomic which is determined by its control. Atomic nodes are empty. Non-atomic nodes can be active or passive.
- Author:
- Dominik Grzelak
-
Field Summary
Fields inherited from class org.bigraphs.framework.core.AbstractControl
arity, name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DefaultDynamicControl
(StringTypedName name, FiniteOrdinal<Integer> arity) Status will be set toControlStatus.ACTIVE
-
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultDynamicControl
createDefaultDynamicControl
(StringTypedName name, FiniteOrdinal<Integer> arity, ControlStatus kindOfControl) boolean
Returns the kind of the control.int
hashCode()
Methods inherited from class org.bigraphs.framework.core.AbstractControl
getArity, getNamedType, toString
-
Constructor Details
-
DefaultDynamicControl
Status will be set toControlStatus.ACTIVE
- Parameters:
name
- the label of the controlarity
- the arity of the control
-
-
Method Details
-
createDefaultDynamicControl
public static DefaultDynamicControl createDefaultDynamicControl(StringTypedName name, FiniteOrdinal<Integer> arity, ControlStatus kindOfControl) -
getControlKind
Description copied from interface:Control
Returns the kind of the control.- Returns:
- kind of the control
-
equals
- Overrides:
equals
in classAbstractControl<StringTypedName,
FiniteOrdinal<Integer>>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractControl<StringTypedName,
FiniteOrdinal<Integer>>
-