java.lang.Object
com.wyu4.snowberryjam.compiler.data.tasks.WaitTask
- All Implemented Interfaces:
ExecutableTask,ValuedTask
A wait task. The time to wait is stored as
SourceKey.VALUE.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final org.slf4j.Loggerprivate final ValueHolderThe wait time in seconds. -
Constructor Summary
ConstructorsConstructorDescriptionWaitTask(com.fasterxml.jackson.databind.JsonNode node) Create a new wait statement -
Method Summary
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
INTERVAL
private static final int INTERVAL- See Also:
-
time
The wait time in seconds.
-
-
Constructor Details
-
WaitTask
public WaitTask(com.fasterxml.jackson.databind.JsonNode node) Create a new wait statement- Parameters:
node- TheJsonNodeto refer
-
-
Method Details
-
execute
public void execute()Description copied from interface:ExecutableTaskRun the task- Specified by:
executein interfaceExecutableTask
-
getId
Description copied from interface:ExecutableTaskGet the ID of the task- Specified by:
getIdin interfaceExecutableTask- Returns:
SourceId.WAIT
-
feedback
Description copied from interface:ExecutableTaskGet some feedback from the task. Can be anything, depending on the task.- Specified by:
feedbackin interfaceExecutableTask- Returns:
- The time to wait parsed as an
Object - See Also:
-
getTime
private long getTime()- Returns:
- The time to wait as a
Long
-
toString
-
getValue
- Specified by:
getValuein interfaceValuedTask
-