|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.PuckHeader
public class PuckHeader
Definition of puck header @author Mike Risi
| Field Summary | |
|---|---|
static int |
_ORG_ID
header organization ID |
static int |
_SIZE
header size in bytes |
static int |
_TYPE_ID
header type/version ID |
| Constructor Summary | |
|---|---|
PuckHeader()
create an empty puck header |
|
PuckHeader(byte[] headerBytes)
create a puck header using a byte array |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
get the puck header bytes |
long |
getChecksum()
get the checksum for the puck payload |
int |
getCurrentLimit()
get the current limit of device attached to the puck |
long |
getIsiId()
get the device ISI ID |
int |
getOrgId()
get the organization ID |
int |
getPayloadEnd()
get the end address of the puck payload in bytes |
int |
getPayloadSize()
get the size of the of the payload in bytes |
int |
getPayloadStart()
get the start address of the puck payload in bytes |
java.lang.String |
getServiceName()
get the driver name for the device |
int |
getTypeId()
get the header type/version ID |
UUID |
getUUID()
get the UUID for the puck |
void |
setChecksum(long checkSum)
set the checksum for the puck payload |
void |
setCurrentLimit(int limit)
set the devices curretn limit |
void |
setIsiId(long id)
set the ISI ID for the device |
void |
setPayloadSize(int size)
set payload size for the device service code |
void |
setServiceName(java.lang.String name)
set the driver name for the device |
void |
setServiceProperties(java.util.Properties properties)
Attempts to set the puck header isiId, serviceName, and currentLimit from a ServiceProperties object. |
void |
setUUID(UUID uuid)
set the UUID for this puck wite |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int _ORG_ID
public static final int _TYPE_ID
public static final int _SIZE
| Constructor Detail |
|---|
public PuckHeader(byte[] headerBytes)
public PuckHeader()
| Method Detail |
|---|
public byte[] getBytes()
public int getOrgId()
public int getTypeId()
public UUID getUUID()
public int getPayloadStart()
public int getPayloadEnd()
public int getPayloadSize()
public long getChecksum()
public java.lang.String getServiceName()
public long getIsiId()
public int getCurrentLimit()
public void setUUID(UUID uuid)
public void setPayloadSize(int size)
public void setChecksum(long checkSum)
public void setServiceName(java.lang.String name)
public void setIsiId(long id)
public void setCurrentLimit(int limit)
public void setServiceProperties(java.util.Properties properties)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||