Class FunctionFlowNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.FunctionFlowNodeImpl
-
- All Implemented Interfaces:
FunctionFlowNode
,LinkFlowNode
,Node
,FunctionFlow
public class FunctionFlowNodeImpl extends java.lang.Object implements FunctionFlowNode
FunctionFlowNode
implementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.FunctionFlowNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description FunctionFlowNodeImpl(java.lang.String flowName, boolean isEscalation, ManagedFunctionNode function, NodeContext context)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node[]
getChildNodes()
Obtains the childNode
instances.java.lang.String
getFunctionFlowName()
Obtains the name of thisFunctionFlow
.LinkFlowNode
getLinkedFlowNode()
Obtains theLinkFlowNode
linked to thisLinkFlowNode
.java.lang.String
getLocation()
Obtains the location of theNode
.java.lang.String
getNodeName()
Obtains the name of theNode
.java.lang.String
getNodeType()
Obtains theNode
type.Node
getParentNode()
void
initialise()
Initialises theFunctionFlowNode
.boolean
isInitialised()
Indicates if theNode
has been initialised.boolean
isSpawnThreadState()
Indicates whether to spawn aThreadState
for thisFunctionFlow
.boolean
linkFlowNode(LinkFlowNode node)
Links the inputLinkFlowNode
to thisLinkFlowNode
.void
setSpawnThreadState(boolean isSpawnThreadState)
Specifies whether to spawn aThreadState
for thisFunctionFlow
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
-
-
-
Constructor Detail
-
FunctionFlowNodeImpl
public FunctionFlowNodeImpl(java.lang.String flowName, boolean isEscalation, ManagedFunctionNode function, NodeContext context)
Initiate.- Parameters:
flowName
- Name of thisFunctionFlow
.isEscalation
- Indicates if thisFunctionFlow
is for aManagedFunctionEscalationType
.function
- ParentManagedFunctionNode
.context
-NodeContext
.
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
Description copied from interface:Node
Obtains the name of theNode
.- Specified by:
getNodeName
in interfaceNode
- Returns:
- Name of the
Node
.
-
getNodeType
public java.lang.String getNodeType()
Description copied from interface:Node
Obtains theNode
type.- Specified by:
getNodeType
in interfaceNode
- Returns:
Node
type.
-
getLocation
public java.lang.String getLocation()
Description copied from interface:Node
Obtains the location of theNode
.- Specified by:
getLocation
in interfaceNode
- Returns:
- Location of the
Node
. May benull
ifNode
does not support a location.
-
getParentNode
public Node getParentNode()
Description copied from interface:Node
- Specified by:
getParentNode
in interfaceNode
- Returns:
Node
containing thisNode
.
-
getChildNodes
public Node[] getChildNodes()
Description copied from interface:Node
Obtains the childNode
instances.- Specified by:
getChildNodes
in interfaceNode
- Returns:
- Child
Node
instances.
-
isInitialised
public boolean isInitialised()
Description copied from interface:Node
Indicates if theNode
has been initialised.Node
instances should only be initialised once. Initialising theNode
twice is an issue.- Specified by:
isInitialised
in interfaceNode
- Returns:
true
if initialised.
-
initialise
public void initialise()
Description copied from interface:FunctionFlowNode
Initialises theFunctionFlowNode
.- Specified by:
initialise
in interfaceFunctionFlowNode
-
getFunctionFlowName
public java.lang.String getFunctionFlowName()
Description copied from interface:FunctionFlow
Obtains the name of thisFunctionFlow
.- Specified by:
getFunctionFlowName
in interfaceFunctionFlow
- Returns:
- Name of this
FunctionFlow
.
-
isSpawnThreadState
public boolean isSpawnThreadState()
Description copied from interface:FunctionFlowNode
Indicates whether to spawn aThreadState
for thisFunctionFlow
.- Specified by:
isSpawnThreadState
in interfaceFunctionFlowNode
- Returns:
true
to spawn aThreadState
for thisFunctionFlow
.
-
setSpawnThreadState
public void setSpawnThreadState(boolean isSpawnThreadState)
Description copied from interface:FunctionFlowNode
Specifies whether to spawn aThreadState
for thisFunctionFlow
.- Specified by:
setSpawnThreadState
in interfaceFunctionFlowNode
- Parameters:
isSpawnThreadState
-true
to spawn aThreadState
for thisFunctionFlow
.
-
linkFlowNode
public boolean linkFlowNode(LinkFlowNode node)
Description copied from interface:LinkFlowNode
Links the inputLinkFlowNode
to thisLinkFlowNode
.- Specified by:
linkFlowNode
in interfaceLinkFlowNode
- Parameters:
node
-LinkFlowNode
to link to thisLinkFlowNode
.- Returns:
true
if linked.
-
getLinkedFlowNode
public LinkFlowNode getLinkedFlowNode()
Description copied from interface:LinkFlowNode
Obtains theLinkFlowNode
linked to thisLinkFlowNode
.- Specified by:
getLinkedFlowNode
in interfaceLinkFlowNode
- Returns:
LinkFlowNode
linked to thisLinkFlowNode
.
-
-