Package org.yamcs.parameterarchive
Interface ValueSegment
-
- All Known Implementing Classes:
BinaryValueSegment,BooleanValueSegment,DoubleValueSegment,FloatValueSegment,IntValueSegment,LongValueSegment,StringValueSegment
public interface ValueSegment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(int pos, Value engValue)BaseSegmentconsolidate()ValueArraygetRange(int posStart, int posStop, boolean ascending)returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descendingValuegetValue(int index)returns Value at position indexintsize()
-
-
-
Method Detail
-
getValue
Value getValue(int index)
returns Value at position index- Parameters:
index-- Returns:
- the value at the index
-
add
void add(int pos, Value engValue)
-
consolidate
BaseSegment consolidate()
-
size
int size()
-
getRange
ValueArray getRange(int posStart, int posStop, boolean ascending)
returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descending- Parameters:
posStart-posStop-ascending-- Returns:
- an array containing the values in the specified range
-
-