java.lang.Object
com.wyu4.snowberryjam.compiler.data.tasks.WaitUntilTask
- All Implemented Interfaces:
ExecutableTask,ValuedTask
A wait task. The condition to wait for
SourceKey.VALUE.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ValueHolderThe condition to wait for.private static final intprivate static final org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionWaitUntilTask(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:
-
condition
The condition to wait for.
-
-
Constructor Details
-
WaitUntilTask
public WaitUntilTask(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_UNTIL
-
feedback
Description copied from interface:ExecutableTaskGet some feedback from the task. Can be anything, depending on the task.- Specified by:
feedbackin interfaceExecutableTask- Returns:
- The state of the condition
-
toString
-
getValue
- Specified by:
getValuein interfaceValuedTask
-