public class ValueArray extends Object
| Constructor and Description |
|---|
ValueArray(BitSet bitset,
int size) |
ValueArray(byte[][] r) |
ValueArray(double[] r) |
ValueArray(float[] r) |
ValueArray(String[] r) |
ValueArray(Yamcs.Value.Type type) |
ValueArray(Yamcs.Value.Type type,
int size) |
ValueArray(Yamcs.Value.Type type,
int[] r) |
ValueArray(Yamcs.Value.Type type,
long[] r) |
ValueArray(Yamcs.Value.Type type,
Object[] r) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getDoubleArray()
get the array as an double[].
|
float[] |
getFloatArray()
get the array as an float[].
|
int[] |
getIntArray()
get the array as an int[].
|
long[] |
getLongArray()
get the array as an long[].
|
Yamcs.Value.Type |
getType() |
Value |
getValue(int idx) |
static ValueArray |
merge(int[] src,
ValueArray... srcValueArray)
merges the value arrays srcValueArray into a new array based on idx.
|
void |
setValue(int idx,
boolean b) |
void |
setValue(int idx,
Value v) |
int |
size() |
public ValueArray(Yamcs.Value.Type type, int size)
public ValueArray(Yamcs.Value.Type type)
public ValueArray(Yamcs.Value.Type type, int[] r)
public ValueArray(Yamcs.Value.Type type, long[] r)
public ValueArray(double[] r)
public ValueArray(float[] r)
public ValueArray(byte[][] r)
public ValueArray(Yamcs.Value.Type type, Object[] r)
public ValueArray(BitSet bitset, int size)
public ValueArray(String[] r)
public void setValue(int idx,
boolean b)
public void setValue(int idx,
Value v)
public Value getValue(int idx)
public Yamcs.Value.Type getType()
public int[] getIntArray()
ClassCastException if the array's type is not one of Yamcs.Value.Type.UINT32 or Yamcs.Value.Type.SINT32public long[] getLongArray()
ClassCastException if the array's type is not one of Yamcs.Value.Type.UINT64, Yamcs.Value.Type.SINT64 or Yamcs.Value.Type.TIMESTAMPpublic float[] getFloatArray()
ClassCastException if the array is not of Yamcs.Value.Type.FLOAT typepublic double[] getDoubleArray()
ClassCastException if the array is not of Yamcs.Value.Type.DOUBLE typepublic int size()
public static ValueArray merge(int[] src, ValueArray... srcValueArray)
src - - an array indicating which from the srcValueArray is the source of the data for each indexsrcValueArray - the source elementsCopyright © 2018 Space Applications Services. All rights reserved.