Class FloatValueSegment

java.lang.Object
org.yamcs.parameterarchive.BaseSegment
org.yamcs.parameterarchive.FloatValueSegment
All Implemented Interfaces:
ValueSegment

public class FloatValueSegment extends BaseSegment implements ValueSegment
  • Method Details

    • insert

      public void insert(int pos, Value value)
      Description copied from interface: ValueSegment
      Insert data at position pos. The data at the subsequent positions is shifted to the right.
      Specified by:
      insert in interface ValueSegment
    • add

      public void add(Value value)
      Description copied from interface: ValueSegment
      Add data at the end of the segment.
      Specified by:
      add in interface ValueSegment
    • writeTo

      public void writeTo(ByteBuffer bb)
      Specified by:
      writeTo in class BaseSegment
    • parseFrom

      public static FloatValueSegment parseFrom(ByteBuffer bb) throws DecodingException
      Throws:
      DecodingException
    • getValue

      public Value getValue(int index)
      Description copied from interface: ValueSegment
      returns Value at position index
      Specified by:
      getValue in interface ValueSegment
      Returns:
      the value at the index
    • getMaxSerializedSize

      public int getMaxSerializedSize()
      Specified by:
      getMaxSerializedSize in class BaseSegment
      Returns:
      a high approximation for the serialized size in order to allocate a ByteBuffer big enough
    • getRange

      public ValueArray getRange(int posStart, int posStop, boolean ascending)
      Description copied from interface: ValueSegment
      returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descending
      Specified by:
      getRange in interface ValueSegment
      Returns:
      an array containing the values in the specified range
    • size

      public int size()
      Specified by:
      size in interface ValueSegment
      Specified by:
      size in class BaseSegment
    • toString

      public String toString()
      Overrides:
      toString in class Object