org.mbari.siam.foce.devices.digital
Class DigitalPacketParser

java.lang.Object
  extended by org.mbari.siam.distributed.PacketParser
      extended by org.mbari.siam.foce.devices.digital.DigitalPacketParser
All Implemented Interfaces:
java.io.Serializable

public class DigitalPacketParser
extends PacketParser
implements java.io.Serializable

Parses packets from DigitalInputService

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mbari.siam.distributed.PacketParser
PacketParser.Field, PacketParser.Record
 
Field Summary
protected  int _numChans
           
protected  java.lang.String[] _parseNames
           
protected  java.lang.String[] _parseUnits
           
 
Fields inherited from class org.mbari.siam.distributed.PacketParser
_registryName
 
Constructor Summary
DigitalPacketParser(int numChans, java.lang.String registryName, java.lang.String[] parseNames, java.lang.String[] parseUnits)
           
 
Method Summary
 PacketParser.Field[] parseFields(DevicePacket packet)
          Return fields parsed from DevicePacket.
 
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

_numChans

protected int _numChans

_parseNames

protected java.lang.String[] _parseNames

_parseUnits

protected java.lang.String[] _parseUnits
Constructor Detail

DigitalPacketParser

public DigitalPacketParser(int numChans,
                           java.lang.String registryName,
                           java.lang.String[] parseNames,
                           java.lang.String[] parseUnits)
Method Detail

parseFields

public PacketParser.Field[] parseFields(DevicePacket packet)
                                 throws NotSupportedException,
                                        java.text.ParseException
Return fields parsed from DevicePacket.

Specified by:
parseFields in class PacketParser
Throws:
NotSupportedException
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.