Class TaskNode


  • public abstract class TaskNode
    extends MethodProvider
    Created with IntelliJ IDEA. User: NotoriousPP Date: 11/25/2014 Time: 5:05 PM
    • Constructor Detail

      • TaskNode

        public TaskNode()
    • Method Detail

      • priority

        public int priority()
        The priority of which the node should be executed; Higher priority value means higher priority to be executed.
        Returns:
        int value of the priority
      • accept

        public abstract boolean accept()
        The conditional boolean which determines if the node should execute.
        Returns:
        true if all conditions are met, otherwise false.
      • execute

        public abstract int execute()
        The actions that should execute when all conditions are met.
        Returns:
        the amount of time in ms to delay after execution, < 0 will stop the script.