edu.ntnu.cikmr.services.temperature
Class TemperatureActuatorGreenRoomResource

java.lang.Object
  extended by edu.ntnu.cikmr.services.AbstractService
      extended by edu.ntnu.cikmr.services.resources.AbstractResourceService
          extended by edu.ntnu.cikmr.services.temperature.TemperatureActuatorGreenRoomResource
All Implemented Interfaces:
SimpleNumericActuator, Service

public class TemperatureActuatorGreenRoomResource
extends AbstractResourceService
implements SimpleNumericActuator


Field Summary
 
Fields inherited from class edu.ntnu.cikmr.services.AbstractService
listenerList
 
Constructor Summary
TemperatureActuatorGreenRoomResource()
           
 
Method Summary
 int getLevel()
           
 ResourceDescription getResourceDescription()
           
 void init(ServiceManager manager)
          init
 boolean isStarted()
          isStarted
 void setLevel(int level)
           
 void setValue(double d)
           
 void start(PeerGroup peerGroup)
          start
 void stop()
          stop
 
Methods inherited from class edu.ntnu.cikmr.services.resources.AbstractResourceService
invokeMethods, startResource, stopResource
 
Methods inherited from class edu.ntnu.cikmr.services.AbstractService
addServiceListener, fireServiceStarted, fireServiceStopped, removeServiceListner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemperatureActuatorGreenRoomResource

public TemperatureActuatorGreenRoomResource()
Method Detail

init

public void init(ServiceManager manager)
init

Specified by:
init in interface Service
Parameters:
manager - ServiceManager

getLevel

public int getLevel()

setLevel

public void setLevel(int level)

isStarted

public boolean isStarted()
isStarted

Specified by:
isStarted in interface Service
Returns:
boolean

start

public void start(PeerGroup peerGroup)
           throws java.io.IOException
start

Specified by:
start in interface Service
Parameters:
peerGroup - PeerGroup
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
stop

Specified by:
stop in interface Service
Throws:
java.io.IOException

getResourceDescription

public ResourceDescription getResourceDescription()
Specified by:
getResourceDescription in class AbstractResourceService

setValue

public void setValue(double d)
Specified by:
setValue in interface SimpleNumericActuator