modsim
Class ExtrCtrlASim

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

public class ExtrCtrlASim
extends AiaododiSimulator

Simulates Snap I/O for test drive latch.

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
 
Fields inherited from class modsim.AiaododiSimulator
aiHi, aiLo, aoHi, aoLo, diReg, doReg, NUMBEROFANALOGINPUTS, NUMBEROFANALOGOUTPUTS, NUMBEROFDIGITALINPUTS, 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
ExtrCtrlASim()
          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
 

Constructor Detail

ExtrCtrlASim

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

setPanel

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

Overrides:
setPanel in class AiaododiSimulator
Parameters:
panel - JPanel