OSFI-Java
3.10.0
OpenSF Integration Library
|
Classes | |
enum | ParamComplexType |
enum | ParamType |
Public Member Functions | |
Parameter (String name, String description, String type, String value) | |
Parameter (String name, String description, ParamType type, ParamComplexType complexType, String value, String units, String min, String max, List< Integer > dims) | |
Parameter (String name, String description, ParamType type, ParamComplexType complexType, ArrayNode.Raw rootNode, String units, String min, String max, List< Integer > dims) | |
void | write () |
boolean | isArray () |
String | getValue () |
String | getRawValue () |
int | getIntValue () |
double | getDoubleValue () |
boolean | getBooleanValue () |
TimeValue | getTimeValue () |
String | getStringValue () |
String | getFileValue () |
int[] | getVectorInt () |
double[] | getVectorDouble () |
boolean[] | getVectorBoolean () |
TimeValue[] | getVectorTime () |
String[] | getVectorString () |
String[] | getVectorFile () |
int[][] | getMatrixInt () |
double[][] | getMatrixDouble () |
boolean[][] | getMatrixBoolean () |
TimeValue[][] | getMatrixTime () |
String[][] | getMatrixString () |
String[][] | getMatrixFile () |
ArrayNode.Raw | getRootNode () |
boolean[][] | fileExist () |
void | setValue (final String value) |
int | getNdims () |
List< Integer > | getDims () |
String | getName () |
String | getLocalName () |
String | getPath () |
String | getDescription () |
String | getUnits () |
String | getMax () |
String | getMin () |
String | getType () |
ParamType | getElementType () |
String | getComplexType () |
void | addOtherAttribute (final String key, final String val) |
Map< String, String > | getOtherAttributes () |
String | getOtherAttribute (final String key) |
Static Public Member Functions | |
static String | getFileFormattedValue (String fileName) |
Parameter.
Represents a model's parameter described in a configuration file.
esa.opensf.osfi.Parameter.Parameter | ( | String | name, |
String | description, | ||
String | type, | ||
String | value | ||
) |
Constructor for scalar values.
name | Full path of the parameter |
description | Optional description |
type | Unparsed form of the element type, as read from the XML. See ParamType. |
value | Unparsed form of the value, as read from the XML. |
esa.opensf.osfi.Parameter.Parameter | ( | String | name, |
String | description, | ||
ParamType | type, | ||
ParamComplexType | complexType, | ||
String | value, | ||
String | units, | ||
String | min, | ||
String | max, | ||
List< Integer > | dims | ||
) |
Constructor for non-array parameters.
name | Full path of the parameter |
description | Optional description |
type | Element data type. |
complexType | Structural type. Must not be ParamComplexType#ARRAY for this call. |
value | Unparsed form of the value, as read from the XML. |
units | Declared units of measurement, or empty. |
min | Declared minimum value (for types where it makes sense) in unparsed form |
max | Declared maximum value (for types where it makes sense) in unparsed form |
dims | Expected dimensions. Empty for a scalar, 1/2 elements for a vector/matrix resp. |
esa.opensf.osfi.Parameter.Parameter | ( | String | name, |
String | description, | ||
ParamType | type, | ||
ParamComplexType | complexType, | ||
ArrayNode.Raw | rootNode, | ||
String | units, | ||
String | min, | ||
String | max, | ||
List< Integer > | dims | ||
) |
Constructor for ARRAY parameters.
name | Full path of the parameter |
description | Optional description |
type | Element data type. |
complexType | Structural type. Must be ParamComplexType#ARRAY. |
rootNode | Tree structure containing the unparsed data. |
units | Declared units of measurement, or empty. |
min | Declared minimum value (for types where it makes sense) in unparsed form |
max | Declared maximum value (for types where it makes sense) in unparsed form |
dims | Expected dimensions. Empty for a scalar, 1/2 elements for a vector/matrix resp. |
References esa.opensf.osfi.Parameter.ParamComplexType.ARRAY.
void esa.opensf.osfi.Parameter.addOtherAttribute | ( | final String | key, |
final String | val | ||
) |
Set an the value of a non-standard parameter attribute.
key | attribute name |
val | attribute value |
boolean [][] esa.opensf.osfi.Parameter.fileExist | ( | ) |
Checks the existence of the files specified within a FILE parameter.
Not valid for ARRAY parameters.
References esa.opensf.osfi.Parameter.ParamComplexType.ARRAY, esa.opensf.osfi.Logger.error(), esa.opensf.osfi.Parameter.getFileValue(), esa.opensf.osfi.Parameter.getMatrixFile(), and esa.opensf.osfi.Parameter.getVectorFile().
boolean esa.opensf.osfi.Parameter.getBooleanValue | ( | ) |
String esa.opensf.osfi.Parameter.getComplexType | ( | ) |
String esa.opensf.osfi.Parameter.getDescription | ( | ) |
List<Integer> esa.opensf.osfi.Parameter.getDims | ( | ) |
Returns the envelope of the parameter dimensions. As described in the E2E-ICD, matrix sizes are represented as {@literal [nCol, nRow]}.
double esa.opensf.osfi.Parameter.getDoubleValue | ( | ) |
ParamType esa.opensf.osfi.Parameter.getElementType | ( | ) |
|
static |
Ensures that the argument does not contain invalid characters for a path. If it is relative, also resolves it according to the configured base directory.
fileName | Raw value of a single element of a FILE or FOLDER parameter. |
java.nio.file.InvalidPathException | if the path is not valid. |
String esa.opensf.osfi.Parameter.getFileValue | ( | ) |
int esa.opensf.osfi.Parameter.getIntValue | ( | ) |
String esa.opensf.osfi.Parameter.getLocalName | ( | ) |
boolean [][] esa.opensf.osfi.Parameter.getMatrixBoolean | ( | ) |
double [][] esa.opensf.osfi.Parameter.getMatrixDouble | ( | ) |
String [][] esa.opensf.osfi.Parameter.getMatrixFile | ( | ) |
int [][] esa.opensf.osfi.Parameter.getMatrixInt | ( | ) |
String [][] esa.opensf.osfi.Parameter.getMatrixString | ( | ) |
TimeValue [][] esa.opensf.osfi.Parameter.getMatrixTime | ( | ) |
String esa.opensf.osfi.Parameter.getMax | ( | ) |
String esa.opensf.osfi.Parameter.getMin | ( | ) |
String esa.opensf.osfi.Parameter.getName | ( | ) |
References esa.opensf.osfi.Parameter.getPath().
int esa.opensf.osfi.Parameter.getNdims | ( | ) |
String esa.opensf.osfi.Parameter.getOtherAttribute | ( | final String | key | ) |
key | attribute name |
Map<String, String> esa.opensf.osfi.Parameter.getOtherAttributes | ( | ) |
String esa.opensf.osfi.Parameter.getPath | ( | ) |
String esa.opensf.osfi.Parameter.getRawValue | ( | ) |
References esa.opensf.osfi.Parameter.isArray().
ArrayNode.Raw esa.opensf.osfi.Parameter.getRootNode | ( | ) |
Specific method for Array types. Returns a tree-like structure where each node consists of either some data elements or a list of subnodes. They can be parsed individually or in bulk (by depth-first flattening of the tree) into typed values.
References esa.opensf.osfi.Parameter.isArray().
String esa.opensf.osfi.Parameter.getStringValue | ( | ) |
TimeValue esa.opensf.osfi.Parameter.getTimeValue | ( | ) |
String esa.opensf.osfi.Parameter.getType | ( | ) |
Gets the element data type of the parameter, as a string.
String esa.opensf.osfi.Parameter.getUnits | ( | ) |
String esa.opensf.osfi.Parameter.getValue | ( | ) |
References esa.opensf.osfi.Parameter.getRawValue().
boolean [] esa.opensf.osfi.Parameter.getVectorBoolean | ( | ) |
double [] esa.opensf.osfi.Parameter.getVectorDouble | ( | ) |
String [] esa.opensf.osfi.Parameter.getVectorFile | ( | ) |
int [] esa.opensf.osfi.Parameter.getVectorInt | ( | ) |
String [] esa.opensf.osfi.Parameter.getVectorString | ( | ) |
TimeValue [] esa.opensf.osfi.Parameter.getVectorTime | ( | ) |
boolean esa.opensf.osfi.Parameter.isArray | ( | ) |
References esa.opensf.osfi.Parameter.ParamComplexType.ARRAY.
void esa.opensf.osfi.Parameter.setValue | ( | final String | value | ) |
Sets the parameter unparsed (raw) value. Not valid for ARRAY parameters.
value | Parameter value. |
void esa.opensf.osfi.Parameter.write | ( | ) |
Prints a textual description of the parameter to the OSFI log as an Info message.
References esa.opensf.osfi.Parameter.getRawValue(), and esa.opensf.osfi.Logger.info().