public interface NemesysScriptCallback
extends java.rmi.Remote
Modifier and Type | Method and Description |
---|---|
double |
getFlowRate(int dosingUnit)
Returns the current flow rate of a given dosing unit.
|
double |
getFlowRateMax(int dosingUnit)
Returns the maximal flow rate of a given dosing unit.
|
java.lang.String |
getFlowUnit(int dosingUnit)
Returns the unit identifier of the flow rate.
|
int |
getNumberOfDosingUnits()
Returns the number of dosing units/syringes attached to the Nemesys device.
|
double |
getStateAsDouble(java.lang.String state,
double defaultValue)
Returns the value of the state with the given name.
|
int |
getStateAsInteger(java.lang.String state,
int defaultValue)
Returns the value of the state with the given name.
|
java.lang.String |
getStateAsString(java.lang.String state,
java.lang.String defaultValue)
Returns the value of the state with the given name.
|
void |
setFlowRate(int dosingUnit,
double flowRate)
Sets the flow rate of a given dosing unit.
|
void |
setState(java.lang.String state,
double value)
Sets the state with the given name to the given value.
|
void |
setState(java.lang.String state,
int value)
Sets the state with the given name to the given value.
|
void |
setState(java.lang.String state,
java.lang.String value)
Sets the state with the given name to the given value.
|
int getNumberOfDosingUnits() throws java.rmi.RemoteException, NemesysException, java.lang.InterruptedException
java.rmi.RemoteException
NemesysException
java.lang.InterruptedException
double getFlowRateMax(int dosingUnit) throws java.rmi.RemoteException, NemesysException, java.lang.InterruptedException
dosingUnit
- The ID (zero based) of the dosing unit.java.rmi.RemoteException
NemesysException
java.lang.InterruptedException
void setFlowRate(int dosingUnit, double flowRate) throws java.rmi.RemoteException, NemesysException, java.lang.InterruptedException
dosingUnit
- The ID (zero based) of the dosing unit.flowRate
- The flow rate, in the unit given by getFlowUnitShort().java.rmi.RemoteException
NemesysException
java.lang.InterruptedException
double getFlowRate(int dosingUnit) throws java.rmi.RemoteException, NemesysException, java.lang.InterruptedException
dosingUnit
- The ID (zero based) of the dosing unit.java.rmi.RemoteException
NemesysException
java.lang.InterruptedException
java.lang.String getFlowUnit(int dosingUnit) throws java.rmi.RemoteException, NemesysException, java.lang.InterruptedException
dosingUnit
- the ID (zero based) of the dosing unit.java.rmi.RemoteException
NemesysException
java.lang.InterruptedException
java.lang.String getStateAsString(java.lang.String state, java.lang.String defaultValue) throws java.rmi.RemoteException
state
- Name of the state.defaultValue
- Default value of the state. Typically used to set an initial value for the state when the controller is executed the first time.java.rmi.RemoteException
double getStateAsDouble(java.lang.String state, double defaultValue) throws java.rmi.RemoteException, java.lang.NumberFormatException
state
- Name of the state.defaultValue
- Default value of the state. Typically used to set an initial value for the state when the controller is executed the first time.java.rmi.RemoteException
java.lang.NumberFormatException
int getStateAsInteger(java.lang.String state, int defaultValue) throws java.rmi.RemoteException, java.lang.NumberFormatException
state
- Name of the state.defaultValue
- Default value of the state. Typically used to set an initial value for the state when the controller is executed the first time.java.rmi.RemoteException
java.lang.NumberFormatException
void setState(java.lang.String state, java.lang.String value) throws java.rmi.RemoteException
state
- Name of the state.value
- Value to set the state tojava.rmi.RemoteException
void setState(java.lang.String state, int value) throws java.rmi.RemoteException
state
- Name of the state.value
- Value to set the state tojava.rmi.RemoteException
void setState(java.lang.String state, double value) throws java.rmi.RemoteException
state
- Name of the state.value
- Value to set the state tojava.rmi.RemoteException