org.universAAL.lddi.hw.simulator.activityhub
Class AHSimulator
java.lang.Object
org.universAAL.lddi.hw.simulator.activityhub.AHSimulator
- All Implemented Interfaces:
- org.osgi.service.cm.ManagedService
public class AHSimulator
- extends Object
- implements org.osgi.service.cm.ManagedService
Instantiates several ActivityHub devices according to config.
Starts the context publisher thread.
- Author:
- Thomas Fuxreiter (foex@gmx.at)
Constructor Summary |
AHSimulator(org.osgi.framework.BundleContext context,
org.osgi.service.log.LogService logger,
ModuleContext mc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
motionSensors
public List<MotionSensor> motionSensors
contactClosureSensors
public List<ContactClosureSensor> contactClosureSensors
usageSensors
public List<UsageSensor> usageSensors
switchSensors
public List<SwitchSensor> switchSensors
tempSensors
public List<TemperatureSensor> tempSensors
AHSimulator
public AHSimulator(org.osgi.framework.BundleContext context,
org.osgi.service.log.LogService logger,
ModuleContext mc)
getLogger
public org.osgi.service.log.LogService getLogger()
updated
public void updated(Dictionary properties)
throws org.osgi.service.cm.ConfigurationException
- Get updated from ConfigurationAdmin.
- Specified by:
updated
in interface org.osgi.service.cm.ManagedService
- Throws:
org.osgi.service.cm.ConfigurationException
setNumberOfContactClosureSensors
public void setNumberOfContactClosureSensors(int numberOfContactClosureSensors)
- Parameters:
numberOfContactClosureSensors
- the numberOfContactClosureSensors to set
getNumberOfContactClosureSensors
public int getNumberOfContactClosureSensors()
- Returns:
- the numberOfContactClosureSensors
setNumberOfMotionSensors
public void setNumberOfMotionSensors(int numberOfMotionSensors)
- Parameters:
numberOfMotionSensors
- the numberOfMotionSensors to set
getNumberOfMotionSensors
public int getNumberOfMotionSensors()
- Returns:
- the numberOfMotionSensors
setNumberOfUsageSensors
public void setNumberOfUsageSensors(int numberOfUsageSensors)
- Parameters:
numberOfUsageSensors
- the numberOfUsageSensors to set
getNumberOfUsageSensors
public int getNumberOfUsageSensors()
- Returns:
- the numberOfUsageSensors
setNumberOfSwitchSensors
public void setNumberOfSwitchSensors(int numberOfSwitchSensors)
- Parameters:
numberOfSwitchSensors
- the numberOfSwitchSensors to set
getNumberOfSwitchSensors
public int getNumberOfSwitchSensors()
- Returns:
- the numberOfSwitchSensors
setNumberOfTempSensors
public void setNumberOfTempSensors(int numberOfTempSensors)
- Parameters:
numberOfTempSensors
- the numberOfTempSensors to set
getNumberOfTempSensors
public int getNumberOfTempSensors()
- Returns:
- the numberOfTempSensors
setEventIntervall
public void setEventIntervall(int eventIntervall)
- Parameters:
eventIntervall
- the eventIntervall to set
getEventIntervall
public int getEventIntervall()
- Returns:
- the eventIntervall
Copyright © 2014 universAAL Consortium. All Rights Reserved.