Class FlowConfigurationImpl<F extends Enum<F>>
java.lang.Object
net.officefloor.frame.impl.construct.function.FlowConfigurationImpl<F>
- All Implemented Interfaces:
FlowConfiguration<F>
public class FlowConfigurationImpl<F extends Enum<F>>
extends Object
implements FlowConfiguration<F>
FlowConfiguration implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionFlowConfigurationImpl(String flowName, ManagedFunctionReference functionReference, boolean isSpawnThreadState, int index, F key) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionObtains the name of thisFlow.intgetIndex()Obtains the index identifying thisFlow.Obtains the reference to the initialManagedFunctionof thisFlow.getKey()Obtains the key identifying thisFlow.booleanIndicates whether to spawn aThreadStatefor theFlow.
-
Constructor Details
-
FlowConfigurationImpl
public FlowConfigurationImpl(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 Details
-
getFlowName
Description copied from interface:FlowConfigurationObtains the name of thisFlow.- Specified by:
getFlowNamein interfaceFlowConfiguration<F extends Enum<F>>- Returns:
- Name of this
Flow.
-
getInitialFunction
Description copied from interface:FlowConfigurationObtains the reference to the initialManagedFunctionof thisFlow.- Specified by:
getInitialFunctionin interfaceFlowConfiguration<F extends 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 Enum<F>>- Returns:
trueto spawn aThreadStatefor theFlow.
-
getIndex
public int getIndex()Description copied from interface:FlowConfigurationObtains the index identifying thisFlow. -
getKey
Description copied from interface:FlowConfigurationObtains the key identifying thisFlow.
-