public class AHSimulator extends Object implements org.osgi.service.cm.ManagedService
Modifier and Type | Field and Description |
---|---|
List<ContactClosureSensor> |
contactClosureSensors |
List<MotionSensor> |
motionSensors |
List<SwitchSensor> |
switchSensors |
List<TemperatureSensor> |
tempSensors |
List<UsageSensor> |
usageSensors |
Constructor and Description |
---|
AHSimulator(org.osgi.framework.BundleContext context,
org.osgi.service.log.LogService logger,
ModuleContext mc) |
Modifier and Type | Method and Description |
---|---|
int |
getEventIntervall() |
org.osgi.service.log.LogService |
getLogger() |
int |
getNumberOfContactClosureSensors() |
int |
getNumberOfMotionSensors() |
int |
getNumberOfSwitchSensors() |
int |
getNumberOfTempSensors() |
int |
getNumberOfUsageSensors() |
void |
setEventIntervall(int eventIntervall) |
void |
setNumberOfContactClosureSensors(int numberOfContactClosureSensors) |
void |
setNumberOfMotionSensors(int numberOfMotionSensors) |
void |
setNumberOfSwitchSensors(int numberOfSwitchSensors) |
void |
setNumberOfTempSensors(int numberOfTempSensors) |
void |
setNumberOfUsageSensors(int numberOfUsageSensors) |
void |
updated(Dictionary properties)
Get updated from ConfigurationAdmin.
|
public List<MotionSensor> motionSensors
public List<ContactClosureSensor> contactClosureSensors
public List<UsageSensor> usageSensors
public List<SwitchSensor> switchSensors
public List<TemperatureSensor> tempSensors
public AHSimulator(org.osgi.framework.BundleContext context, org.osgi.service.log.LogService logger, ModuleContext mc)
public org.osgi.service.log.LogService getLogger()
public void updated(Dictionary properties) throws org.osgi.service.cm.ConfigurationException
updated
in interface org.osgi.service.cm.ManagedService
org.osgi.service.cm.ConfigurationException
public void setNumberOfContactClosureSensors(int numberOfContactClosureSensors)
numberOfContactClosureSensors
- the numberOfContactClosureSensors to setpublic int getNumberOfContactClosureSensors()
public void setNumberOfMotionSensors(int numberOfMotionSensors)
numberOfMotionSensors
- the numberOfMotionSensors to setpublic int getNumberOfMotionSensors()
public void setNumberOfUsageSensors(int numberOfUsageSensors)
numberOfUsageSensors
- the numberOfUsageSensors to setpublic int getNumberOfUsageSensors()
public void setNumberOfSwitchSensors(int numberOfSwitchSensors)
numberOfSwitchSensors
- the numberOfSwitchSensors to setpublic int getNumberOfSwitchSensors()
public void setNumberOfTempSensors(int numberOfTempSensors)
numberOfTempSensors
- the numberOfTempSensors to setpublic int getNumberOfTempSensors()
public void setEventIntervall(int eventIntervall)
eventIntervall
- the eventIntervall to setpublic int getEventIntervall()
Copyright © 2018 universAAL Consortium. All rights reserved.