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 void
add(int pos, Value engValue)
BaseSegment
consolidate()
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 descendingValue
getValue(int index)
returns Value at position indexint
size()
-
-
-
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
-
-