com.pentec.adaq.quickset.commands.tour
Class AppendPresetToTour

java.lang.Object
  extended by com.pentec.adaq.quickset.commands.QuickSetCommand
      extended by com.pentec.adaq.quickset.commands.tour.AppendPresetToTour
All Implemented Interfaces:
TourConstants

public class AppendPresetToTour
extends QuickSetCommand
implements TourConstants

Author:
Pender Technology

Field Summary
private static byte bCmdId
           
private  byte bPreset
           
private  byte bStep
           
private  byte bTour
           
private  boolean isFull
           
private  int iWaitTime
           
 
Fields inherited from class com.pentec.adaq.quickset.commands.QuickSetCommand
ACK, ESC, ETX, NACK, STX
 
Fields inherited from interface com.pentec.adaq.quickset.commands.tour.TourConstants
DYNAMIC_TOUR, MAX_WAIT_TIME, MIN_WAIT_TIME, STATIC_TOUR_1, STATIC_TOUR_2, STATIC_TOUR_3, STEP_DOES_NOT_EXIST, TOUR_EMPTY, TOUR_FULL
 
Constructor Summary
AppendPresetToTour()
           
AppendPresetToTour(byte bTour, byte bPreset, int iWaitTime)
           
 
Method Summary
 void applyResponse(byte[] abResponseData)
          Apply QuickSet response to update internal data.
 byte getStep()
           
 boolean isFull()
           
 void setPreset(byte bPreset)
           
 void setTour(byte bTour)
           
 void setWaitTime(int iWaitTime)
           
 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

bCmdId

private static final byte bCmdId
See Also:
Constant Field Values

bPreset

private byte bPreset

bStep

private byte bStep

bTour

private byte bTour

isFull

private boolean isFull

iWaitTime

private int iWaitTime
Constructor Detail

AppendPresetToTour

public AppendPresetToTour()

AppendPresetToTour

public AppendPresetToTour(byte bTour,
                          byte bPreset,
                          int iWaitTime)
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

getStep

public byte getStep()

isFull

public boolean isFull()

setPreset

public void setPreset(byte bPreset)

setTour

public void setTour(byte bTour)

setWaitTime

public void setWaitTime(int iWaitTime)

toBytes

public byte[] toBytes()
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