org.mbari.siam.foce.devices.controlLoop
Class PH_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.PH_ResponseParser
All Implemented Interfaces:
java.io.Serializable

public class PH_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_VALVE_CMD_INDEX
           
static int FWD_VALVE_CMD_INDEX
           
static int PH_INDEX_BASE
           
static int PUMP_CMD_INDEX
           
 
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
PH_ResponseParser()
          No-arg constructor needed to instantiate via class loader (e.g.
PH_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

PH_INDEX_BASE

public static final int PH_INDEX_BASE
See Also:
Constant Field Values

PUMP_CMD_INDEX

public static final int PUMP_CMD_INDEX
See Also:
Constant Field Values

FWD_VALVE_CMD_INDEX

public static final int FWD_VALVE_CMD_INDEX
See Also:
Constant Field Values

AFT_VALVE_CMD_INDEX

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

PH_ResponseParser

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


PH_ResponseParser

public PH_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.