/*******************************************************************************
* Copyright 2015 UPM - Universidad Politécnica de Madrid
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package org.universAAL.ontology.hvac;
import org.universAAL.middleware.owl.supply.LevelRating;
/**
* A type of HVAC device that is capable of reading the temperature and react according to a target temperature.
* @author Ricardo
*/
public abstract class Target_Temperature extends Hvac {
public static final String MY_URI = HvacOntology.NAMESPACE
+ "Target_Temperature";
public static final String PROP_TEMPERATURE_UNIT = HvacOntology.NAMESPACE
+ "temperatureUnit";
public static final String PROP_TARGET_TEMPERATURE_VALUE = HvacOntology.NAMESPACE
+ "targetTemperatureValue";
public static final String PROP_CURRENT_TEMPERATURE_VALUE = HvacOntology.NAMESPACE
+ "currentTemperatureValue";
public Target_Temperature() {
super();
}
public Target_Temperature(String uri) {
super(uri);
}
public String getClassURI() {
return MY_URI;
}
public boolean isWellFormed() {
return true && hasProperty(PROP_HAS_STATUSVALUE);
}
public Float getCurrentTemperatureValue() {
return (Float) getProperty(PROP_CURRENT_TEMPERATURE_VALUE);
}
public boolean setTarget_Temperature_Value(Float targetTemperature) {
return changeProperty(PROP_TARGET_TEMPERATURE_VALUE, targetTemperature);
}
public LevelRating getFan() {
return (LevelRating) getProperty(PROP_HAS_FAN);
}
public boolean setFan(LevelRating fan) {
return changeProperty(PROP_HAS_FAN, fan);
}
public LevelRating getSwing() {
return (LevelRating) getProperty(PROP_HAS_SWING);
}
public boolean setSwing(LevelRating swing) {
return changeProperty(PROP_HAS_SWING, swing);
}
}