Constructor and Description |
---|
DutyNodeImpl(String dutyName,
AdministratorNode administrator,
NodeContext context)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
buildPostTaskAdministration(WorkBuilder<?> workBuilder,
TaskBuilder<?,?,?> taskBuilder)
Builds the post
Task administration. |
void |
buildPreTaskAdministration(WorkBuilder<?> workBuilder,
TaskBuilder<?,?,?> taskBuilder)
Builds the pre
Task administration. |
String |
getLocation()
Obtains the location of the
Node . |
String |
getNodeName()
Obtains the name of the
Node . |
String |
getNodeType()
Obtains the
Node type. |
String |
getOfficeDutyName()
Obtains the name of this
OfficeDuty . |
Node |
getParentNode()
|
void |
initialise()
Initialises the
DutyNode . |
boolean |
isInitialised()
Indicates if the
Node has been initialised. |
public DutyNodeImpl(String dutyName, AdministratorNode administrator, NodeContext context)
dutyName
- Name of this OfficeDuty
.administrator
- AdministratorNode
containing this DutyNode
.context
- NodeContext
.public String getNodeName()
Node
Node
.getNodeName
in interface Node
Node
.public String getNodeType()
Node
Node
type.getNodeType
in interface Node
Node
type.public String getLocation()
Node
Node
.getLocation
in interface Node
Node
. May be null
if
Node
does not support a location.public Node getParentNode()
Node
getParentNode
in interface Node
Node
containing this Node
.public boolean isInitialised()
Node
Node
has been initialised. Node
instances should only be initialised once. Initialising the Node
twice is an issue.isInitialised
in interface Node
true
if initialised.public void initialise()
DutyNode
DutyNode
.initialise
in interface DutyNode
public String getOfficeDutyName()
OfficeDuty
OfficeDuty
.getOfficeDutyName
in interface OfficeDuty
OfficeDuty
.public void buildPreTaskAdministration(WorkBuilder<?> workBuilder, TaskBuilder<?,?,?> taskBuilder)
DutyNode
Task
administration.buildPreTaskAdministration
in interface DutyNode
workBuilder
- WorkBuilder
.taskBuilder
- TaskBuilder
.public void buildPostTaskAdministration(WorkBuilder<?> workBuilder, TaskBuilder<?,?,?> taskBuilder)
DutyNode
Task
administration.buildPostTaskAdministration
in interface DutyNode
workBuilder
- WorkBuilder
.taskBuilder
- TaskBuilder
.Copyright © 2005–2016. All rights reserved.