public class StressCompanionAdapter extends Sensor implements SensorAdapter
| Constructor and Description |
|---|
StressCompanionAdapter(ReasonerDimension dimension)
Creates a new stress companion adapter which calculates the current stress level of the
inhabitant while working on his computer.
|
| Modifier and Type | Method and Description |
|---|---|
SensorData |
getSensorOutput()
Retrieves the current inhabitants stress level via ActiveMQ and returns it as
SensorData. |
static void |
main(java.lang.String[] args)
Main method which starts this
SensorAdapter wrapped by a SensorAgent. |
connect, getDataDimension, getID, getLocalConf, getRequestTopic, getRequestTopicName, getResultTopic, getResultTopicName, getVersion, isActive, isSilent, loadDefaultsFromXMLResource, run, setDelay, setLocalConf, setRequestTopicName, setResultTopicName, setSilent, shutDown, stoppedactiveCount, 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, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconnect, getDataDimension, getRequestTopicName, getResultTopicName, setSilent, start, stoppedisActive, shutDownpublic StressCompanionAdapter(ReasonerDimension dimension)
Sensor from the XML file in
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 SensorAdaptergetSensorOutput in class SensorSensorData object.public static void main(java.lang.String[] args)
SensorAdapter wrapped by a SensorAgent.args - The start arguments as array of String.