org.universAAL.lddi.hw.simulator.activityhub
Class AHSimulator

Package class diagram package AHSimulator
java.lang.Object
  extended by 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)

Field Summary
 List<ContactClosureSensor> contactClosureSensors
           
 List<MotionSensor> motionSensors
           
 List<SwitchSensor> switchSensors
           
 List<TemperatureSensor> tempSensors
           
 List<UsageSensor> usageSensors
           
 
Constructor Summary
AHSimulator(org.osgi.framework.BundleContext context, org.osgi.service.log.LogService logger, ModuleContext mc)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AHSimulator

public AHSimulator(org.osgi.framework.BundleContext context,
                   org.osgi.service.log.LogService logger,
                   ModuleContext mc)
Method Detail

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.