public class BaseParam extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
_default |
protected int |
_max |
protected int |
_maxVersion |
protected int |
_min |
protected int |
_minVersion |
protected ArrayList<String> |
_options |
protected String |
_value |
ParamType |
type |
| Constructor and Description |
|---|
BaseParam(ParamType paramType)
Constructs a new BaseParam object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxVersion()
Returns the maximum version that supports the parameter.
|
int |
getMinVersion()
Returns the minimum version that supports the parameter.
|
DeviceParam |
toDeviceParam()
In child classes, this method is override to return a DeviceParam.
|
EngineParam |
toEngineParam()
In child classes, this method is override to return an EngineParam.
|
protected String _value
protected String _default
protected int _min
protected int _max
protected int _minVersion
protected int _maxVersion
public final ParamType type
public BaseParam(ParamType paramType)
paramType - The type of the parameter.public DeviceParam toDeviceParam() throws Exception
Exception - If the object is not a DeviceParam.public EngineParam toEngineParam() throws Exception
Exception - If the object is not an EngineParam.public int getMinVersion()
public int getMaxVersion()