com.pentec.aserver.nvlensd
Class NVEZA2FocusModule

java.lang.Object
  extended by java.lang.Thread
      extended by com.pentec.aserver.AServerPlugin
          extended by com.pentec.aserver.NetworkPlugin
              extended by com.pentec.aserver.SingleUserNetworkPlugin
                  extended by com.pentec.aserver.nvlensd.NVLensModule
                      extended by com.pentec.aserver.nvlensd.NVEZA2FocusModule
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
DN300Focusd, LittonM993Focusd

public abstract class NVEZA2FocusModule
extends NVLensModule

Author:
Pender Technology

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  A2EncoderComm a2EncoderComm
           
protected  javax.comm.SerialPort a2EncoderComPort
           
protected  EZStepperComm ezStepperComm
           
protected  javax.comm.SerialPort ezStepperComPort
           
protected  int iA2EncoderAddress
           
protected  int iEZStepperAddress
           
protected  int iMaxMovementAttempts
           
protected  int iResetOffset
           
protected  boolean isInUse
           
protected  int iStartLocation
           
protected  int iTopSpeedInPositionMode
           
 
Fields inherited from class com.pentec.aserver.NetworkPlugin
iTcpPort, serverSocket
 
Fields inherited from class com.pentec.aserver.AServerPlugin
isOkToRun, SIG_INIT_FAILED, SIG_INITIALIZING, SIG_QUITTING, SIG_RUNNING, STATE_INIT_FAILED, STATE_INITIALIZING, STATE_QUITTING, STATE_RUNNING, STATE_STARTING, STATE_WAITING_TO_START, vPlugins
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NVEZA2FocusModule(java.lang.String $Name, java.lang.String $Version, int iTCPPort, javax.comm.SerialPort ezStepperComPort, int iEZStepperAddress, javax.comm.SerialPort a2EncoderComPort, int iA2EncoderAddress, int iTopSpeedInPositionMode, int iResetOffset, int iStartLocation, int iMaxMovementAttempts)
           
 
Method Summary
 void close()
           
 int getPosition()
           
protected  void open()
           
protected  void resetToOrigin()
           
 void setPosition(int iPosition)
           
protected  void waitOnMovement()
           
 
Methods inherited from class com.pentec.aserver.nvlensd.NVLensModule
getSingleUserConnectionHandler, initialize, isInUse, setIsInUse, shutdown
 
Methods inherited from class com.pentec.aserver.SingleUserNetworkPlugin
getConnectionHandler
 
Methods inherited from class com.pentec.aserver.NetworkPlugin
isOkToRun, run
 
Methods inherited from class com.pentec.aserver.AServerPlugin
getFullyQualifiedPluginName, getNumPlugins, getPluginInstanceIdentifier, getPluginName, getPluginState, getPluginStateByName, getPluginVersion, setPluginInstanceIdentifier, signalInitFailed, signalInitializing, signalQuitting, signalRunning, startPlugin, stopPlugin, toString, writeLog, writeLog
 
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, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

a2EncoderComm

protected A2EncoderComm a2EncoderComm

a2EncoderComPort

protected javax.comm.SerialPort a2EncoderComPort

ezStepperComm

protected EZStepperComm ezStepperComm

ezStepperComPort

protected javax.comm.SerialPort ezStepperComPort

iA2EncoderAddress

protected int iA2EncoderAddress

iEZStepperAddress

protected int iEZStepperAddress

iMaxMovementAttempts

protected int iMaxMovementAttempts

iResetOffset

protected int iResetOffset

isInUse

protected boolean isInUse

iStartLocation

protected int iStartLocation

iTopSpeedInPositionMode

protected int iTopSpeedInPositionMode
Constructor Detail

NVEZA2FocusModule

public NVEZA2FocusModule(java.lang.String $Name,
                         java.lang.String $Version,
                         int iTCPPort,
                         javax.comm.SerialPort ezStepperComPort,
                         int iEZStepperAddress,
                         javax.comm.SerialPort a2EncoderComPort,
                         int iA2EncoderAddress,
                         int iTopSpeedInPositionMode,
                         int iResetOffset,
                         int iStartLocation,
                         int iMaxMovementAttempts)
Method Detail

close

public void close()
Specified by:
close in class NVLensModule

getPosition

public int getPosition()
                throws java.lang.Exception
Specified by:
getPosition in class NVLensModule
Throws:
java.lang.Exception

open

protected void open()
             throws java.lang.Exception
Specified by:
open in class NVLensModule
Throws:
java.lang.Exception

resetToOrigin

protected void resetToOrigin()
                      throws java.lang.Exception
Throws:
java.lang.Exception

setPosition

public void setPosition(int iPosition)
                 throws java.lang.Exception
Specified by:
setPosition in class NVLensModule
Throws:
java.lang.Exception

waitOnMovement

protected void waitOnMovement()
                       throws java.lang.Exception
Throws:
java.lang.Exception