org.mbari.siam.foce.devices.elmo.thruster
Class ElmoPacketParser

java.lang.Object
  extended by org.mbari.siam.distributed.PacketParser
      extended by org.mbari.siam.foce.devices.elmo.thruster.ElmoPacketParser
All Implemented Interfaces:
java.io.Serializable

public class ElmoPacketParser
extends PacketParser

Parses SIAM data packets

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mbari.siam.distributed.PacketParser
PacketParser.Field, PacketParser.Record
 
Field Summary
 
Fields inherited from class org.mbari.siam.distributed.PacketParser
_registryName
 
Constructor Summary
ElmoPacketParser()
           
ElmoPacketParser(java.lang.String registryName)
           
 
Method Summary
static java.lang.String getFailureString(long failure)
           
static java.lang.String getFailureString(java.lang.Long failure)
          Format the Elmo status register bit field as a (human readable) String
static java.lang.String getStatusString(int status)
           
static java.lang.String getStatusString(java.lang.Integer status)
          Format the Elmo status register bit field as a (human readable) String
 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
 

Constructor Detail

ElmoPacketParser

public ElmoPacketParser()

ElmoPacketParser

public ElmoPacketParser(java.lang.String registryName)
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

getStatusString

public static java.lang.String getStatusString(java.lang.Integer status)
Format the Elmo status register bit field as a (human readable) String


getStatusString

public static java.lang.String getStatusString(int status)

getFailureString

public static java.lang.String getFailureString(java.lang.Long failure)
Format the Elmo status register bit field as a (human readable) String


getFailureString

public static java.lang.String getFailureString(long failure)


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.