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

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.ControlLoopParser
All Implemented Interfaces:
java.io.Serializable

public class ControlLoopParser
extends DelimitedStringParser

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mbari.siam.distributed.PacketParser
PacketParser.Field, PacketParser.Record
 
Field Summary
 java.util.Vector fieldNames
           
 java.util.Vector fieldUnits
           
static int INDEX_BASE
           
static int PH_AFT_VALVE_CMD_INDEX
           
static int PH_CORRECTION_INDEX
           
static int PH_DTERM_INDEX
           
static int PH_ERROR_INDEX
           
static int PH_ESWP_AMODE_INDEX
           
static int PH_ESWV_AMODE_INDEX
           
static int PH_FWD_VALVE_CMD_INDEX
           
static int PH_ITERM_INDEX
           
static int PH_KD_INDEX
           
static int PH_KI_INDEX
           
static int PH_KP_INDEX
           
static int PH_OFFSET_INDEX
           
static int PH_PH_CMODE_INDEX
           
static int PH_PH_EXT_INDEX
           
static int PH_PROCESS_VALUE_INDEX
           
static int PH_PTERM_INDEX
           
static int PH_PUMP_CMD_INDEX
           
static int PH_RAW_CORR_INDEX
           
static int PH_SCALE_INDEX
           
static int PH_SETPOINT_INDEX
           
static int PH_THRU_AMODE_INDEX
           
static int PH_VEL_CMODE_INDEX
           
static int PH_VHDG_EXT_INDEX
           
static int PH_VHDG_INT_INDEX
           
static int PH_VMAG_EXT_INDEX
           
static int PH_VMAG_INT_INDEX
           
static int PH_VX_EXT_INDEX
           
static int PH_VX_INT_INDEX
           
static int PH_VY_EXT_INDEX
           
static int PH_VY_INT_INDEX
           
static int VEL_AFT_THRUSTER_CMD_INDEX
           
static int VEL_CORRECTION_INDEX
           
static int VEL_DTERM_INDEX
           
static int VEL_ERROR_INDEX
           
static int VEL_ESWP_AMODE_INDEX
           
static int VEL_ESWV_AMODE_INDEX
           
static int VEL_FWD_THRUSTER_CMD_INDEX
           
static int VEL_ITERM_INDEX
           
static int VEL_KD_INDEX
           
static int VEL_KI_INDEX
           
static int VEL_KP_INDEX
           
static int VEL_OFFSET_INDEX
           
static int VEL_PH_CMODE_INDEX
           
static int VEL_PROCESS_VALUE_INDEX
           
static int VEL_PTERM_INDEX
           
static int VEL_RAW_CORR_INDEX
           
static int VEL_SCALE_INDEX
           
static int VEL_SETPOINT_INDEX
           
static int VEL_THRU_AMODE_INDEX
           
static int VEL_VEL_CMODE_INDEX
           
static int VEL_VHDG_EXT_INDEX
           
static int VEL_VHDG_INT_INDEX
           
static int VEL_VMAG_EXT_INDEX
           
static int VEL_VMAG_INT_INDEX
           
static int VEL_VX_EXT_INDEX
           
static int VEL_VX_INT_INDEX
           
static int VEL_VY_EXT_INDEX
           
static int VEL_VY_INT_INDEX
           
 
Fields inherited from class org.mbari.siam.utils.DelimitedStringParser
_delimiters, _fieldVector
 
Fields inherited from class org.mbari.siam.distributed.PacketParser
_registryName
 
Constructor Summary
ControlLoopParser()
          No-arg constructor needed to instantiate via class loader (e.g.
ControlLoopParser(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

INDEX_BASE

public static final int INDEX_BASE
See Also:
Constant Field Values

PH_PROCESS_VALUE_INDEX

public static final int PH_PROCESS_VALUE_INDEX
See Also:
Constant Field Values

PH_VEL_CMODE_INDEX

public static final int PH_VEL_CMODE_INDEX
See Also:
Constant Field Values

PH_PH_CMODE_INDEX

public static final int PH_PH_CMODE_INDEX
See Also:
Constant Field Values

PH_ESWV_AMODE_INDEX

public static final int PH_ESWV_AMODE_INDEX
See Also:
Constant Field Values

PH_ESWP_AMODE_INDEX

public static final int PH_ESWP_AMODE_INDEX
See Also:
Constant Field Values

PH_THRU_AMODE_INDEX

public static final int PH_THRU_AMODE_INDEX
See Also:
Constant Field Values

PH_OFFSET_INDEX

public static final int PH_OFFSET_INDEX
See Also:
Constant Field Values

PH_SETPOINT_INDEX

public static final int PH_SETPOINT_INDEX
See Also:
Constant Field Values

PH_ERROR_INDEX

public static final int PH_ERROR_INDEX
See Also:
Constant Field Values

PH_CORRECTION_INDEX

public static final int PH_CORRECTION_INDEX
See Also:
Constant Field Values

PH_RAW_CORR_INDEX

public static final int PH_RAW_CORR_INDEX
See Also:
Constant Field Values

PH_KP_INDEX

public static final int PH_KP_INDEX
See Also:
Constant Field Values

PH_KI_INDEX

public static final int PH_KI_INDEX
See Also:
Constant Field Values

PH_KD_INDEX

public static final int PH_KD_INDEX
See Also:
Constant Field Values

PH_SCALE_INDEX

public static final int PH_SCALE_INDEX
See Also:
Constant Field Values

PH_PTERM_INDEX

public static final int PH_PTERM_INDEX
See Also:
Constant Field Values

PH_ITERM_INDEX

public static final int PH_ITERM_INDEX
See Also:
Constant Field Values

PH_DTERM_INDEX

public static final int PH_DTERM_INDEX
See Also:
Constant Field Values

PH_PH_EXT_INDEX

public static final int PH_PH_EXT_INDEX
See Also:
Constant Field Values

PH_PUMP_CMD_INDEX

public static final int PH_PUMP_CMD_INDEX
See Also:
Constant Field Values

PH_FWD_VALVE_CMD_INDEX

public static final int PH_FWD_VALVE_CMD_INDEX
See Also:
Constant Field Values

PH_AFT_VALVE_CMD_INDEX

public static final int PH_AFT_VALVE_CMD_INDEX
See Also:
Constant Field Values

PH_VX_INT_INDEX

public static final int PH_VX_INT_INDEX
See Also:
Constant Field Values

PH_VY_INT_INDEX

public static final int PH_VY_INT_INDEX
See Also:
Constant Field Values

PH_VX_EXT_INDEX

public static final int PH_VX_EXT_INDEX
See Also:
Constant Field Values

PH_VY_EXT_INDEX

public static final int PH_VY_EXT_INDEX
See Also:
Constant Field Values

PH_VMAG_INT_INDEX

public static final int PH_VMAG_INT_INDEX
See Also:
Constant Field Values

PH_VHDG_INT_INDEX

public static final int PH_VHDG_INT_INDEX
See Also:
Constant Field Values

PH_VMAG_EXT_INDEX

public static final int PH_VMAG_EXT_INDEX
See Also:
Constant Field Values

PH_VHDG_EXT_INDEX

public static final int PH_VHDG_EXT_INDEX
See Also:
Constant Field Values

VEL_PROCESS_VALUE_INDEX

public static final int VEL_PROCESS_VALUE_INDEX
See Also:
Constant Field Values

VEL_VEL_CMODE_INDEX

public static final int VEL_VEL_CMODE_INDEX
See Also:
Constant Field Values

VEL_PH_CMODE_INDEX

public static final int VEL_PH_CMODE_INDEX
See Also:
Constant Field Values

VEL_ESWV_AMODE_INDEX

public static final int VEL_ESWV_AMODE_INDEX
See Also:
Constant Field Values

VEL_ESWP_AMODE_INDEX

public static final int VEL_ESWP_AMODE_INDEX
See Also:
Constant Field Values

VEL_THRU_AMODE_INDEX

public static final int VEL_THRU_AMODE_INDEX
See Also:
Constant Field Values

VEL_OFFSET_INDEX

public static final int VEL_OFFSET_INDEX
See Also:
Constant Field Values

VEL_SETPOINT_INDEX

public static final int VEL_SETPOINT_INDEX
See Also:
Constant Field Values

VEL_ERROR_INDEX

public static final int VEL_ERROR_INDEX
See Also:
Constant Field Values

VEL_CORRECTION_INDEX

public static final int VEL_CORRECTION_INDEX
See Also:
Constant Field Values

VEL_RAW_CORR_INDEX

public static final int VEL_RAW_CORR_INDEX
See Also:
Constant Field Values

VEL_KP_INDEX

public static final int VEL_KP_INDEX
See Also:
Constant Field Values

VEL_KI_INDEX

public static final int VEL_KI_INDEX
See Also:
Constant Field Values

VEL_KD_INDEX

public static final int VEL_KD_INDEX
See Also:
Constant Field Values

VEL_SCALE_INDEX

public static final int VEL_SCALE_INDEX
See Also:
Constant Field Values

VEL_PTERM_INDEX

public static final int VEL_PTERM_INDEX
See Also:
Constant Field Values

VEL_ITERM_INDEX

public static final int VEL_ITERM_INDEX
See Also:
Constant Field Values

VEL_DTERM_INDEX

public static final int VEL_DTERM_INDEX
See Also:
Constant Field Values

VEL_FWD_THRUSTER_CMD_INDEX

public static final int VEL_FWD_THRUSTER_CMD_INDEX
See Also:
Constant Field Values

VEL_AFT_THRUSTER_CMD_INDEX

public static final int VEL_AFT_THRUSTER_CMD_INDEX
See Also:
Constant Field Values

VEL_VX_INT_INDEX

public static final int VEL_VX_INT_INDEX
See Also:
Constant Field Values

VEL_VY_INT_INDEX

public static final int VEL_VY_INT_INDEX
See Also:
Constant Field Values

VEL_VX_EXT_INDEX

public static final int VEL_VX_EXT_INDEX
See Also:
Constant Field Values

VEL_VY_EXT_INDEX

public static final int VEL_VY_EXT_INDEX
See Also:
Constant Field Values

VEL_VMAG_INT_INDEX

public static final int VEL_VMAG_INT_INDEX
See Also:
Constant Field Values

VEL_VHDG_INT_INDEX

public static final int VEL_VHDG_INT_INDEX
See Also:
Constant Field Values

VEL_VMAG_EXT_INDEX

public static final int VEL_VMAG_EXT_INDEX
See Also:
Constant Field Values

VEL_VHDG_EXT_INDEX

public static final int VEL_VHDG_EXT_INDEX
See Also:
Constant Field Values

fieldNames

public java.util.Vector fieldNames

fieldUnits

public java.util.Vector fieldUnits
Constructor Detail

ControlLoopParser

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


ControlLoopParser

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

initialize

protected void initialize()

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.

Specified by:
processToken in class DelimitedStringParser
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.