org.mbari.puck
Class Puck.Datasheet

java.lang.Object
  extended by org.mbari.puck.Puck.Datasheet
Enclosing class:
Puck

public static class Puck.Datasheet
extends java.lang.Object

Instrument data sheet associated with PUCK device.


Field Summary
static int _SIZE
          instrument datasheet size in bytes
 
Constructor Summary
Puck.Datasheet(byte[] datasheet_bytes)
          create an instrument datasheet using a byte array
Puck.Datasheet(int versionNumber)
          create an uninitialize instrument datasheet
 
Method Summary
 byte[] getBytes()
          return the instrument datasheet bytes
 long getManufacturerId()
          Return manufacturer ID
 int getManufacturerModel()
          Return manufacturer model
 long getManufacturerSerialNo()
           
 int getManufacturerVersion()
          Return manufacturer version
 java.lang.String getName()
           
 byte[] getNameBytes()
           
 UUID getUUID()
          get the instrument datasheet UUID
 int getVersion()
          Return PUCK protocol version supported by this datasheet.
 void setManufacturerId(long man_id)
           
 void setManufacturerModel(int man_model)
           
 void setManufacturerSerialNo(long man_ser)
           
 void setManufacturerVersion(int man_vers)
           
 void setName(java.lang.String name)
           
 void setNameBytes(byte[] name_bytes)
           
 void setUUID(UUID id)
           
 void setVersion(int version)
           
 int size()
          Return size (bytes) of this datasheet.
 java.lang.String toString()
          Return string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_SIZE

public static final int _SIZE
instrument datasheet size in bytes

See Also:
Constant Field Values
Constructor Detail

Puck.Datasheet

public Puck.Datasheet(byte[] datasheet_bytes)
create an instrument datasheet using a byte array


Puck.Datasheet

public Puck.Datasheet(int versionNumber)
create an uninitialize instrument datasheet

Method Detail

toString

public java.lang.String toString()
Return string representation

Overrides:
toString in class java.lang.Object

getBytes

public byte[] getBytes()
return the instrument datasheet bytes


getUUID

public UUID getUUID()
get the instrument datasheet UUID


getVersion

public int getVersion()
Return PUCK protocol version supported by this datasheet.


size

public int size()
Return size (bytes) of this datasheet.


getManufacturerId

public long getManufacturerId()
Return manufacturer ID


getManufacturerModel

public int getManufacturerModel()
Return manufacturer model


getManufacturerVersion

public int getManufacturerVersion()
Return manufacturer version


getManufacturerSerialNo

public long getManufacturerSerialNo()

getName

public java.lang.String getName()

getNameBytes

public byte[] getNameBytes()

setUUID

public void setUUID(UUID id)

setVersion

public void setVersion(int version)

setManufacturerId

public void setManufacturerId(long man_id)

setManufacturerModel

public void setManufacturerModel(int man_model)

setManufacturerVersion

public void setManufacturerVersion(int man_vers)

setManufacturerSerialNo

public void setManufacturerSerialNo(long man_ser)

setName

public void setName(java.lang.String name)

setNameBytes

public void setNameBytes(byte[] name_bytes)


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.