|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.DevicePacket
org.mbari.siam.tests.state.NewMetadataPacket
public class NewMetadataPacket
MetadataPacket contains information relating to "state" of the generating device.
| Field Summary | |
|---|---|
protected byte[] |
_deviceStatus
Status string generated by device. |
protected ServiceAttributes |
_serviceAttributes
Dynamic service state attributes. |
protected byte[] |
_staticDoc
Static documentation (e.g. |
static int |
AUTO_GENERATED
Indicates that packet was generated autonomously (i.e. |
| Fields inherited from class org.mbari.siam.distributed.DevicePacket |
|---|
ALL_TYPES, DEVICEMESSAGE_FLAG, HEADER_BYTES, METADATA_FLAG, SENSORDATA_FLAG, SUMMARY_FLAG |
| Constructor Summary | |
|---|---|
NewMetadataPacket(long sourceID,
byte[] cause)
|
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Get status bytes. |
byte[] |
getCause()
Indication of what generated the MetadataPacket |
void |
setDeviceStatus(byte[] deviceStatus)
Set device status. |
void |
setServiceAttributes(ServiceAttributes serviceAttributes)
Set service state. |
void |
setStaticDoc(byte[] staticDoc)
Set static doc. |
java.lang.String |
toString()
Return String representation. |
| Methods inherited from class org.mbari.siam.distributed.DevicePacket |
|---|
convertToAscii, getParentId, getRecordType, isPrintable, metadataRef, sequenceNo, setMetadataRef, setParentId, setRecordType, setSequenceNo, setSystemTime, sourceID, systemTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int AUTO_GENERATED
protected byte[] _staticDoc
protected byte[] _deviceStatus
protected ServiceAttributes _serviceAttributes
| Constructor Detail |
|---|
public NewMetadataPacket(long sourceID,
byte[] cause)
sourceID - unique identifier of source devicecause - what triggered metadata packet creation| Method Detail |
|---|
public void setStaticDoc(byte[] staticDoc)
staticDoc - static documentation bytespublic void setServiceAttributes(ServiceAttributes serviceAttributes)
serviceAttributes - service state objectpublic void setDeviceStatus(byte[] deviceStatus)
deviceStatus - status string read from devicepublic byte[] getCause()
public byte[] getBytes()
public java.lang.String toString()
toString in class DevicePacket
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||