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, removeMatchingProfiles
getComment, getLabel, getType, getURI, setComment, setLabel
public static ContextEventPattern[] providedEvents(MyLighting theServer)
public void communicationChannelBroken()
ServiceCallee
communicationChannelBroken
in class ServiceCallee
public ServiceResponse handleCall(ServiceCall call)
ServiceCallee
ServiceCallee
. It is called
by the bus whenever there is a call that need to be serviced by this
ServiceCallee
.handleCall
in class ServiceCallee
call
- the call that needs to be serviced.public void lampStateChanged(int lampID, String loc, boolean isOn)
lampStateChanged
in interface LampStateListener
Copyright © 2018 universAAL Consortium. All rights reserved.