public class RSDFAdapter extends Sensor implements SensorAdapter
RSDFAdapter
will listen
on a certain result topic, specified by the XML configuration file in "resource/sensor/RSDFAdapter.xml", for
simulated data for its context dimension. If sensed, the data will be transformed into the internal representation
and forwarded to the reasoning agent via the ActiveMQ.
CAUTION: SIMULATED SENSOR INPUT FROM
SensorDataFeeder
Constructor and Description |
---|
RSDFAdapter(ReasonerDimension dimension)
Creates a new
RSDFAdapter which senses simulated
simulated sensor data from
SensorDataFeeder . |
Modifier and Type | Method and Description |
---|---|
SensorData |
getSensorOutput()
Retrieves the fictional stress level of an inhabitant via ActiveMQ and returns it as
SensorData . |
static void |
main(java.lang.String[] args)
Main method which starts a single sensor adapter for each context dimension to sense simulated sensor data.
|
connect, getDataDimension, getID, getLocalConf, getRequestTopic, getRequestTopicName, getResultTopic, getResultTopicName, getVersion, isActive, isSilent, loadDefaultsFromXMLResource, run, setDelay, setLocalConf, setRequestTopicName, setResultTopicName, setSilent, shutDown, stopped
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
connect, getDataDimension, getRequestTopicName, getResultTopicName, setSilent, start, stopped
isActive, shutDown
public RSDFAdapter(ReasonerDimension dimension)
RSDFAdapter
which senses simulated
simulated sensor data from
SensorDataFeeder
.Settings.SENSOR_CONFIGURATION_PATH
which is named like this class.dimension
- The ReasonerDimension
for which this sensor is configured.public final SensorData getSensorOutput()
SensorData
.getSensorOutput
in interface SensorAdapter
getSensorOutput
in class Sensor
SensorData
object.public static void main(java.lang.String[] args)
args
- The start arguments as array of String
.