public interface FluigentScriptCallback
extends java.rmi.Remote
Modifier and Type | Method and Description |
---|---|
double |
getFlowRate(int flowUnit)
Returns the current flow rate of a given flow unit.
|
int |
getNumberOfFlowUnits()
Returns the number of flow units attached to the Fluigent 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 flowUnit,
double flowRate)
Sets the flow rate of a given flow 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 getNumberOfFlowUnits() throws java.rmi.RemoteException, ResourceException, java.lang.InterruptedException
java.rmi.RemoteException
ResourceException
java.lang.InterruptedException
void setFlowRate(int flowUnit, double flowRate) throws java.rmi.RemoteException, ResourceException, java.lang.InterruptedException
flowUnit
- The ID (zero based) of the flow unit.flowRate
- The flow rate, in the unit given by getFlowUnitShort().java.rmi.RemoteException
ResourceException
java.lang.InterruptedException
double getFlowRate(int flowUnit) throws java.rmi.RemoteException, ResourceException, java.lang.InterruptedException
flowUnit
- The ID (zero based) of the flow unit.java.rmi.RemoteException
ResourceException
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