All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.jrtps.message.parameter.ParticipantManualLivelinessCount Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
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