public class TimeAdapter
extends de.hawhamburg.reachability.sensor.Sensor
implements de.hawhamburg.reachability.sensor.SensorAdapter
getSensorOutput()
is called, as
SensorData
object.Constructor and Description |
---|
TimeAdapter(de.hawhamburg.reachability.reasoner.enumeration.ReasonerDimension dimension)
Constructs a new time sensor adapter which detects the current time.
|
Modifier and Type | Method and Description |
---|---|
de.hawhamburg.reachability.sensor.SensorData |
getSensorOutput()
Provides the current time in format HHMMSS as
SensorData . |
static void |
main(java.lang.String[] args)
Main method which starts this
SensorAdapter as SensorAgent . |
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 TimeAdapter(de.hawhamburg.reachability.reasoner.enumeration.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 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)
SensorAdapter
as SensorAgent
.args
- The start arguments as array of String
.