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>
FlowConfiguration
implementation.- 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.String
getFlowName()
Obtains the name of thisFlow
.int
getIndex()
Obtains the index identifying thisFlow
.ManagedFunctionReference
getInitialFunction()
Obtains the reference to the initialManagedFunction
of thisFlow
.F
getKey()
Obtains the key identifying thisFlow
.boolean
isSpawnThreadState()
Indicates whether to spawn aThreadState
for 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 initialManagedFunction
of 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:FlowConfiguration
Obtains the name of thisFlow
.- Specified by:
getFlowName
in interfaceFlowConfiguration<F extends java.lang.Enum<F>>
- Returns:
- Name of this
Flow
.
-
getInitialFunction
public ManagedFunctionReference getInitialFunction()
Description copied from interface:FlowConfiguration
Obtains the reference to the initialManagedFunction
of thisFlow
.- Specified by:
getInitialFunction
in interfaceFlowConfiguration<F extends java.lang.Enum<F>>
- Returns:
- Reference to the initial
ManagedFunction
of thisFlow
.
-
isSpawnThreadState
public boolean isSpawnThreadState()
Description copied from interface:FlowConfiguration
Indicates whether to spawn aThreadState
for theFlow
.- Specified by:
isSpawnThreadState
in interfaceFlowConfiguration<F extends java.lang.Enum<F>>
- Returns:
true
to spawn aThreadState
for theFlow
.
-
getIndex
public int getIndex()
Description copied from interface:FlowConfiguration
Obtains the index identifying thisFlow
.- Specified by:
getIndex
in interfaceFlowConfiguration<F extends java.lang.Enum<F>>
- Returns:
- Index identifying this
Flow
.
-
getKey
public F getKey()
Description copied from interface:FlowConfiguration
Obtains the key identifying thisFlow
.- Specified by:
getKey
in interfaceFlowConfiguration<F extends java.lang.Enum<F>>
- Returns:
- Key identifying this
Flow
.null
if indexed.
-
-