public class SituationMonitorImpl extends ContextSubscriber implements SituationMonitor
busResourceURI, owner, theBus
Constructor and Description |
---|
SituationMonitorImpl(ModuleContext mc) |
Modifier and Type | Method and Description |
---|---|
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) |
addNewRegParams, busDyingOut, getAllProvisions, getMyID, handleEvent, removeMatchingRegParams
getComment, getLabel, getType, getURI, setComment, setLabel
public SituationMonitorImpl(ModuleContext mc)
public Location locationOf(Device d)
locationOf
in interface SituationMonitor
public Location getInternalStateOf(Location l)
getInternalStateOf
in interface SituationMonitor
public Device getInternalStateOf(Device d)
getInternalStateOf
in interface SituationMonitor
public List<Location> getAllAvailableLocations()
getAllAvailableLocations
in interface SituationMonitor
public List<Device> devicesInLocation(Location loc)
devicesInLocation
in interface SituationMonitor
public void addListener(LocationChangeListener lcl)
addListener
in interface SituationMonitor
public void removeListener(LocationChangeListener lcl)
removeListener
in interface SituationMonitor
public void close()
close
in interface SituationMonitor
close
in class BusMember
public void communicationChannelBroken()
communicationChannelBroken
in class ContextSubscriber
public void handleContextEvent(ContextEvent event)
handleContextEvent
in class ContextSubscriber
event
- The Context Event that matched the registered PatternsCopyright © 2018 universAAL Consortium. All rights reserved.