
public class LightingProvider extends ServiceCallee implements LampStateListener
busResourceURI, owner, theBus| Modifier and Type | Method and Description |
|---|---|
void |
close()
Unregisters the Subscriber from the bus.
|
void |
communicationChannelBroken()
This abstract method is called for each member of the bus when the bus is
being stopped.
|
ServiceResponse |
handleCall(ServiceCall call)
The actual service method of the
ServiceCallee. |
void |
lampStateChanged(int lampID,
String loc,
boolean isOn) |
static ContextEventPattern[] |
providedEvents(MyLighting theServer)
Helper method to construct the ontological declaration of context events
published by LightingProvider.
|
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfilesgetComment, getLabel, getType, getURI, setComment, setLabelpublic static ContextEventPattern[] providedEvents(MyLighting theServer)
public void communicationChannelBroken()
ServiceCalleecommunicationChannelBroken in class ServiceCalleepublic ServiceResponse handleCall(ServiceCall call)
ServiceCalleeServiceCallee. It is called
by the bus whenever there is a call that need to be serviced by this
ServiceCallee.handleCall in class ServiceCalleecall - the call that needs to be serviced.public void lampStateChanged(int lampID,
String loc,
boolean isOn)
lampStateChanged in interface LampStateListenerCopyright © 2018 universAAL Consortium. All rights reserved.