org.mbari.siam.foce.devices.controlLoop
Class VEL_ResponseParser

java.lang.Object
  extended by org.mbari.siam.distributed.PacketParser
      extended by org.mbari.siam.utils.DelimitedStringParser
          extended by org.mbari.siam.foce.devices.controlLoop.BaseResponseParser
              extended by org.mbari.siam.foce.devices.controlLoop.VEL_ResponseParser
All Implemented Interfaces:
java.io.Serializable

public class VEL_ResponseParser
extends BaseResponseParser

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mbari.siam.distributed.PacketParser
PacketParser.Field, PacketParser.Record
 
Field Summary
static int AFT_THRUSTER_CMD_INDEX
           
static int FWD_THRUSTER_CMD_INDEX
           
static int VEL_INDEX_BASE
           
 
Fields inherited from class org.mbari.siam.foce.devices.controlLoop.BaseResponseParser
_prefix, CORRECTION_INDEX, ERROR_INDEX, fieldNames, fieldUnits, INDEX_BASE, MAX_BASE_INDEX, OFFSET_INDEX, PROCESS_VALUE_INDEX, RAW_CORR_INDEX, RECORD_TYPE_INDEX, SETPOINT_INDEX
 
Fields inherited from class org.mbari.siam.utils.DelimitedStringParser
_delimiters, _fieldVector
 
Fields inherited from class org.mbari.siam.distributed.PacketParser
_registryName
 
Constructor Summary
VEL_ResponseParser()
          No-arg constructor needed to instantiate via class loader (e.g.
VEL_ResponseParser(java.lang.String registryName, java.lang.String delimiters)
           
 
Method Summary
protected  void initialize()
           
protected  PacketParser.Field processToken(int nToken, java.lang.String token)
          Process the token, whose position in string is nToken.
 
Methods inherited from class org.mbari.siam.utils.DelimitedStringParser
decimalValue, parseFields
 
Methods inherited from class org.mbari.siam.distributed.PacketParser
getField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VEL_INDEX_BASE

public static final int VEL_INDEX_BASE
See Also:
Constant Field Values

FWD_THRUSTER_CMD_INDEX

public static final int FWD_THRUSTER_CMD_INDEX
See Also:
Constant Field Values

AFT_THRUSTER_CMD_INDEX

public static final int AFT_THRUSTER_CMD_INDEX
See Also:
Constant Field Values
Constructor Detail

VEL_ResponseParser

public VEL_ResponseParser()
No-arg constructor needed to instantiate via class loader (e.g. by logView)


VEL_ResponseParser

public VEL_ResponseParser(java.lang.String registryName,
                          java.lang.String delimiters)
Method Detail

initialize

protected void initialize()
Overrides:
initialize in class BaseResponseParser

processToken

protected PacketParser.Field processToken(int nToken,
                                          java.lang.String token)
                                   throws java.text.ParseException
Process the token, whose position in string is nToken. If token corresponds to a Field, create and return the field. Otherwise return null.

Overrides:
processToken in class BaseResponseParser
Throws:
java.text.ParseException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.