Class FlowConfigurationImpl<F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.impl.construct.function.FlowConfigurationImpl<F>
-
- All Implemented Interfaces:
FlowConfiguration<F>
public class FlowConfigurationImpl<F extends java.lang.Enum<F>> extends java.lang.Object implements FlowConfiguration<F>
FlowConfigurationimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FlowConfigurationImpl(java.lang.String flowName, ManagedFunctionReference functionReference, boolean isSpawnThreadState, int index, F key)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFlowName()Obtains the name of thisFlow.intgetIndex()Obtains the index identifying thisFlow.ManagedFunctionReferencegetInitialFunction()Obtains the reference to the initialManagedFunctionof thisFlow.FgetKey()Obtains the key identifying thisFlow.booleanisSpawnThreadState()Indicates whether to spawn aThreadStatefor theFlow.
-
-
-
Constructor Detail
-
FlowConfigurationImpl
public FlowConfigurationImpl(java.lang.String flowName, ManagedFunctionReference functionReference, boolean isSpawnThreadState, int index, F key)Initiate.- Parameters:
flowName- Name of thisFlow.functionReference- Reference to the initialManagedFunctionof thisFlow.isSpawnThreadState- Indicates whether to spawn theThreadState.index- Index of thisFlow.key- Key of theFlow.
-
-
Method Detail
-
getFlowName
public java.lang.String getFlowName()
Description copied from interface:FlowConfigurationObtains the name of thisFlow.- Specified by:
getFlowNamein interfaceFlowConfiguration<F extends java.lang.Enum<F>>- Returns:
- Name of this
Flow.
-
getInitialFunction
public ManagedFunctionReference getInitialFunction()
Description copied from interface:FlowConfigurationObtains the reference to the initialManagedFunctionof thisFlow.- Specified by:
getInitialFunctionin interfaceFlowConfiguration<F extends java.lang.Enum<F>>- Returns:
- Reference to the initial
ManagedFunctionof thisFlow.
-
isSpawnThreadState
public boolean isSpawnThreadState()
Description copied from interface:FlowConfigurationIndicates whether to spawn aThreadStatefor theFlow.- Specified by:
isSpawnThreadStatein interfaceFlowConfiguration<F extends java.lang.Enum<F>>- Returns:
trueto spawn aThreadStatefor theFlow.
-
getIndex
public int getIndex()
Description copied from interface:FlowConfigurationObtains the index identifying thisFlow.- Specified by:
getIndexin interfaceFlowConfiguration<F extends java.lang.Enum<F>>- Returns:
- Index identifying this
Flow.
-
getKey
public F getKey()
Description copied from interface:FlowConfigurationObtains the key identifying thisFlow.- Specified by:
getKeyin interfaceFlowConfiguration<F extends java.lang.Enum<F>>- Returns:
- Key identifying this
Flow.nullif indexed.
-
-