public final class Parameter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Parameter.ParamComplexType
Represents the type of a structured parameter.
|
static class |
Parameter.ParamType
Represents the element type of a Parameter object.
|
Constructor and Description |
---|
Parameter(java.lang.String name,
java.lang.String description,
Parameter.ParamType type,
Parameter.ParamComplexType complexType,
ArrayNode.Raw rootNode,
java.lang.String units,
java.lang.String min,
java.lang.String max,
java.util.List<java.lang.Integer> dims) |
Parameter(java.lang.String name,
java.lang.String description,
Parameter.ParamType type,
Parameter.ParamComplexType complexType,
java.lang.String value,
java.lang.String units,
java.lang.String min,
java.lang.String max,
java.util.List<java.lang.Integer> dims) |
Parameter(java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
addOtherAttribute(java.lang.String key,
java.lang.String val)
Set an the value of a non-standard parameter attribute.
|
boolean[][] |
fileExist()
Check the existence of the files specified within a FILE parameter
|
boolean |
getBooleanValue()
Gets the value of the parameter as a boolean.
|
java.lang.String |
getComplexType()
Gets the complex type of the parameter.
|
java.lang.String |
getDescription()
Gets a brief description of the parameters.
|
java.util.List<java.lang.Integer> |
getDims()
Gets a vector with the size of the dimensions.
|
double |
getDoubleValue()
Gets the value of the parameter as a floating point number.
|
Parameter.ParamType |
getElementType()
Returns the element data type of the parameter, as an enum key.
|
static java.lang.String |
getFileFormattedValue(java.lang.String fileName)
Gets the value of the parameter as an array of characters.
|
java.lang.String |
getFileValue()
Gets the value of the parameter as a file.
|
int |
getIntValue()
Gets the value of the parameter as an integer type.
|
java.lang.String |
getLocalName()
Gets the local name of the parameter.
|
boolean[][] |
getMatrixBoolean()
Gets the value of the parameter as a Java array-of-arrays of boolean values.
|
double[][] |
getMatrixDouble()
Gets the value of the parameter as a Java array-of-arrays of floating point values.
|
java.lang.String[][] |
getMatrixFile()
Gets the value of the parameter as a Java array-of-arrays of file values.
|
int[][] |
getMatrixInt()
Gets the value of the parameter as a Java array-of-arrays of integer values.
|
java.lang.String[][] |
getMatrixString()
Gets the value of the parameter as a Java array-of-arrays of string values.
|
TimeValue[][] |
getMatrixTime()
Gets the value of the parameter as a Java array-of-arrays of timecode values.
|
java.lang.String |
getMax()
Gets the maximum value of the parameters.
|
java.lang.String |
getMin()
Gets the minimum value of the parameters.
|
java.lang.String |
getName()
Deprecated.
Ambiguous function, instead use getLocalName or getPath
|
int |
getNdims()
Gets the number of dimensions.
|
java.lang.String |
getOtherAttribute(java.lang.String key) |
java.util.Map<java.lang.String,java.lang.String> |
getOtherAttributes() |
java.lang.String |
getPath()
Gets the full path of the parameter.
|
java.lang.String |
getRawValue()
Gets the unparsed parameter value, as a string.
|
ArrayNode.Raw |
getRootNode()
Specific method for Array types.
|
java.lang.String |
getStringValue()
Gets the value of the parameter as a string.
|
TimeValue |
getTimeValue()
Gets the value of the parameter as a timecode.
|
java.lang.String |
getType()
Gets the element data type of the parameter, as a string.
|
java.lang.String |
getUnits()
Gets the units of the parameters.
|
java.lang.String |
getValue()
Deprecated.
Ambiguously-named function to be removed, use
getRawValue() instead. |
boolean[] |
getVectorBoolean()
Gets the value of the parameter as a Java array of boolean values.
|
double[] |
getVectorDouble()
Gets the value of the parameter as a Java array of floating point values.
|
java.lang.String[] |
getVectorFile()
Gets the value of the parameter as a Java array of files.
|
int[] |
getVectorInt()
Gets the value of the parameter as a Java array of integer values.
|
java.lang.String[] |
getVectorString()
Gets the value of the parameter as a Java array of strings.
|
TimeValue[] |
getVectorTime()
Gets the value of the parameter as a Java array of timecode values.
|
boolean |
isArray()
Returns true if this parameter is of structured type ARRAY.
|
void |
setValue(java.lang.String value)
Sets the parameter value as a string.
|
void |
write()
Prints out to standard output a textual description of the parameter.
|
public Parameter(java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String value)
public Parameter(java.lang.String name, java.lang.String description, Parameter.ParamType type, Parameter.ParamComplexType complexType, java.lang.String value, java.lang.String units, java.lang.String min, java.lang.String max, java.util.List<java.lang.Integer> dims)
public Parameter(java.lang.String name, java.lang.String description, Parameter.ParamType type, Parameter.ParamComplexType complexType, ArrayNode.Raw rootNode, java.lang.String units, java.lang.String min, java.lang.String max, java.util.List<java.lang.Integer> dims)
public void write()
Prints out to standard output a textual description of the parameter.
public boolean isArray()
getRootNode()
@Deprecated public java.lang.String getValue()
getRawValue()
instead.Gets the parameter value as a string.
public java.lang.String getRawValue()
Gets the unparsed parameter value, as a string.
public int getIntValue()
Gets the value of the parameter as an integer type.
Valid when there is only one value.
public double getDoubleValue()
Gets the value of the parameter as a floating point number.
Valid when there is only one value.
public boolean getBooleanValue()
Gets the value of the parameter as a boolean.
Valid when there is only one value.
public TimeValue getTimeValue()
Gets the value of the parameter as a timecode.
Valid when there is only one value.
public java.lang.String getStringValue()
Gets the value of the parameter as a string.
Valid when there is only one value.
public java.lang.String getFileValue()
Gets the value of the parameter as a file.
Valid when there is only one value.
public int[] getVectorInt()
Gets the value of the parameter as a Java array of integer values.
public double[] getVectorDouble()
Gets the value of the parameter as a Java array of floating point values.
public boolean[] getVectorBoolean()
Gets the value of the parameter as a Java array of boolean values.
public TimeValue[] getVectorTime()
Gets the value of the parameter as a Java array of timecode values.
public java.lang.String[] getVectorString()
Gets the value of the parameter as a Java array of strings.
public java.lang.String[] getVectorFile()
Gets the value of the parameter as a Java array of files.
public int[][] getMatrixInt()
Gets the value of the parameter as a Java array-of-arrays of integer values.
Not valid for ARRAY type.
public double[][] getMatrixDouble()
Gets the value of the parameter as a Java array-of-arrays of floating point values.
Not valid for ARRAY type.
public boolean[][] getMatrixBoolean()
Gets the value of the parameter as a Java array-of-arrays of boolean values.
Not valid for ARRAY type.
public TimeValue[][] getMatrixTime()
Gets the value of the parameter as a Java array-of-arrays of timecode values.
Not valid for ARRAY type.
public java.lang.String[][] getMatrixString()
Gets the value of the parameter as a Java array-of-arrays of string values.
Not valid for ARRAY type.
public java.lang.String[][] getMatrixFile()
Gets the value of the parameter as a Java array-of-arrays of file values.
Not valid for ARRAY type.
public ArrayNode.Raw getRootNode()
ArrayNode.Raw
public boolean[][] 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.public static java.lang.String getFileFormattedValue(java.lang.String fileName)
Gets the value of the parameter as an array of characters.
Checks the file validity
fileName
- String where file path name is storedpublic void setValue(java.lang.String value)
Sets the parameter value as a string.
value
- Parameter value.public int getNdims()
Gets the number of dimensions.
public java.util.List<java.lang.Integer> 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].@Deprecated public java.lang.String getName()
Gets the name of the parameter.
public java.lang.String getLocalName()
Gets the local name of the parameter.
public java.lang.String getPath()
Gets the full path of the parameter.
public java.lang.String getDescription()
Gets a brief description of the parameters.
public java.lang.String getUnits()
Gets the units of the parameters.
public java.lang.String getMax()
Gets the maximum value of the parameters.
public java.lang.String getMin()
Gets the minimum value of the parameters.
public java.lang.String getType()
getElementType()
public Parameter.ParamType getElementType()
public java.lang.String getComplexType()
Gets the complex type of the parameter.
Returns an empty string if complex type is not set.
public void addOtherAttribute(java.lang.String key, java.lang.String val)
key
- attribute nameval
- attribute valuepublic java.util.Map<java.lang.String,java.lang.String> getOtherAttributes()
public java.lang.String getOtherAttribute(java.lang.String key)