Class AdvancedProcessLogicExample.SimpleAction
java.lang.Object
neqsim.process.util.example.AdvancedProcessLogicExample.SimpleAction
- All Implemented Interfaces:
LogicAction
- Enclosing class:
AdvancedProcessLogicExample
Simple action implementation for example.
- Version:
- 1.0
- Author:
- ESOL
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the action.Gets a human-readable description of the action.Gets the name of the target equipment.booleanChecks if the action has completed.
-
Field Details
-
description
-
executor
-
complete
private boolean complete
-
-
Constructor Details
-
SimpleAction
-
-
Method Details
-
execute
public void execute()Description copied from interface:LogicActionExecutes the action.This method performs the actual operation on the target equipment.
- Specified by:
executein interfaceLogicAction
-
isComplete
public boolean isComplete()Description copied from interface:LogicActionChecks if the action has completed.Some actions are instantaneous (return true immediately), while others may take time to complete (e.g., valve stroke).
- Specified by:
isCompletein interfaceLogicAction- Returns:
- true if action is complete
-
getDescription
Description copied from interface:LogicActionGets a human-readable description of the action.- Specified by:
getDescriptionin interfaceLogicAction- Returns:
- action description
-
getTargetName
Description copied from interface:LogicActionGets the name of the target equipment.- Specified by:
getTargetNamein interfaceLogicAction- Returns:
- equipment name
-