public class Header extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_FRAME_ID
The name of the frame ID field for the message.
|
static String |
FIELD_SEQ
The name of the sequence field for the message.
|
static String |
FIELD_STAMP
The name of the timestamp field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
Header()
Create a new Header with all empty values.
|
Header(int seq,
Time stamp,
String frameID)
Create a new Header with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
Header |
clone()
Create a clone of this Header.
|
static Header |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new Header based on the given JSON object.
|
static Header |
fromJsonString(String jsonString)
Create a new Header based on the given JSON string.
|
static Header |
fromMessage(Message m)
Create a new Header based on the given Message.
|
String |
getFrameID()
Get the frame ID value of this header.
|
int |
getSeq()
Get the sequence value of this header which should be treated as an
unsigned 32-bit integer.
|
Time |
getStamp()
Get the timestamp value of this header.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_SEQ
public static final String FIELD_STAMP
public static final String FIELD_FRAME_ID
public static final String TYPE
public int getSeq()
public Time getStamp()
public String getFrameID()
public static Header fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static Header fromMessage(Message m)
m - The Message to parse.public static Header fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.