net.sf.lavalamp.device
Class AbstractDevice

java.lang.Object
  extended by net.sf.lavalamp.device.AbstractDevice
All Implemented Interfaces:
Device
Direct Known Subclasses:
DummyApp, TellStick, TellStickJni

public abstract class AbstractDevice
extends Object
implements Device


Field Summary
protected  String identity
           
protected  LavaLogger logger
           
protected  Period offPeriod
           
protected  DeviceProperties properties
           
 
Constructor Summary
AbstractDevice()
           
 
Method Summary
 Actions getActions()
           
 Period getAlwaysOffPeriod()
           
 boolean isAlwaysOff(Calendar now)
           
 void setAlwaysOffPeriod(Period period)
           
 void setProperties(DeviceProperties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.lavalamp.device.Device
init, turnOff, turnOn
 

Field Detail

logger

protected LavaLogger logger

identity

protected String identity

offPeriod

protected Period offPeriod

properties

protected DeviceProperties properties
Constructor Detail

AbstractDevice

public AbstractDevice()
Method Detail

getActions

public Actions getActions()
Specified by:
getActions in interface Device

setProperties

public void setProperties(DeviceProperties properties)
Specified by:
setProperties in interface Device

setAlwaysOffPeriod

public void setAlwaysOffPeriod(Period period)
Specified by:
setAlwaysOffPeriod in interface Device

isAlwaysOff

public boolean isAlwaysOff(Calendar now)
Specified by:
isAlwaysOff in interface Device

getAlwaysOffPeriod

public Period getAlwaysOffPeriod()
Specified by:
getAlwaysOffPeriod in interface Device


Copyright © 2010. All Rights Reserved.