org.security.session.manager.impl
Class SituationMonitorImpl

Package class diagram package SituationMonitorImpl
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Subscriber
          extended by org.universAAL.middleware.context.ContextSubscriber
              extended by org.security.session.manager.impl.SituationMonitorImpl
All Implemented Interfaces:
SituationMonitor

public class SituationMonitorImpl
extends ContextSubscriber
implements SituationMonitor

Author:
amedrano

Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
SituationMonitorImpl(ModuleContext mc)
           
 
Method Summary
 void addListener(LocationChangeListener lcl)
          
 void close()
          
 void communicationChannelBroken()
          
 List<Device> devicesInLocation(Location loc)
          
 List<Location> getAllAvailableLocations()
          
 Device getInternalStateOf(Device d)
          
 Location getInternalStateOf(Location l)
          
 void handleContextEvent(ContextEvent event)
          
 Location locationOf(Device d)
          
 void removeListener(LocationChangeListener lcl)
          
 
Methods inherited from class org.universAAL.middleware.context.ContextSubscriber
addNewRegParams, busDyingOut, getAllProvisions, getMyID, handleEvent, removeMatchingRegParams
 
Methods inherited from class org.universAAL.middleware.bus.member.BusMember
getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SituationMonitorImpl

public SituationMonitorImpl(ModuleContext mc)
Method Detail

locationOf

public Location locationOf(Device d)

Specified by:
locationOf in interface SituationMonitor

getInternalStateOf

public Location getInternalStateOf(Location l)

Specified by:
getInternalStateOf in interface SituationMonitor

getInternalStateOf

public Device getInternalStateOf(Device d)

Specified by:
getInternalStateOf in interface SituationMonitor

getAllAvailableLocations

public List<Location> getAllAvailableLocations()

Specified by:
getAllAvailableLocations in interface SituationMonitor

devicesInLocation

public List<Device> devicesInLocation(Location loc)

Specified by:
devicesInLocation in interface SituationMonitor

addListener

public void addListener(LocationChangeListener lcl)

Specified by:
addListener in interface SituationMonitor

removeListener

public void removeListener(LocationChangeListener lcl)

Specified by:
removeListener in interface SituationMonitor

close

public void close()

Specified by:
close in interface SituationMonitor
Overrides:
close in class BusMember

communicationChannelBroken

public void communicationChannelBroken()

Specified by:
communicationChannelBroken in class ContextSubscriber

handleContextEvent

public void handleContextEvent(ContextEvent event)

Specified by:
handleContextEvent in class ContextSubscriber
Parameters:
event - The Context Event that matched the registered Patterns


Copyright © 2014 universAAL Consortium. All Rights Reserved.