Package | Description |
---|---|
de.hawhamburg.reachability |
The reachability agents root package which contains common configuration, services and tools, the worker threads and
its main start classes.
|
de.hawhamburg.reachability.json |
Basic reachability JSON messages.
|
de.hawhamburg.reachability.reasoner.engine |
The drools based Engine.
|
de.hawhamburg.reachability.reasoner.enumeration |
Important enumerations required for the reasoning engines.
|
de.hawhamburg.reachability.registry.json |
Reachability agent registry service related JSON messages.
|
de.hawhamburg.reachability.sensor |
Common data objects and enumerations related to sensor adapters.
|
de.hawhamburg.reachability.sensor.adapter |
All defined sensor adapter to get the reasoner inhabitant informations.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ReasonerDimension,java.util.List<java.lang.String>> |
ReachabilityWorker.registeredSensors
|
private java.util.Map<ReasonerDimension,java.lang.String> |
ReachabilityWorker.runningSensors
A
Map of context dimensions (ReasonerDimension ) to sensor agents, which contains all actual
running sensor agents and their specific context dimension. |
Modifier and Type | Method and Description |
---|---|
void |
ReachabilityWorker.register(RegistryAgentType type,
java.lang.String name,
ReasonerDimension dimension)
Registers a new component.
|
private void |
ReachabilityWorker.startSensor(ReasonerDimension dimension,
java.lang.String sensor)
Starts a certain sensor agent by sending a start control message.
|
private void |
ReachabilityWorker.stopSensor(ReasonerDimension dimension,
java.lang.String sensor)
Stops a certain sensor agent by sending a sleep control message.
|
private void |
ReachabilityWorker.suspendSensor(ReasonerDimension dimension,
java.lang.String sensor)
Suspends a certain sensor agent by sending a sleep control message.
|
void |
ReachabilityWorker.unregister(RegistryAgentType type,
java.lang.String name,
ReasonerDimension dimension)
Unregisters a component (sensor or reasoner agent) and handles its consequences.
|
Modifier and Type | Field and Description |
---|---|
ReasonerDimension |
JsonReachabilitySensorData.Dimension
The context dimension, for which this data is meant, as
ReasonerDimension . |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ReasonerDimension,org.drools.runtime.rule.FactHandle> |
DroolsBasedEngine.factHandles
All handles to facts actual known to Drools working memory.
|
Modifier and Type | Method and Description |
---|---|
static ReasonerDimension |
ReasonerDimension.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReasonerDimension[] |
ReasonerDimension.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
ReasonerDimension |
JsonRARegistryMessage.Dimension
The context dimension which this agent may support (only for
RegistryAgentType.SENSOR as
ReasonerDimension . |
Modifier and Type | Field and Description |
---|---|
private ReasonerDimension |
SensorData.dimension
The
ReasonerDimension for which this data object was measured. |
private ReasonerDimension |
Sensor.internalDimension
The context dimension as
ReasonerDimension for which this sensor supplies data inputs. |
private ReasonerDimension |
SensorAgent.workerDimension
The context dimension as
ReasonerDimension for which the SensorAgent.worker provides sensor data. |
Modifier and Type | Method and Description |
---|---|
ReasonerDimension |
SensorAdapter.getDataDimension()
Provides the context dimension of the sensors data as
ReasonerDimension . |
ReasonerDimension |
Sensor.getDataDimension()
Provides the context dimension of the
Sensor s data as ReasonerDimension . |
ReasonerDimension |
SensorData.getDimension()
Returns the data dimension as
ReasonerDimension . |
Modifier and Type | Method and Description |
---|---|
static SensorAdapter |
SensorAdapterFactory.getConnectedSensorAdapter(java.lang.String className,
ReasonerDimension dimension)
Loads the adapter specified by its class name from the sub-package "adapter" using
SensorAdapterFactory.getSensorAdapter(String, ReasonerDimension) and connects it afterwards using
SensorAdapter.connect() . |
static SensorAdapter |
SensorAdapterFactory.getSensorAdapter(java.lang.String className,
ReasonerDimension dimension)
Tries to instantiate a
SensorAdapter by a supplied class name from the sub-package "adapter". |
Constructor and Description |
---|
Sensor(ReasonerDimension dimension)
Protected constructor ensures, that there will be no direct instance of this class.
|
SensorData(java.lang.String sensorName,
ReasonerDimension dataDimension,
double sensorValue)
Creates a new sensor data object.
|
SensorData(java.lang.String sensorName,
ReasonerDimension dataDimension,
double[] sensorValues)
Creates a new sensor data object.
|
SensorData(java.lang.String sensorName,
ReasonerDimension dataDimension,
java.util.Map<java.lang.Integer,java.lang.Double> sensorValues)
Creates a new sensor data object.
|
Constructor and Description |
---|
ExampleAdapter(ReasonerDimension dimension)
The constructor only delegates the supplied
ReasonerDimension ("example") to the constructor of the
abstract Sensor class. |
GoogleCalendarAdapter(ReasonerDimension dimension)
Creates a new
GoogleCalendarAdapter which provides the next events of the inhabitants Google(TM)
calendar. |
GoogleCalendarHookAdapter(ReasonerDimension dimension)
Creates a new
GoogleCalendarHookAdapter which provides the next events of the inhabitants Google(TM)
calendar. |
LP3DObjectLocationAdapter(ReasonerDimension dimension)
Creates a new LP3DObjectLocation adapter which provides the current position of the
inhabitant.
|
RSDFAdapter(ReasonerDimension dimension)
Creates a new
RSDFAdapter which senses simulated
simulated sensor data from
SensorDataFeeder . |
StressCompanionAdapter(ReasonerDimension dimension)
Creates a new stress companion adapter which calculates the current stress level of the
inhabitant while working on his computer.
|
TimeAdapter(ReasonerDimension dimension)
Constructs a new time sensor adapter which detects the current time.
|