public class EngineParam extends BaseParam
_default, _max, _maxVersion, _min, _minVersion, _options, _value, type| Constructor and Description |
|---|
EngineParam(EngineParamID id)
Initializes a new instance of the EngineParam class.
|
EngineParam(EngineParamID id,
boolean defaultValue)
Initializes a new instance of the EngineParam class.
|
EngineParam(EngineParamID id,
int defaultValue,
int minValue,
int maxValue)
Initializes a new instance of the EngineParam class.
|
EngineParam(EngineParamID id,
String defaultValue)
Initializes a new instance of the EngineParam class.
|
EngineParam(EngineParamID id,
String defaultValue,
ArrayList<String> options)
Initializes a new instance of the EngineParam class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue()
Get the default value of the parameter.
|
EngineParamID |
getId()
Gets the ID of the parameter.
|
int |
getMaxValue()
Get the maximum value of the parameter.
|
int |
getMinValue()
Get the minimum value of the parameter.
|
ArrayList<String> |
getOptions()
Get a list of options for the parameter.
|
String |
getValue()
Gets the value of the parameter.
|
void |
setValue(String value)
Sets the value of the parameter.
|
EngineParam |
toEngineParam()
In child classes, this method is override to return an EngineParam.
|
getMaxVersion, getMinVersion, toDeviceParampublic EngineParam(EngineParamID id)
id - The ID of the parameter.public EngineParam(EngineParamID id, String defaultValue)
id - The ID of the parameter.defaultValue - The default value of the parameter.public EngineParam(EngineParamID id, String defaultValue, ArrayList<String> options)
id - The ID of the parameter.defaultValue - The default value of the parameter.options - The options for the parameter.public EngineParam(EngineParamID id, boolean defaultValue)
id - The ID of the parameter.defaultValue - The default value of the parameter.public EngineParam(EngineParamID id, int defaultValue, int minValue, int maxValue)
id - The ID of the parameter.defaultValue - The default value of the parameter.minValue - The minimum value of the parameter.maxValue - The maximum value of the parameter.public EngineParam toEngineParam()
BaseParamtoEngineParam in class BaseParampublic EngineParamID getId()
public String getValue()
public void setValue(String value)
value - The value to set.public String getDefaultValue()
public ArrayList<String> getOptions()
public int getMinValue()
public int getMaxValue()