blob: 344c63250e9590067047da7f26f9cd570d42b141 [file] [log] [blame]
package org.eclipse.om2m.sdt.home.modules;
import org.eclipse.om2m.sdt.Domain;
import org.eclipse.om2m.sdt.Module;
import org.eclipse.om2m.sdt.datapoints.BooleanDataPoint;
import org.eclipse.om2m.sdt.datapoints.IntegerDataPoint;
import org.eclipse.om2m.sdt.exceptions.AccessException;
import org.eclipse.om2m.sdt.exceptions.DataPointException;
import org.eclipse.om2m.sdt.home.types.ModuleType;
public class KeepWarm extends BinarySwitch {
private IntegerDataPoint time;
public KeepWarm(String name, Domain domain, BooleanDataPoint keepWarmSwitch){
super(name, domain, ModuleType.keepWarm.getDefinition(), keepWarmSwitch);
}
public int getTime() throws DataPointException, AccessException {
return time.getValue();
}
public void setTime(IntegerDataPoint time){
this.time = time;
addDataPoint(this.time);
}
}