OSFI-Java
3.9.2
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.
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 | ( | ) |
Check the existence of the files specified within a FILE parameter
Note: When the parameter value is a single file name, the boolean is in the first pos [0][0] When the parameter value is a vector of file names, the array is a single row one in horizontal [0][0:vector.size] Not valid for ARRAY type.
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 | ( | ) |
Gets the value of the parameter as a boolean.
Valid when there is only one value.
String esa.opensf.osfi.Parameter.getComplexType | ( | ) |
Gets the complex type of the parameter.
Returns an empty string if complex type is not set.
String esa.opensf.osfi.Parameter.getDescription | ( | ) |
Gets a brief description of the parameters.
List<Integer> esa.opensf.osfi.Parameter.getDims | ( | ) |
Gets a vector with the size of the dimensions.
Note that, as described in the E2E-ICD, matrix sizes are represented as [nCol, nRow].
double esa.opensf.osfi.Parameter.getDoubleValue | ( | ) |
Gets the value of the parameter as a floating point number.
Valid when there is only one value.
ParamType esa.opensf.osfi.Parameter.getElementType | ( | ) |
Returns the element data type of the parameter, as an enum key.
|
static |
Gets the value of the parameter as an array of characters.
Checks the file validity
fileName | String where file path name is stored |
String esa.opensf.osfi.Parameter.getFileValue | ( | ) |
Gets the value of the parameter as a file.
Valid when there is only one value.
int esa.opensf.osfi.Parameter.getIntValue | ( | ) |
Gets the value of the parameter as an integer type.
Valid when there is only one value.
String esa.opensf.osfi.Parameter.getLocalName | ( | ) |
Gets the local name of the parameter.
boolean [][] esa.opensf.osfi.Parameter.getMatrixBoolean | ( | ) |
Gets the value of the parameter as a Java array-of-arrays of boolean values.
Not valid for ARRAY type.
double [][] esa.opensf.osfi.Parameter.getMatrixDouble | ( | ) |
Gets the value of the parameter as a Java array-of-arrays of floating point values.
Not valid for ARRAY type.
String [][] esa.opensf.osfi.Parameter.getMatrixFile | ( | ) |
Gets the value of the parameter as a Java array-of-arrays of file values.
Not valid for ARRAY type.
int [][] esa.opensf.osfi.Parameter.getMatrixInt | ( | ) |
Gets the value of the parameter as a Java array-of-arrays of integer values.
Not valid for ARRAY type.
String [][] esa.opensf.osfi.Parameter.getMatrixString | ( | ) |
Gets the value of the parameter as a Java array-of-arrays of string values.
Not valid for ARRAY type.
TimeValue [][] esa.opensf.osfi.Parameter.getMatrixTime | ( | ) |
Gets the value of the parameter as a Java array-of-arrays of timecode values.
Not valid for ARRAY type.
String esa.opensf.osfi.Parameter.getMax | ( | ) |
Gets the maximum value of the parameters.
String esa.opensf.osfi.Parameter.getMin | ( | ) |
Gets the minimum value of the parameters.
String esa.opensf.osfi.Parameter.getName | ( | ) |
Gets the name of the parameter.
References esa.opensf.osfi.Parameter.getPath().
int esa.opensf.osfi.Parameter.getNdims | ( | ) |
Gets the number of dimensions.
String esa.opensf.osfi.Parameter.getOtherAttribute | ( | final String | key | ) |
Map<String, String> esa.opensf.osfi.Parameter.getOtherAttributes | ( | ) |
String esa.opensf.osfi.Parameter.getPath | ( | ) |
Gets the full path of the parameter.
String esa.opensf.osfi.Parameter.getRawValue | ( | ) |
Gets the unparsed parameter value, as a string.
References esa.opensf.osfi.Parameter.isArray(), and esa.opensf.osfi.ArrayNode< V, S extends ArrayNode< V, S >.toString().
ArrayNode.Raw esa.opensf.osfi.Parameter.getRootNode | ( | ) |
Specific method for Array types. Return the root node of the values tree. 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 | ( | ) |
Gets the value of the parameter as a string.
Valid when there is only one value.
TimeValue esa.opensf.osfi.Parameter.getTimeValue | ( | ) |
Gets the value of the parameter as a timecode.
Valid when there is only one value.
String esa.opensf.osfi.Parameter.getType | ( | ) |
Gets the element data type of the parameter, as a string.
String esa.opensf.osfi.Parameter.getUnits | ( | ) |
Gets the units of the parameters.
String esa.opensf.osfi.Parameter.getValue | ( | ) |
Gets the parameter value as a string.
References esa.opensf.osfi.Parameter.getRawValue().
boolean [] esa.opensf.osfi.Parameter.getVectorBoolean | ( | ) |
Gets the value of the parameter as a Java array of boolean values.
double [] esa.opensf.osfi.Parameter.getVectorDouble | ( | ) |
Gets the value of the parameter as a Java array of floating point values.
String [] esa.opensf.osfi.Parameter.getVectorFile | ( | ) |
Gets the value of the parameter as a Java array of files.
int [] esa.opensf.osfi.Parameter.getVectorInt | ( | ) |
Gets the value of the parameter as a Java array of integer values.
String [] esa.opensf.osfi.Parameter.getVectorString | ( | ) |
Gets the value of the parameter as a Java array of strings.
TimeValue [] esa.opensf.osfi.Parameter.getVectorTime | ( | ) |
Gets the value of the parameter as a Java array of timecode values.
boolean esa.opensf.osfi.Parameter.isArray | ( | ) |
Returns true if this parameter is of structured type ARRAY. Calling methods in the getVectorX family will "flatten" the array structure to 1D before parsing.
References esa.opensf.osfi.Parameter.ParamComplexType.ARRAY.
void esa.opensf.osfi.Parameter.setValue | ( | final String | value | ) |
Sets the parameter value as a string.
value | Parameter value. |
void esa.opensf.osfi.Parameter.write | ( | ) |
Prints out to standard output a textual description of the parameter.
References esa.opensf.osfi.Parameter.getRawValue(), and esa.opensf.osfi.Logger.info().