|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Classes that represent a output-device should implement this interface. Implementations of this interface represent specific interpretations of the value this Actuator accepts and delivers.
Method Summary | |
void |
addVetoableChangeListener(VetoableChangeListener listener)
For Listeners which can refuse some values to be set. |
boolean |
getLocalReturn()
Returns the whether value-returning methods assume no one else is using this Actuator. |
boolean |
getWaitForCompletion()
Returns the default for synchronous or asynchronous behavior of state-changing methods. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
For Listeners which can refuse some values to be set. |
void |
setLocalReturn(boolean returnMode)
Controls the behaviour of value-returning Methods. |
void |
setValue(double value)
Set this Actuator to the value given as a parameter. |
void |
setValue(double value,
boolean waitForCompletion)
Set this Actuator to the Value given as a parameter. |
void |
setWaitForCompletion(boolean waitMode)
Controls when state-changing Methods return. |
Methods inherited from interface de.jaetzold.art.Sensor |
addPropertyChangeListener, addSensorListener, connectWith, disconnect, getIntValue, getPort, getPrecision, getSensorPort, getValue, isConnected, processEvent, propertyChange, removePropertyChangeListener, removeSensorListener, update |
Method Detail |
public void setValue(double value)
value
- the value this Actuator should have.NotConnectedException
- if this Actuator has no Peer or the Peer itself isn't connected (e.g. because the connection to the hardware went down)setValue(double,boolean)
,
setWaitForCompletion(boolean)
public void setValue(double value, boolean waitForCompletion)
VetoableChangeListener
-instances vetoes. In this case the method should return without changing anything.value
- the value this Actuator should have.waitForCompletion
- whether this method may set the value asynchronous.NotConnectedException
- if this Actuator has no Peer or the Peer itself isn't connected (e.g. because the connection to the hardware went down)setWaitForCompletion(boolean)
,
setValue(double)
,
Sensor.isConnected()
,
addVetoableChangeListener(VetoableChangeListener)
public void setWaitForCompletion(boolean waitMode)
waitMode
- whether state-changing methods may return immediatelysetValue(double)
,
ActuatorPeer.setValue(double,boolean)
public boolean getWaitForCompletion()
setWaitForCompletion(boolean)
public void setLocalReturn(boolean returnMode)
returnMode
- whether value-returning methods should assume that the value last set is the one the Actuator really has.Sensor.getValue()
public boolean getLocalReturn()
setLocalReturn(boolean)
public void addVetoableChangeListener(VetoableChangeListener listener)
RawActuator
makes takes these listeners into account.RawActuator.setValue(double)
public void removeVetoableChangeListener(VetoableChangeListener listener)
addVetoableChangeListener(VetoableChangeListener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |