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
FunctionFlowNodeimplementation.- 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 childNodeinstances.java.lang.StringgetFunctionFlowName()Obtains the name of thisFunctionFlow.LinkFlowNodegetLinkedFlowNode()Obtains theLinkFlowNodelinked to thisLinkFlowNode.java.lang.StringgetLocation()Obtains the location of theNode.java.lang.StringgetNodeName()Obtains the name of theNode.java.lang.StringgetNodeType()Obtains theNodetype.NodegetParentNode()voidinitialise()Initialises theFunctionFlowNode.booleanisInitialised()Indicates if theNodehas been initialised.booleanisSpawnThreadState()Indicates whether to spawn aThreadStatefor thisFunctionFlow.booleanlinkFlowNode(LinkFlowNode node)Links the inputLinkFlowNodeto thisLinkFlowNode.voidsetSpawnThreadState(boolean isSpawnThreadState)Specifies whether to spawn aThreadStatefor 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 thisFunctionFlowis for aManagedFunctionEscalationType.function- ParentManagedFunctionNode.context-NodeContext.
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
Description copied from interface:NodeObtains the name of theNode.- Specified by:
getNodeNamein interfaceNode- Returns:
- Name of the
Node.
-
getNodeType
public java.lang.String getNodeType()
Description copied from interface:NodeObtains theNodetype.- Specified by:
getNodeTypein interfaceNode- Returns:
Nodetype.
-
getLocation
public java.lang.String getLocation()
Description copied from interface:NodeObtains the location of theNode.- Specified by:
getLocationin interfaceNode- Returns:
- Location of the
Node. May benullifNodedoes not support a location.
-
getParentNode
public Node getParentNode()
Description copied from interface:Node- Specified by:
getParentNodein interfaceNode- Returns:
Nodecontaining thisNode.
-
getChildNodes
public Node[] getChildNodes()
Description copied from interface:NodeObtains the childNodeinstances.- Specified by:
getChildNodesin interfaceNode- Returns:
- Child
Nodeinstances.
-
isInitialised
public boolean isInitialised()
Description copied from interface:NodeIndicates if theNodehas been initialised.Nodeinstances should only be initialised once. Initialising theNodetwice is an issue.- Specified by:
isInitialisedin interfaceNode- Returns:
trueif initialised.
-
initialise
public void initialise()
Description copied from interface:FunctionFlowNodeInitialises theFunctionFlowNode.- Specified by:
initialisein interfaceFunctionFlowNode
-
getFunctionFlowName
public java.lang.String getFunctionFlowName()
Description copied from interface:FunctionFlowObtains the name of thisFunctionFlow.- Specified by:
getFunctionFlowNamein interfaceFunctionFlow- Returns:
- Name of this
FunctionFlow.
-
isSpawnThreadState
public boolean isSpawnThreadState()
Description copied from interface:FunctionFlowNodeIndicates whether to spawn aThreadStatefor thisFunctionFlow.- Specified by:
isSpawnThreadStatein interfaceFunctionFlowNode- Returns:
trueto spawn aThreadStatefor thisFunctionFlow.
-
setSpawnThreadState
public void setSpawnThreadState(boolean isSpawnThreadState)
Description copied from interface:FunctionFlowNodeSpecifies whether to spawn aThreadStatefor thisFunctionFlow.- Specified by:
setSpawnThreadStatein interfaceFunctionFlowNode- Parameters:
isSpawnThreadState-trueto spawn aThreadStatefor thisFunctionFlow.
-
linkFlowNode
public boolean linkFlowNode(LinkFlowNode node)
Description copied from interface:LinkFlowNodeLinks the inputLinkFlowNodeto thisLinkFlowNode.- Specified by:
linkFlowNodein interfaceLinkFlowNode- Parameters:
node-LinkFlowNodeto link to thisLinkFlowNode.- Returns:
trueif linked.
-
getLinkedFlowNode
public LinkFlowNode getLinkedFlowNode()
Description copied from interface:LinkFlowNodeObtains theLinkFlowNodelinked to thisLinkFlowNode.- Specified by:
getLinkedFlowNodein interfaceLinkFlowNode- Returns:
LinkFlowNodelinked to thisLinkFlowNode.
-
-