org.universAAL.samples.sensor.simulator
Class RoomHumidityPublisher
java.lang.Object
org.universAAL.samples.sensor.simulator.RoomHumidityPublisher
public class RoomHumidityPublisher
- extends Object
Class used for publishing room humidity
Constructor Summary |
protected |
RoomHumidityPublisher(ModuleContext context)
Constructor Here we set ContextEventPattern and add restrictions to it
that tell universAAL platform which infofmation we want to recieve |
Method Summary |
void |
publishContextEvent(HumiditySensor humiditySensor)
Method used for publishing context event that has HumiditySensor as a
subject and it's value as a predicate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
HUMIDITY_SENSOR_1
public static final String HUMIDITY_SENSOR_1
- See Also:
- Constant Field Values
HUMIDITY_SENSOR_2
public static final String HUMIDITY_SENSOR_2
- See Also:
- Constant Field Values
myContextPublisher
public static ContextPublisher myContextPublisher
myModuleContext
public static ModuleContext myModuleContext
RoomHumidityPublisher
protected RoomHumidityPublisher(ModuleContext context)
- Constructor Here we set ContextEventPattern and add restrictions to it
that tell universAAL platform which infofmation we want to recieve
- Parameters:
context
-
publishContextEvent
public void publishContextEvent(HumiditySensor humiditySensor)
- Method used for publishing context event that has HumiditySensor as a
subject and it's value as a predicate
- Parameters:
humiditySensor
-
Copyright © 2014 universAAL Consortium. All Rights Reserved.