Class RandomSolver

    • Constructor Detail

      • RandomSolver

        public RandomSolver​(RandomEvent event)
      • RandomSolver

        public RandomSolver​(java.lang.String eventString)
    • Method Detail

      • shouldExecute

        public abstract boolean shouldExecute()
        Checks whether the random even solver should execute; This method must be overridden
        Returns:
        true as long as the random executor should be executing
      • onStart

        public void onStart()
        Runs once when the random solver first activates; This method can be optionally overridden
      • onLoop

        public abstract int onLoop()
        Runs as long as shouldExecute returns true; This method must be overridden
        Returns:
        time to delay before next onLoop
      • onFinish

        public void onFinish()
        Runs once at the end (when shouldExecute first returns false); This method can be optionally overridden
      • getMethodContext

        @Deprecated
        public MethodContext getMethodContext()
        Deprecated.
      • getEventString

        public java.lang.String getEventString()
      • onPaint

        public void onPaint​(java.awt.Graphics graphics)
        Description copied from interface: PaintListener
        Handles the graphic for the script.
        Specified by:
        onPaint in interface PaintListener
        Parameters:
        graphics - The Graphics instance sent from the canvas.
      • onPaint

        public void onPaint​(java.awt.Graphics2D graphics)
        Description copied from interface: PaintListener
        Handles the graphic for the script.
        Specified by:
        onPaint in interface PaintListener
        Parameters:
        graphics - The Graphics instance sent from the canvas.
      • disable

        public void disable()
      • enable

        public void enable()
      • isEnabled

        public boolean isEnabled()
      • getStartTime

        @Deprecated
        public long getStartTime()
        Deprecated.
      • setStartTime

        @Deprecated
        public void setStartTime​(long startTime)
        Deprecated.
      • lastRan

        public long lastRan()
      • isForceDisable

        public boolean isForceDisable()
      • setForceDisable

        public void setForceDisable​(boolean forceDisable)