public class Data extends SubMessage
SubMessage.Kind
Modifier and Type | Field and Description |
---|---|
static int |
KIND |
header
Constructor and Description |
---|
Data(EntityId readerId,
EntityId writerId,
long seqNum,
ParameterList inlineQosParams,
DataEncapsulation dEnc)
Constructor for creating a Data message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
dataFlag()
Indicates to the Reader that the dataPayload submessage element contains
the serialized value of the data-object.
|
ContentFilterInfo |
getContentFilterInfo()
Gets the ContentFilterInfo (PID 0x0055) inline qos parameter if present.
|
DataEncapsulation |
getDataEncapsulation()
Gets the DataEncapsulation.
|
short |
getExtraFlags() |
ParameterList |
getInlineQos()
Gets the inlineQos parameters if present.
|
EntityId |
getReaderId()
Identifies the RTPS Reader entity that is being informed of the change to
the data-object.
|
StatusInfo |
getStatusInfo()
Get the StatusInfo (PID 0x0071) inline QoS parameter if it is present.
|
EntityId |
getWriterId()
Identifies the RTPS Writer entity that made the change to the
data-object.
|
long |
getWriterSequenceNumber()
Uniquely identifies the change and the relative order for all changes
made by the RTPS Writer identified by the writerGuid.
|
boolean |
inlineQosFlag()
Indicates to the Reader the presence of a ParameterList containing QoS
parameters that should be used to interpret the message.
|
boolean |
keyFlag()
Indicates to the Reader that the dataPayload submessage element contains
the serialized value of the key of the data-object.
|
String |
toString() |
void |
writeTo(RTPSByteBuffer bb)
Writes this SubMessage into given RTPSByteBuffer.
|
getHeader, getKind
public static final int KIND
public Data(EntityId readerId, EntityId writerId, long seqNum, ParameterList inlineQosParams, DataEncapsulation dEnc)
readerId
- EntityId of the readerwriterId
- EntityId of the writerseqNum
- Sequence number of the Data submessageinlineQosParams
- Inline QoS parameters. May be null.dEnc
- If null, neither dataFlag or keyFlag is setpublic boolean inlineQosFlag()
public ParameterList getInlineQos()
inlineQosFlag()
public boolean dataFlag()
public boolean keyFlag()
public EntityId getReaderId()
public EntityId getWriterId()
public long getWriterSequenceNumber()
public short getExtraFlags()
public void writeTo(RTPSByteBuffer bb)
SubMessage
writeTo
in class SubMessage
bb
- RTPSByteBufferpublic DataEncapsulation getDataEncapsulation()
public StatusInfo getStatusInfo()
public ContentFilterInfo getContentFilterInfo()
public String toString()
toString
in class SubMessage
Copyright © 2016. All rights reserved.