com.pentec.adaq.quickset.commands.parameters
Class SoftLimit

java.lang.Object
  extended by com.pentec.adaq.quickset.commands.QuickSetCommand
      extended by com.pentec.adaq.quickset.commands.parameters.SoftLimit
Direct Known Subclasses:
GetSoftLimit, SetSoftLimit

abstract class SoftLimit
extends QuickSetCommand

Author:
Pender Technology

Field Summary
static byte AXIS_CLOCKWISE
           
static byte AXIS_COUNTERCLOCKWISE
           
static byte AXIS_DOWN
           
static byte AXIS_UP
           
private  byte bAxis
           
private  byte bCmdId
           
private  int iSoftLimit
           
 
Fields inherited from class com.pentec.adaq.quickset.commands.QuickSetCommand
ACK, ESC, ETX, NACK, STX
 
Constructor Summary
SoftLimit(byte bCmdId)
           
SoftLimit(byte bCmdId, byte bAxis)
           
 
Method Summary
 void applyResponse(byte[] abResponseData)
          Apply QuickSet response to update internal data.
 int getSoftLimit()
           
 void setAxis(byte bAxis)
           
 byte[] toBytes()
          Convert command into a byte array.
 
Methods inherited from class com.pentec.adaq.quickset.commands.QuickSetCommand
bytePairToInt, generateChecksum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AXIS_CLOCKWISE

public static final byte AXIS_CLOCKWISE
See Also:
Constant Field Values

AXIS_COUNTERCLOCKWISE

public static final byte AXIS_COUNTERCLOCKWISE
See Also:
Constant Field Values

AXIS_DOWN

public static final byte AXIS_DOWN
See Also:
Constant Field Values

AXIS_UP

public static final byte AXIS_UP
See Also:
Constant Field Values

bAxis

private byte bAxis

bCmdId

private final byte bCmdId

iSoftLimit

private int iSoftLimit
Constructor Detail

SoftLimit

public SoftLimit(byte bCmdId)

SoftLimit

public SoftLimit(byte bCmdId,
                 byte bAxis)
Method Detail

applyResponse

public void applyResponse(byte[] abResponseData)
Description copied from class: QuickSetCommand
Apply QuickSet response to update internal data. Escapes for control characters have already been removed.

Specified by:
applyResponse in class QuickSetCommand

getSoftLimit

public int getSoftLimit()

setAxis

public void setAxis(byte bAxis)

toBytes

public byte[] toBytes()
Description copied from class: QuickSetCommand
Convert command into a byte array. The checksum should already be in place, but control character escapes should not yet be applied.

Specified by:
toBytes in class QuickSetCommand