org.universAAL.samples.lighting.server
Class LightingProvider
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Callee
org.universAAL.middleware.service.ServiceCallee
org.universAAL.samples.lighting.server.LightingProvider
- All Implemented Interfaces:
- LampStateListener
public class LightingProvider
- extends ServiceCallee
- implements LampStateListener
- Author:
- mtazari
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
providedEvents
public static ContextEventPattern[] providedEvents(MyLighting theServer)
- Helper method to construct the ontological declaration of context events
published by LightingProvider.
communicationChannelBroken
public void communicationChannelBroken()
- Description copied from class:
ServiceCallee
- This abstract method is called for each member of the bus when the bus is
being stopped.
- Specified by:
communicationChannelBroken
in class ServiceCallee
handleCall
public ServiceResponse handleCall(ServiceCall call)
- Description copied from class:
ServiceCallee
- The actual service method of the
ServiceCallee
. It is called
by the bus whenever there is a call that need to be serviced by this
ServiceCallee
.
- Specified by:
handleCall
in class ServiceCallee
- Parameters:
call
- the call that needs to be serviced.
- Returns:
- the result of the call execution.
lampStateChanged
public void lampStateChanged(int lampID,
String loc,
boolean isOn)
- Specified by:
lampStateChanged
in interface LampStateListener
Copyright © 2014 universAAL Consortium. All Rights Reserved.