Class Task
java.lang.Object
com.zenith.feature.tasks.Task
- All Implemented Interfaces:
Closeable, AutoCloseable
A task that consists of an
Action, a Condition, and a Continuation.
The task executes the Action when the Condition is met.
The Continuation decides when the task should stop executing.-
Constructor Summary
ConstructorsConstructorDescriptionTask(String id, Action action, Condition condition, Continuation continuation) -
Method Summary
-
Constructor Details
-
Task
-
-
Method Details
-
tick
public boolean tick()- Returns:
- true if the task should continue executing, false otherwise
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getId
-
getAction
-
getCondition
-
getContinuation
-
equals
-
canEqual
-
hashCode
-
toString
-