public interface MachState
Modifier and Type | Method and Description |
---|---|
boolean |
getParamBoolean(int param)
returns the boolean machine parameter
param . |
boolean |
getParamBoolean(int param,
int index)
returns the indexed boolean machine parameter
param . |
double |
getParamDouble(int param)
returns the double machine parameter
param . |
double |
getParamDouble(int param,
int index)
returns the indexed double machine parameter
param . |
int |
getParamInt(int param)
returns the integer machine parameter
param . |
int |
getParamInt(int param,
int index)
returns the indexed integer machine parameter
param . |
java.lang.String |
getParamString(int param,
int index)
returns the indexed string machine parameter
param . |
void |
setParam(int param,
int index,
java.lang.Object value)
sets the value of an machine parameter
param . |
void |
setParam(int param,
java.lang.Object value)
sets the value of an machine parameter
param . |
void setParam(int param, java.lang.Object value)
param
.
The machining state is maintained as a set of parameters of various types.
Supported types are Integer
m,Double
,Boolean
and
String
.
Note that 'autp boxing' mostly takes care passing the correct Object for primitive types.
Parameters are referred to by integer 'names', see class
MachParam
for a list of them.
This method throws an IllegalArgumentException
if the specified
parameter does not exist or is not is not of the appropriate type.
param
- an integer specifying the parametervalue
- the value of the parameterdouble getParamDouble(int param)
param
.
This method throws an IllegalArgumentException
if the specified
parameter does not exist or is not a double parameter.
param
- an integer specifying the parameterboolean getParamBoolean(int param)
param
.
This method throws an IllegalArgumentException
if the specified
parameter does not exist or is not a boolean parameter.
param
- an integer specifying the parameterint getParamInt(int param)
param
.
This method throws an IllegalArgumentException
if the specified
parameter does not exist or is not a boolean parameter.
param
- an integer specifying the parameterint getParamInt(int param, int index)
param
.
This method throws an IllegalArgumentException
if the specified
parameter does not exist or is indexed or is not of the correct type.
This methdod can be thought as returning param[index]
param
- the integer constant specifying the parameterindex
- the sub index of the parameterdouble getParamDouble(int param, int index)
param
.
This method throws an IllegalArgumentException
if the specified
parameter does not exist or is indexed or is not of the correct type.
This methdod can be thought as returning param[index]
param
- the integer constant specifying the parameterindex
- the sub index of the parameterboolean getParamBoolean(int param, int index)
param
.
This method throws an IllegalArgumentException
if the specified
parameter does not exist or is indexed or is not of the correct type.
This methdod can be thought as returning param[index]
param
- the integer constant specifying the parameterindex
- the sub index of the parameterjava.lang.String getParamString(int param, int index)
param
.
This method throws an IllegalArgumentException
if the specified
parameter does not exist or is indexed or is not of the correct type.
This methdod can be thought as returning param[index]
param
- the integer constant specifying the parameterindex
- the sub index of the parametervoid setParam(int param, int index, java.lang.Object value)
param
.
The machining state is maintained as a set of parameters of various types.
Supported types are Integer
m,Double
,Boolean
and
String
.
Note that 'autp boxing' mostly takes care passing the correct Object for primitive types.
Parameters are referred to by integer 'names', see class
MachParam
for a list of them.
This method throws an IllegalArgumentException
if the specified
parameter does not exist or is not is not of the appropriate type.
param
- an integer specifying the parameterindex
- the sub index of the parametervalue
- the value of the parameter