![JAR search and dependency download from the Maven repository](/logo.png)
net.sf.jrtps.message.parameter.ParticipantManualLivelinessCount Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jrtps Show documentation
Show all versions of jrtps Show documentation
jRTPS - An implementation of RTPS protocol by OMG
package net.sf.jrtps.message.parameter;
import net.sf.jrtps.transport.RTPSByteBuffer;
public class ParticipantManualLivelinessCount extends Parameter {
private int count;
/**
* Constructs a new ParticipantManualLivelinessCount
*/
ParticipantManualLivelinessCount() {
super(ParameterEnum.PID_PARTICIPANT_MANUAL_LIVELINESS_COUNT);
}
@Override
public void read(RTPSByteBuffer bb, int length) {
this.count = bb.read_long();
}
@Override
public void writeTo(RTPSByteBuffer buffer) {
buffer.write_long(count);
}
/**
* Gets the count value.
* @return count
*/
public int getCount() {
return count;
}
public String toString() {
return super.toString() + "(" + count + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy