modsim
Class AiaododiSimulator

java.lang.Object
  extended by java.lang.Thread
      extended by modsim.SimulatorThread
          extended by modsim.AiaododiSimulator
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ExtrCtrlASim, ExtrCtrlBSim, TestDrvLatSim

public class AiaododiSimulator
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.SimpleInputRegister[] aiHi
           
 net.wimpi.modbus.procimg.SimpleInputRegister[] aiLo
           
 net.wimpi.modbus.procimg.SimpleRegister[] aoHi
           
 net.wimpi.modbus.procimg.SimpleRegister[] aoLo
           
 net.wimpi.modbus.procimg.SimpleDigitalIn[] diReg
           
 net.wimpi.modbus.procimg.SimpleDigitalOut[] doReg
           
static int NUMBEROFANALOGINPUTS
           
static int NUMBEROFANALOGOUTPUTS
           
static int NUMBEROFDIGITALINPUTS
           
static int NUMBEROFDIGITALOUTPUTS
           
 
Fields inherited from class modsim.SimulatorThread
panel, processImage, running
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AiaododiSimulator()
          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

NUMBEROFANALOGINPUTS

public static final int NUMBEROFANALOGINPUTS
See Also:
Constant Field Values

aiLo

public net.wimpi.modbus.procimg.SimpleInputRegister[] aiLo

aiHi

public net.wimpi.modbus.procimg.SimpleInputRegister[] aiHi

NUMBEROFANALOGOUTPUTS

public static final int NUMBEROFANALOGOUTPUTS
See Also:
Constant Field Values

aoLo

public net.wimpi.modbus.procimg.SimpleRegister[] aoLo

aoHi

public net.wimpi.modbus.procimg.SimpleRegister[] aoHi

NUMBEROFDIGITALINPUTS

public static final int NUMBEROFDIGITALINPUTS
See Also:
Constant Field Values

diReg

public net.wimpi.modbus.procimg.SimpleDigitalIn[] diReg

NUMBEROFDIGITALOUTPUTS

public static final int NUMBEROFDIGITALOUTPUTS
See Also:
Constant Field Values

doReg

public net.wimpi.modbus.procimg.SimpleDigitalOut[] doReg
Constructor Detail

AiaododiSimulator

public AiaododiSimulator()
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