public abstract class Parameter extends Object
Modifier | Constructor and Description |
---|---|
protected |
Parameter(ParameterId id)
Constructs Parameter with null bytes.
|
protected |
Parameter(ParameterId id,
byte[] bytes)
Constructs Parameter with given bytes.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Parameter value
|
ParameterId |
getParameterId()
Get the parameterId of this parameter. see 9.6.2.2.2 ParameterID values
|
abstract void |
read(RTPSByteBuffer bb,
int length) |
protected void |
readBytes(RTPSByteBuffer bb,
int length)
This method can be used by implementing classes to read bytes of this
parameter to byte array.
|
String |
toString() |
protected void |
writeBytes(RTPSByteBuffer bb)
This method can be used by implementing classes to write bytes of this
parameter to RTPSByteBuffer.
|
abstract void |
writeTo(RTPSByteBuffer bb)
Writes this Parameter into given RTPSByteBuffer
|
protected Parameter(ParameterId id)
id
- ParameterIdread(RTPSByteBuffer, int)
protected Parameter(ParameterId id, byte[] bytes)
id
- ParameterIdbytes
- byte array of Parameterpublic ParameterId getParameterId()
public byte[] getBytes()
public abstract void read(RTPSByteBuffer bb, int length)
protected final void readBytes(RTPSByteBuffer bb, int length)
bb
- RTPSByteBuffer, that is usedlength
- number of bytesprotected final void writeBytes(RTPSByteBuffer bb)
bb
- Writes bytes into this RTPSByteBufferpublic abstract void writeTo(RTPSByteBuffer bb)
bb
- RTPSByteBufferCopyright © 2016. All rights reserved.