public final class Thermostat
extends java.lang.Object
TuCSoN situatedness feature example.
In this toy scenario, a situated, 'intelligent' thermostat is in charge of
keeping a room temperature between 18 and 22. In order to do so, it is
equipped with a sensor (ActualSensor class) and an actuator (ActualActuator
class). As obvious, the former is requested by the thermostat to perceiving
the temperature, whereas the latter is prompted to change the temperature
upon need.
Whereas the thermostat entity can be programmed as pleased, hence as an agent
or a simple Java process (still a TuCSoN agent, as in this case), the sensor
and the actuator should be modelled as "probes" (aka environmental
resources), interfacing with the MAS (in this simple case, only the
thermostat TuCSoN agent) through one transducer each.
Furthermore, to leverage a possible ditributed scenario for this toy
thermostat example, transducers and the thermostat each have their own tuple
centre to interact with, suitably programmed through situated ReSpecT
reactions (sensorSpec.rsp and actuatorSpec.rsp).
- Author:
- ste (mailto: s.mariani@unibo.it) on 05/nov/2013