control
Class AutoStep

java.lang.Object
  extended by java.lang.Thread
      extended by control.AutoStep
All Implemented Interfaces:
java.lang.Runnable

public class AutoStep
extends java.lang.Thread

Execute automatically the program loaded in the controller step by step Copyright (C) 2011 Federico "MrModd" Cosentino (http://mrmodd.it/)


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  GUI gui
           
private static java.util.concurrent.locks.Lock lock
           
private  int ms
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AutoStep(int milliseconds, GUI g)
          Create an instance
 
Method Summary
 void run()
           
 void setMs(int milliseconds)
          Change the interval value
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ms

private int ms

gui

private GUI gui

lock

private static java.util.concurrent.locks.Lock lock
Constructor Detail

AutoStep

public AutoStep(int milliseconds,
                GUI g)
Create an instance

Parameters:
milliseconds - the interval between two steps
g - the window caller
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

setMs

public void setMs(int milliseconds)
Change the interval value

Parameters:
milliseconds - the new interval