public interface PhysicsProp extends ModelEntity, ParameterContainer
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAllowedPropertyValues(java.lang.String name)
Returns the set of allowed values for a property if it is a finite set
of strings, null otherwise.
|
boolean |
getBoolean(java.lang.String name)
Returns the value as a boolean.
|
java.lang.String[][] |
getDblStringArray(java.lang.String pname)
Returns the value as a matrix of strings.
|
double[] |
getDoubleArray(java.lang.String name)
Returns the value as a vector of doubles.
|
double[][] |
getDoubleMatrix(java.lang.String name)
Returns the value as a matrix of doubles.
|
java.lang.String |
getString(java.lang.String name)
Returns the value as a string.
|
java.lang.String[] |
getStringArray(java.lang.String pname)
Returns the value as a vector of strings.
|
java.lang.String[][] |
getStringMatrix(java.lang.String pname)
Returns the value as a matrix of strings.
|
java.lang.String |
getValueType(java.lang.String name)
Returns the main data type which a parameter can return.
|
boolean |
hasProperty(java.lang.String name)
Returns true if this feature supports a given property.
|
java.lang.String[] |
properties()
Returns the names of all properties.
|
PhysicsProp |
set(java.lang.String name,
boolean value)
Sets the value as a boolean value.
|
PhysicsProp |
set(java.lang.String pname,
double value)
Sets the value as a double value.
|
PhysicsProp |
set(java.lang.String pname,
double[] value)
Sets the value as a double vector value.
|
PhysicsProp |
set(java.lang.String pname,
double[][] value)
Sets the value as a double matrix value.
|
PhysicsProp |
set(java.lang.String pname,
int value)
Sets the value as an integer value.
|
PhysicsProp |
set(java.lang.String pname,
int[] value)
Sets the value as an integer vector value.
|
PhysicsProp |
set(java.lang.String pname,
int[][] value)
Sets the value as an integer matrix value.
|
PhysicsProp |
set(java.lang.String pname,
int pos,
double value)
Sets the value at a position in a double vector value.
|
PhysicsProp |
set(java.lang.String pname,
int pos,
double[] value)
Sets the value at a position in a double matrix value.
|
PhysicsProp |
set(java.lang.String pname,
int pos,
int value)
Sets the value at a position in an integer vector value.
|
PhysicsProp |
set(java.lang.String pname,
int pos,
int[] value)
Sets the value at a position in an integer matrix value.
|
PhysicsProp |
set(java.lang.String pname,
int pos1,
int pos2,
double value)
Sets the value at a position in a double matrix value.
|
PhysicsProp |
set(java.lang.String pname,
int pos1,
int pos2,
int value)
Sets the value at a position in an integer matrix value.
|
PhysicsProp |
set(java.lang.String pname,
int pos1,
int pos2,
java.lang.String value)
Sets the value at a position in a string matrix value.
|
PhysicsProp |
set(java.lang.String pname,
int pos,
java.lang.String value)
Sets the value at a position in a string vector value.
|
PhysicsProp |
set(java.lang.String pname,
int pos,
java.lang.String[] value)
Sets the value at a position in a string matrix value.
|
PhysicsProp |
set(java.lang.String pname,
java.lang.String value)
Sets the value as a string value.
|
PhysicsProp |
set(java.lang.String pname,
java.lang.String[] value)
Sets the value as a string vector value.
|
PhysicsProp |
set(java.lang.String pname,
java.lang.String[][] value)
Sets the value as a string matrix value.
|
PhysicsProp |
setIndex(java.lang.String name,
boolean value,
int index)
Sets vector parameter value at index.
|
PhysicsProp |
setIndex(java.lang.String name,
double[] value,
int index)
Sets double matrix property value at index.
|
PhysicsProp |
setIndex(java.lang.String name,
double value,
int index)
Sets string vector property value at index.
|
PhysicsProp |
setIndex(java.lang.String name,
double value,
int firstIndex,
int secondIndex)
Sets string matrix property value at index.
|
PhysicsProp |
setIndex(java.lang.String name,
int[] value,
int index)
Sets integer matrix property value at index.
|
PhysicsProp |
setIndex(java.lang.String name,
int value,
int index)
Sets string vector property value at index.
|
PhysicsProp |
setIndex(java.lang.String name,
int value,
int firstIndex,
int secondIndex)
Sets string matrix property value at index.
|
PhysicsProp |
setIndex(java.lang.String name,
java.lang.String[] value,
int index)
Sets string matrix property value at index.
|
PhysicsProp |
setIndex(java.lang.String name,
java.lang.String value,
int vector)
Sets string vector property value at index.
|
PhysicsProp |
setIndex(java.lang.String name,
java.lang.String value,
int firstIndex,
int secondIndex)
Sets string matrix property value at index.
|
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
hasParam, param, params
java.lang.String[] getAllowedPropertyValues(java.lang.String name)
name
- Property name.boolean getBoolean(java.lang.String name)
name
- Parameter name.java.lang.String[][] getDblStringArray(java.lang.String pname)
pname
- Parameter name.double[] getDoubleArray(java.lang.String name)
name
- Parameter name.double[][] getDoubleMatrix(java.lang.String name)
name
- Parameter name.java.lang.String getString(java.lang.String name)
name
- Parameter name.java.lang.String[] getStringArray(java.lang.String pname)
pname
- Parameter name.java.lang.String[][] getStringMatrix(java.lang.String pname)
pname
- Parameter name.java.lang.String getValueType(java.lang.String name)
name
- The name of the parameter.String
,
StringArray
, StringMatrix
,
DoubleArray
, DoubleMatrix
y.boolean hasProperty(java.lang.String name)
name
- Property name.true
if a feature supports the property.java.lang.String[] properties()
PhysicsProp set(java.lang.String pname, java.lang.String value)
pname
- Parameter name.value
- String value.PhysicsProp set(java.lang.String pname, java.lang.String[] value)
pname
- Parameter name.value
- String vector value.PhysicsProp set(java.lang.String pname, java.lang.String[][] value)
pname
- Parameter name.value
- String matrix value.PhysicsProp set(java.lang.String name, boolean value)
name
- Parameter name.value
- Boolean value.PhysicsProp set(java.lang.String pname, double value)
pname
- Parameter name.value
- Double value.PhysicsProp set(java.lang.String pname, double[] value)
pname
- Parameter name.value
- Double vector value.PhysicsProp set(java.lang.String pname, double[][] value)
pname
- Parameter name.value
- Double matrix value.PhysicsProp set(java.lang.String pname, int value)
pname
- Parameter name.value
- Integer value.PhysicsProp set(java.lang.String pname, int[] value)
pname
- Parameter name.value
- Integer vector value.PhysicsProp set(java.lang.String pname, int[][] value)
pname
- Parameter name.value
- Integer matrix value.PhysicsProp set(java.lang.String pname, int pos, java.lang.String value)
pname
- Parameter name.pos
- Position in vector (1-based).value
- String vector item value.PhysicsProp set(java.lang.String pname, int pos, java.lang.String[] value)
pname
- Parameter name.pos
- Position in vector (1-based).value
- String vector value.PhysicsProp set(java.lang.String pname, int pos, double value)
pname
- Parameter name.pos
- Position in vector (1-based).value
- Double vector item value.PhysicsProp set(java.lang.String pname, int pos, double[] value)
pname
- Parameter name.pos
- Position in vector (1-based).value
- Double vector value.PhysicsProp set(java.lang.String pname, int pos, int value)
pname
- Parameter name.pos
- Position in vector (1-based).value
- Double vector item value.PhysicsProp set(java.lang.String pname, int pos, int[] value)
pname
- Parameter name.pos
- Position in vector (1-based).value
- Integer vector value.PhysicsProp set(java.lang.String pname, int pos1, int pos2, java.lang.String value)
pname
- Parameter name.pos1
- First index of position in matrix (1-based).pos2
- Second index of position in matrix (1-based).value
- String matrix item value.PhysicsProp set(java.lang.String pname, int pos1, int pos2, double value)
pname
- Parameter name.pos1
- First index of position in matrix (1-based).pos2
- Second index of position in matrix (1-based).value
- Double matrix item value.PhysicsProp set(java.lang.String pname, int pos1, int pos2, int value)
pname
- Parameter name.pos1
- First index of position in matrix (1-based).pos2
- Second index of position in matrix (1-based).value
- Integer matrix item value.PhysicsProp setIndex(java.lang.String name, java.lang.String value, int vector)
name
- Property name.value
- Property value.vector
- Index in vector (0-based).PhysicsProp setIndex(java.lang.String name, java.lang.String[] value, int index)
name
- Property name.value
- Property value.index
- Index in matrix (0-based).PhysicsProp setIndex(java.lang.String name, boolean value, int index)
name
- Property name.value
- Property value.index
- Index in vector (0-based).PhysicsProp setIndex(java.lang.String name, double value, int index)
name
- Property name.value
- Property value.index
- Index in vector (0-based).PhysicsProp setIndex(java.lang.String name, double[] value, int index)
name
- Property name.value
- Property value.index
- Index in matrix (0-based).PhysicsProp setIndex(java.lang.String name, int value, int index)
name
- Property name.value
- Property value (0-based).index
- Index in vector (0-based).PhysicsProp setIndex(java.lang.String name, int[] value, int index)
name
- Property name.value
- Property value.index
- Index in matrix.PhysicsProp setIndex(java.lang.String name, java.lang.String value, int firstIndex, int secondIndex)
name
- Property name.value
- Property value.firstIndex
- First index in matrix (0-based).secondIndex
- Second index in matrix (0-based).PhysicsProp setIndex(java.lang.String name, double value, int firstIndex, int secondIndex)
name
- Property name.value
- Property value.firstIndex
- First index in matrix (0-based).secondIndex
- Second index in matrix (0-based).PhysicsProp setIndex(java.lang.String name, int value, int firstIndex, int secondIndex)
name
- Property name.value
- Property value.firstIndex
- First index in matrix (0-based).secondIndex
- Second index in matrix (0-based).