Class ContextSource


  • public class ContextSource
    extends java.lang.Object
    ContextSource - a context source may relate to different types of sensors and other information sources.
    • Constructor Summary

      Constructors 
      Constructor Description
      ContextSource​(java.lang.String sourceName)
      Creates a context source instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<Sensor> getSensors()
      Gets all the sensors registered for this context source
      void registerSensor​(Sensor sensor)
      Registers a sensor for this context source
      void unRegisterSensor​(Sensor sensor)
      Unregisters a sensor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContextSource

        public ContextSource​(java.lang.String sourceName)
        Creates a context source instance
        Parameters:
        sourceName -
    • Method Detail

      • registerSensor

        public void registerSensor​(Sensor sensor)
        Registers a sensor for this context source
        Parameters:
        sensor -
      • unRegisterSensor

        public void unRegisterSensor​(Sensor sensor)
        Unregisters a sensor
        Parameters:
        sensor -
      • getSensors

        public java.util.Iterator<Sensor> getSensors()
        Gets all the sensors registered for this context source
        Returns: