org.ros.internal.message
Class MessageImpl
java.lang.Object
org.ros.internal.message.MessageImpl
- All Implemented Interfaces:
- Message, RawMessage
public class MessageImpl
- extends java.lang.Object
- implements RawMessage
Method Summary |
boolean |
equals(java.lang.Object obj)
|
boolean |
getBool(java.lang.String name)
|
java.util.List<java.lang.Boolean> |
getBoolList(java.lang.String name)
|
byte |
getByte(java.lang.String name)
|
java.util.List<java.lang.Byte> |
getByteList(java.lang.String name)
|
short |
getChar(java.lang.String name)
|
java.util.List<java.lang.Short> |
getCharList(java.lang.String name)
|
java.lang.String |
getDefinition()
|
Duration |
getDuration(java.lang.String name)
|
java.util.List<Duration> |
getDurationList(java.lang.String name)
|
java.util.List<Field> |
getFields()
|
float |
getFloat32(java.lang.String name)
|
java.util.List<java.lang.Float> |
getFloat32List(java.lang.String name)
|
double |
getFloat64(java.lang.String name)
|
java.util.List<java.lang.Double> |
getFloat64List(java.lang.String name)
|
MessageIdentifier |
getIdentifier()
|
java.lang.Object |
getInstance()
|
short |
getInt16(java.lang.String name)
|
java.util.List<java.lang.Short> |
getInt16List(java.lang.String name)
|
int |
getInt32(java.lang.String name)
|
java.util.List<java.lang.Integer> |
getInt32List(java.lang.String name)
|
long |
getInt64(java.lang.String name)
|
java.util.List<java.lang.Long> |
getInt64List(java.lang.String name)
|
byte |
getInt8(java.lang.String name)
|
java.util.List<java.lang.Byte> |
getInt8List(java.lang.String name)
|
|
getMessage(java.lang.String name)
|
<T extends Message>
java.util.List<T> |
|
getMessageList(java.lang.String name)
|
java.lang.String |
getName()
|
java.lang.String |
getPackage()
|
int |
getSerializedSize()
|
java.lang.String |
getString(java.lang.String name)
|
java.util.List<java.lang.String> |
getStringList(java.lang.String name)
|
Time |
getTime(java.lang.String name)
|
java.util.List<Time> |
getTimeList(java.lang.String name)
|
java.lang.String |
getType()
|
int |
getUInt16(java.lang.String name)
|
java.util.List<java.lang.Integer> |
getUint16List(java.lang.String name)
|
long |
getUInt32(java.lang.String name)
|
java.util.List<java.lang.Long> |
getUint32List(java.lang.String name)
|
long |
getUInt64(java.lang.String name)
|
java.util.List<java.lang.Long> |
getUint64List(java.lang.String name)
|
short |
getUInt8(java.lang.String name)
|
java.util.List<java.lang.Short> |
getUint8List(java.lang.String name)
|
int |
hashCode()
|
java.nio.ByteBuffer |
serialize()
|
void |
setBool(java.lang.String name,
boolean value)
|
void |
setBoolList(java.lang.String name,
java.util.List<java.lang.Boolean> value)
|
void |
setByte(java.lang.String name,
byte value)
|
void |
setByteList(java.lang.String name,
java.util.List<java.lang.Byte> value)
|
void |
setChar(java.lang.String name,
short value)
|
void |
setCharList(java.lang.String name,
java.util.List<java.lang.Short> value)
|
void |
setDuration(java.lang.String name,
Duration value)
|
void |
setDurationList(java.lang.String name,
java.util.List<Duration> value)
|
void |
setFloat32(java.lang.String name,
float value)
|
void |
setFloat32List(java.lang.String name,
java.util.List<java.lang.Float> value)
|
void |
setFloat64(java.lang.String name,
double value)
|
void |
setFloat64List(java.lang.String name,
java.util.List<java.lang.Double> value)
|
void |
setInt16(java.lang.String name,
short value)
|
void |
setInt16List(java.lang.String name,
java.util.List<java.lang.Short> value)
|
void |
setInt32(java.lang.String name,
int value)
|
void |
setInt32List(java.lang.String name,
java.util.List<java.lang.Integer> value)
|
void |
setInt64(java.lang.String name,
long value)
|
void |
setInt64List(java.lang.String name,
java.util.List<java.lang.Long> value)
|
void |
setInt8(java.lang.String name,
byte value)
|
void |
setInt8List(java.lang.String name,
java.util.List<java.lang.Byte> value)
|
void |
setMessage(java.lang.String name,
RawMessage value)
|
void |
setMessageList(java.lang.String name,
java.util.List<Message> value)
|
void |
setString(java.lang.String name,
java.lang.String value)
|
void |
setStringList(java.lang.String name,
java.util.List<java.lang.String> value)
|
void |
setTime(java.lang.String name,
Time value)
|
void |
setTimeList(java.lang.String name,
java.util.List<Time> value)
|
void |
setUInt16(java.lang.String name,
int value)
|
void |
setUint16List(java.lang.String name,
java.util.List<java.lang.Integer> value)
|
void |
setUInt32(java.lang.String name,
long value)
|
void |
setUint32List(java.lang.String name,
java.util.List<java.lang.Long> value)
|
void |
setUInt64(java.lang.String name,
long value)
|
void |
setUint64List(java.lang.String name,
java.util.List<java.lang.Long> value)
|
void |
setUInt8(java.lang.String name,
short value)
|
void |
setUint8List(java.lang.String name,
java.util.List<java.lang.Short> value)
|
RawMessage |
toRawMessage()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MessageImpl
public MessageImpl(MessageContext context)
toRawMessage
public RawMessage toRawMessage()
- Specified by:
toRawMessage
in interface Message
- Returns:
- returns this
Message
as a RawMessage
getIdentifier
public MessageIdentifier getIdentifier()
- Specified by:
getIdentifier
in interface RawMessage
getType
public java.lang.String getType()
- Specified by:
getType
in interface RawMessage
getPackage
public java.lang.String getPackage()
- Specified by:
getPackage
in interface RawMessage
getName
public java.lang.String getName()
- Specified by:
getName
in interface RawMessage
getDefinition
public java.lang.String getDefinition()
- Specified by:
getDefinition
in interface RawMessage
getFields
public java.util.List<Field> getFields()
- Specified by:
getFields
in interface RawMessage
getBool
public boolean getBool(java.lang.String name)
- Specified by:
getBool
in interface RawMessage
getBoolList
public java.util.List<java.lang.Boolean> getBoolList(java.lang.String name)
- Specified by:
getBoolList
in interface RawMessage
getDuration
public Duration getDuration(java.lang.String name)
- Specified by:
getDuration
in interface RawMessage
getDurationList
public java.util.List<Duration> getDurationList(java.lang.String name)
- Specified by:
getDurationList
in interface RawMessage
getFloat32
public float getFloat32(java.lang.String name)
- Specified by:
getFloat32
in interface RawMessage
getFloat32List
public java.util.List<java.lang.Float> getFloat32List(java.lang.String name)
- Specified by:
getFloat32List
in interface RawMessage
getFloat64
public double getFloat64(java.lang.String name)
- Specified by:
getFloat64
in interface RawMessage
getFloat64List
public java.util.List<java.lang.Double> getFloat64List(java.lang.String name)
- Specified by:
getFloat64List
in interface RawMessage
getInt16
public short getInt16(java.lang.String name)
- Specified by:
getInt16
in interface RawMessage
getInt16List
public java.util.List<java.lang.Short> getInt16List(java.lang.String name)
- Specified by:
getInt16List
in interface RawMessage
getInt32
public int getInt32(java.lang.String name)
- Specified by:
getInt32
in interface RawMessage
getInt32List
public java.util.List<java.lang.Integer> getInt32List(java.lang.String name)
- Specified by:
getInt32List
in interface RawMessage
getInt64
public long getInt64(java.lang.String name)
- Specified by:
getInt64
in interface RawMessage
getInt64List
public java.util.List<java.lang.Long> getInt64List(java.lang.String name)
- Specified by:
getInt64List
in interface RawMessage
getInt8
public byte getInt8(java.lang.String name)
- Specified by:
getInt8
in interface RawMessage
getInt8List
public java.util.List<java.lang.Byte> getInt8List(java.lang.String name)
- Specified by:
getInt8List
in interface RawMessage
getMessage
public <T extends RawMessage> T getMessage(java.lang.String name)
- Specified by:
getMessage
in interface RawMessage
getMessageList
public <T extends Message> java.util.List<T> getMessageList(java.lang.String name)
- Specified by:
getMessageList
in interface RawMessage
getString
public java.lang.String getString(java.lang.String name)
- Specified by:
getString
in interface RawMessage
getStringList
public java.util.List<java.lang.String> getStringList(java.lang.String name)
- Specified by:
getStringList
in interface RawMessage
getTime
public Time getTime(java.lang.String name)
- Specified by:
getTime
in interface RawMessage
getTimeList
public java.util.List<Time> getTimeList(java.lang.String name)
- Specified by:
getTimeList
in interface RawMessage
getUInt16
public int getUInt16(java.lang.String name)
- Specified by:
getUInt16
in interface RawMessage
getUint16List
public java.util.List<java.lang.Integer> getUint16List(java.lang.String name)
- Specified by:
getUint16List
in interface RawMessage
getUInt32
public long getUInt32(java.lang.String name)
- Specified by:
getUInt32
in interface RawMessage
getUint32List
public java.util.List<java.lang.Long> getUint32List(java.lang.String name)
- Specified by:
getUint32List
in interface RawMessage
getUInt64
public long getUInt64(java.lang.String name)
- Specified by:
getUInt64
in interface RawMessage
getUint64List
public java.util.List<java.lang.Long> getUint64List(java.lang.String name)
- Specified by:
getUint64List
in interface RawMessage
getUInt8
public short getUInt8(java.lang.String name)
- Specified by:
getUInt8
in interface RawMessage
getUint8List
public java.util.List<java.lang.Short> getUint8List(java.lang.String name)
- Specified by:
getUint8List
in interface RawMessage
setBool
public void setBool(java.lang.String name,
boolean value)
- Specified by:
setBool
in interface RawMessage
setBoolList
public void setBoolList(java.lang.String name,
java.util.List<java.lang.Boolean> value)
- Specified by:
setBoolList
in interface RawMessage
setDurationList
public void setDurationList(java.lang.String name,
java.util.List<Duration> value)
- Specified by:
setDurationList
in interface RawMessage
setDuration
public void setDuration(java.lang.String name,
Duration value)
- Specified by:
setDuration
in interface RawMessage
setFloat32
public void setFloat32(java.lang.String name,
float value)
- Specified by:
setFloat32
in interface RawMessage
setFloat32List
public void setFloat32List(java.lang.String name,
java.util.List<java.lang.Float> value)
- Specified by:
setFloat32List
in interface RawMessage
setFloat64
public void setFloat64(java.lang.String name,
double value)
- Specified by:
setFloat64
in interface RawMessage
setFloat64List
public void setFloat64List(java.lang.String name,
java.util.List<java.lang.Double> value)
- Specified by:
setFloat64List
in interface RawMessage
setInt16
public void setInt16(java.lang.String name,
short value)
- Specified by:
setInt16
in interface RawMessage
setInt16List
public void setInt16List(java.lang.String name,
java.util.List<java.lang.Short> value)
- Specified by:
setInt16List
in interface RawMessage
setInt32
public void setInt32(java.lang.String name,
int value)
- Specified by:
setInt32
in interface RawMessage
setInt32List
public void setInt32List(java.lang.String name,
java.util.List<java.lang.Integer> value)
- Specified by:
setInt32List
in interface RawMessage
setInt64
public void setInt64(java.lang.String name,
long value)
- Specified by:
setInt64
in interface RawMessage
setInt64List
public void setInt64List(java.lang.String name,
java.util.List<java.lang.Long> value)
- Specified by:
setInt64List
in interface RawMessage
setInt8
public void setInt8(java.lang.String name,
byte value)
- Specified by:
setInt8
in interface RawMessage
setInt8List
public void setInt8List(java.lang.String name,
java.util.List<java.lang.Byte> value)
- Specified by:
setInt8List
in interface RawMessage
setMessage
public void setMessage(java.lang.String name,
RawMessage value)
- Specified by:
setMessage
in interface RawMessage
setMessageList
public void setMessageList(java.lang.String name,
java.util.List<Message> value)
- Specified by:
setMessageList
in interface RawMessage
setString
public void setString(java.lang.String name,
java.lang.String value)
- Specified by:
setString
in interface RawMessage
setStringList
public void setStringList(java.lang.String name,
java.util.List<java.lang.String> value)
- Specified by:
setStringList
in interface RawMessage
setTime
public void setTime(java.lang.String name,
Time value)
- Specified by:
setTime
in interface RawMessage
setTimeList
public void setTimeList(java.lang.String name,
java.util.List<Time> value)
- Specified by:
setTimeList
in interface RawMessage
setUInt16
public void setUInt16(java.lang.String name,
int value)
- Specified by:
setUInt16
in interface RawMessage
setUint16List
public void setUint16List(java.lang.String name,
java.util.List<java.lang.Integer> value)
- Specified by:
setUint16List
in interface RawMessage
setUInt32
public void setUInt32(java.lang.String name,
long value)
- Specified by:
setUInt32
in interface RawMessage
setUint32List
public void setUint32List(java.lang.String name,
java.util.List<java.lang.Long> value)
- Specified by:
setUint32List
in interface RawMessage
setUInt64
public void setUInt64(java.lang.String name,
long value)
- Specified by:
setUInt64
in interface RawMessage
setUint64List
public void setUint64List(java.lang.String name,
java.util.List<java.lang.Long> value)
- Specified by:
setUint64List
in interface RawMessage
setUInt8
public void setUInt8(java.lang.String name,
short value)
- Specified by:
setUInt8
in interface RawMessage
setUint8List
public void setUint8List(java.lang.String name,
java.util.List<java.lang.Short> value)
- Specified by:
setUint8List
in interface RawMessage
getByte
public byte getByte(java.lang.String name)
- Specified by:
getByte
in interface RawMessage
getChar
public short getChar(java.lang.String name)
- Specified by:
getChar
in interface RawMessage
setByte
public void setByte(java.lang.String name,
byte value)
- Specified by:
setByte
in interface RawMessage
setChar
public void setChar(java.lang.String name,
short value)
- Specified by:
setChar
in interface RawMessage
setByteList
public void setByteList(java.lang.String name,
java.util.List<java.lang.Byte> value)
- Specified by:
setByteList
in interface RawMessage
setCharList
public void setCharList(java.lang.String name,
java.util.List<java.lang.Short> value)
- Specified by:
setCharList
in interface RawMessage
getByteList
public java.util.List<java.lang.Byte> getByteList(java.lang.String name)
- Specified by:
getByteList
in interface RawMessage
getCharList
public java.util.List<java.lang.Short> getCharList(java.lang.String name)
- Specified by:
getCharList
in interface RawMessage
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interface RawMessage
serialize
public java.nio.ByteBuffer serialize()
- Specified by:
serialize
in interface RawMessage
getInstance
public java.lang.Object getInstance()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object