RecordHandler

public class RecordHandler implements DataHandler<S>

Constructors

Link copied to clipboard
public void RecordHandler(Array<DataHandler<? extends Object>> varTypes)
public void RecordHandler(Map<String, Integer> variableIndex, Array<DataHandler<? extends Object>> varTypes)

Properties

Link copied to clipboard
public final static DataHandler<Boolean> BOOLEAN
A data handler for booleans.
Link copied to clipboard
public final static DataHandler<Integer> INTEGER
A data handler for integers.
Link copied to clipboard
public final static DataHandler<Double> REAL
A data handler for doubles.

Functions

Link copied to clipboard
public static SpatialTemporalSignal<MoonLightRecord> buildSpatioTemporalSignal(int size, RecordHandler handler, Array<double> time, Array<Array<Array<double>>> signal)
public static SpatialTemporalSignal<MoonLightRecord> buildSpatioTemporalSignal(int size, RecordHandler handler, Array<double> time, Array<Array<Array<String>>> signal)
Link copied to clipboard
public static Signal<MoonLightRecord> buildTemporalSignal(RecordHandler handler, Array<double> time, Array<Array<double>> signal)
public static Signal<MoonLightRecord> buildTemporalSignal(RecordHandler handler, Array<double> time, Array<Array<String>> signal)
Link copied to clipboard
public boolean checkDoubleValue(double value)
Check if value is a valid double representation for handled data type.
Link copied to clipboard
public boolean checkNumberOfVariables(int size)
Link copied to clipboard
public boolean checkObjectValue(Object o)
Check if the object o is a valid data type.
Link copied to clipboard
public boolean checkStringValue(String value)
Check if value is a valid string representation for handled data type.
Link copied to clipboard
public boolean checkValueFromString(String v, String value)
Link copied to clipboard
public boolean checkValuesFromStrings(Array<String> values)
public boolean checkValuesFromStrings(Array<String> values, int from, int to)
Link copied to clipboard
public boolean checkVariableType(String v, String type)
Link copied to clipboard
public static RecordHandler createFactory(Array<Pair<String, DataHandler<? extends Object>>> variables)
Link copied to clipboard
public double doubleOf(Object record)
Return a double representation of a data item s.
Link copied to clipboard
public MoonLightRecord fromDouble(double value)
Convert a double value into the data item.
Link copied to clipboard
public MoonLightRecord fromDoubleArray(Array<double> values)
public MoonLightRecord fromDoubleArray(Array<double> values, int from, int to)
public MoonLightRecord fromDoubleArray(Array<Double> values, int from, int to)
Link copied to clipboard
Cast an object o in the handled data type S.
Link copied to clipboard
Link copied to clipboard
Parse a data item from a String.
Link copied to clipboard
public MoonLightRecord fromStringArray(Array<String> values, int from, int to)
Link copied to clipboard
public String getTypeCode(String name)
Link copied to clipboard
Returns the handled data type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public boolean isAVariable(String name)
Link copied to clipboard
public int size()
Link copied to clipboard
Return a string representation of a data item s.