public class LP3DObjectLocationAdapter
extends de.hawhamburg.reachability.sensor.Sensor
implements de.hawhamburg.reachability.sensor.SensorAdapter
SensorData
. The sensor data will be received via the ActiveMQ topic. It isn't
necessary to send requests to the sensor agent in this version of sensor agent.Constructor and Description |
---|
LP3DObjectLocationAdapter(de.hawhamburg.reachability.reasoner.enumeration.ReasonerDimension dimension)
Creates a new LP3DObjectLocation adapter which provides the current position of the
inhabitant.
|
Modifier and Type | Method and Description |
---|---|
de.hawhamburg.reachability.sensor.SensorData |
getSensorOutput()
Provides the inhabitants current position inside the environment 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
public LP3DObjectLocationAdapter(de.hawhamburg.reachability.reasoner.enumeration.ReasonerDimension dimension)
Sensor
loads the local XML configuration from
Settings.SENSOR_CONFIGURATION_PATH
, which is named like this class,
and opens all required ActiveMQ connections.dimension
- The ReasonerDimension
for which this sensor supplies data.public final de.hawhamburg.reachability.sensor.SensorData getSensorOutput()
SensorData
.getSensorOutput
in interface de.hawhamburg.reachability.sensor.SensorAdapter
getSensorOutput
in class de.hawhamburg.reachability.sensor.Sensor
SensorData
.public static void main(java.lang.String[] args)
args
- The start arguments as array of String
.