Package api.advanced

Interface ExecutableCommands

    • Method Summary

      Modifier and Type Method Description
      void exec()
      Execute the Command(s) using the default time
      This method does not block the Thread when invoked.
      void exec​(int time)
      Execute the Command(s) for a given time
      This method does not block the Thread when invoked.
      void execBlocking()
      Like exec() but blocks the Thread until the Command has been executed
      void execBlocking​(int time)
      Like exec(int) but blocks the Thread until the Command has been executed
      int getTime()
      Get the default execution time of this Command
      java.lang.String getTree()
      Get the tree of Command nodes executed by this command
      void printTree()
      Print the tree of Command nodes executed by this Command
    • Method Detail

      • exec

        void exec()
        Execute the Command(s) using the default time
        This method does not block the Thread when invoked.
      • exec

        void exec​(int time)
        Execute the Command(s) for a given time
        This method does not block the Thread when invoked.
        Parameters:
        time - The execution time in milliseconds
      • execBlocking

        void execBlocking()
        Like exec() but blocks the Thread until the Command has been executed
      • execBlocking

        void execBlocking​(int time)
        Like exec(int) but blocks the Thread until the Command has been executed
        Parameters:
        time - The execution time in milliseconds
      • printTree

        void printTree()
        Print the tree of Command nodes executed by this Command
        See Also:
        getTree()
      • getTree

        java.lang.String getTree()
        Get the tree of Command nodes executed by this command
        Returns:
        The command tree
      • getTime

        int getTime()
        Get the default execution time of this Command
        Returns:
        The default execution time of this Command