modsim
Class F7Simulator

java.lang.Object
  extended by java.lang.Thread
      extended by modsim.SimulatorThread
          extended by modsim.F7Simulator
All Implemented Interfaces:
java.lang.Runnable

public class F7Simulator
extends SimulatorThread

Simulates F7 motor controller logic.

Author:
bburch 15 July 2008

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 net.wimpi.modbus.procimg.Register command
           
 net.wimpi.modbus.procimg.Register speed
           
 net.wimpi.modbus.procimg.Register speedOut
           
 net.wimpi.modbus.procimg.Register status
           
 
Fields inherited from class modsim.SimulatorThread
panel, processImage, running
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
F7Simulator()
          Constructor.
 
Method Summary
 void run()
          Required by thread.
 void setPanel(javax.swing.JPanel panel)
          Override SimulatorThread method.
 
Methods inherited from class modsim.SimulatorThread
pause, setProcessImage
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

status

public net.wimpi.modbus.procimg.Register status

command

public net.wimpi.modbus.procimg.Register command

speed

public net.wimpi.modbus.procimg.Register speed

speedOut

public net.wimpi.modbus.procimg.Register speedOut
Constructor Detail

F7Simulator

public F7Simulator()
Constructor.

Parameters:
pi - ProcessImageImplementation
Method Detail

run

public void run()
Required by thread. Over-writes SimulatorThread 'run'.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class SimulatorThread

setPanel

public void setPanel(javax.swing.JPanel panel)
Override SimulatorThread method. Also fills in the panel.

Overrides:
setPanel in class SimulatorThread
Parameters:
panel - JPanel