de.jaetzold.art.examples
Class AWTRobotInterface.TextFieldActuatorPeer

java.lang.Object
  |
  +--de.jaetzold.art.platform.BaseSensorPeer
        |
        +--de.jaetzold.art.examples.AWTRobotInterface.TextFieldSensorPeer
              |
              +--de.jaetzold.art.examples.AWTRobotInterface.TextFieldActuatorPeer
All Implemented Interfaces:
ActuatorPeer, SensorPeer
Enclosing class:
AWTRobotInterface

protected class AWTRobotInterface.TextFieldActuatorPeer
extends AWTRobotInterface.TextFieldSensorPeer
implements ActuatorPeer


Field Summary
protected  TextField output
           
 
Fields inherited from class de.jaetzold.art.examples.AWTRobotInterface.TextFieldSensorPeer
currentValue, input
 
Fields inherited from class de.jaetzold.art.platform.BaseSensorPeer
changes, eventQueue
 
Constructor Summary
AWTRobotInterface.TextFieldActuatorPeer(TextField output)
           
 
Method Summary
 void setValue(double value)
          Set the actuator to the value given as a parameter.
 void setValue(double value, boolean waitMode)
          Set the actuator to the value given as a parameter.
 
Methods inherited from class de.jaetzold.art.examples.AWTRobotInterface.TextFieldSensorPeer
getValue, isConnected
 
Methods inherited from class de.jaetzold.art.platform.BaseSensorPeer
addPropertyChangeListener, disableEvent, enableEvent, getDeliversFloatingPoint, getIntValue, getPrecision, processEvent, removePropertyChangeListener, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.jaetzold.art.platform.SensorPeer
addPropertyChangeListener, disableEvent, enableEvent, getDeliversFloatingPoint, getPrecision, getValue, isConnected, processEvent, removePropertyChangeListener, update
 

Field Detail

output

protected TextField output
Constructor Detail

AWTRobotInterface.TextFieldActuatorPeer

public AWTRobotInterface.TextFieldActuatorPeer(TextField output)
Method Detail

setValue

public void setValue(double value)
Description copied from interface: ActuatorPeer
Set the actuator to the value given as a parameter.
Specified by:
setValue in interface ActuatorPeer
Following copied from interface: de.jaetzold.art.platform.ActuatorPeer
See Also:
ActuatorPeer.setValue(double,boolean)

setValue

public void setValue(double value,
                     boolean waitMode)
Description copied from interface: ActuatorPeer
Set the actuator to the value given as a parameter. If waitForCompletion is false this method may return before the new value has been sent to the hardware. This way the method could return almost immediatly and informing the peer and thus the hardware may happen asynchronous. If for some reason the value is not o.k. for this Peer it is not required to accept the value and it is also not required to report that through an Exception.
Specified by:
setValue in interface ActuatorPeer
Following copied from interface: de.jaetzold.art.platform.ActuatorPeer
Parameters:
value - the value this Actuator should have.
waitForCompletion - whether this method may set the value asynchronous.
See Also:
ActuatorPeer.setValue(double)