All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.fispace.api.ag.GreenhouseSensorValues Maven / Gradle / Ivy

There is a newer version: 0.17.5
Show newest version
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.7 
// Visite http://java.sun.com/xml/jaxb 
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen. 
// Generado el: 2016.04.10 a las 11:14:17 AM CEST 
//


package eu.fispace.api.ag;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;


/**
 * 
 *                     This class represents the set of sensor values as defined in the overall greenhouse
 *                     example scenario.
 * 
 *                     This set of values will e.g. be sent to FIspace as part of the message
 *                     @link eu.fispace.api.sdi.domain.ag.vo.GreenhouseSensorInformation [GreenhouseSensorInformation].
 *                 
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GreenhouseSensorValues", propOrder = {
    "temperature",
    "luminosity",
    "airHumidity",
    "ph",
    "ec",
    "soilMoisture",
    "co2"
})
public class GreenhouseSensorValues
    implements Serializable, ToString
{

    @XmlElement(name = "Temperature")
    protected SensorValueType temperature;
    @XmlElement(name = "Luminosity")
    protected SensorValueType luminosity;
    @XmlElement(name = "AirHumidity")
    protected SensorValueType airHumidity;
    @XmlElement(name = "PH")
    protected SensorValueType ph;
    @XmlElement(name = "EC")
    protected SensorValueType ec;
    @XmlElement(name = "SoilMoisture")
    protected SensorValueType soilMoisture;
    @XmlElement(name = "CO2")
    protected SensorValueType co2;

    /**
     * Obtiene el valor de la propiedad temperature.
     * 
     * @return
     *     possible object is
     *     {@link SensorValueType }
     *     
     */
    public SensorValueType getTemperature() {
        return temperature;
    }

    /**
     * Define el valor de la propiedad temperature.
     * 
     * @param value
     *     allowed object is
     *     {@link SensorValueType }
     *     
     */
    public void setTemperature(SensorValueType value) {
        this.temperature = value;
    }

    public boolean isSetTemperature() {
        return (this.temperature!= null);
    }

    /**
     * Obtiene el valor de la propiedad luminosity.
     * 
     * @return
     *     possible object is
     *     {@link SensorValueType }
     *     
     */
    public SensorValueType getLuminosity() {
        return luminosity;
    }

    /**
     * Define el valor de la propiedad luminosity.
     * 
     * @param value
     *     allowed object is
     *     {@link SensorValueType }
     *     
     */
    public void setLuminosity(SensorValueType value) {
        this.luminosity = value;
    }

    public boolean isSetLuminosity() {
        return (this.luminosity!= null);
    }

    /**
     * Obtiene el valor de la propiedad airHumidity.
     * 
     * @return
     *     possible object is
     *     {@link SensorValueType }
     *     
     */
    public SensorValueType getAirHumidity() {
        return airHumidity;
    }

    /**
     * Define el valor de la propiedad airHumidity.
     * 
     * @param value
     *     allowed object is
     *     {@link SensorValueType }
     *     
     */
    public void setAirHumidity(SensorValueType value) {
        this.airHumidity = value;
    }

    public boolean isSetAirHumidity() {
        return (this.airHumidity!= null);
    }

    /**
     * Obtiene el valor de la propiedad ph.
     * 
     * @return
     *     possible object is
     *     {@link SensorValueType }
     *     
     */
    public SensorValueType getPH() {
        return ph;
    }

    /**
     * Define el valor de la propiedad ph.
     * 
     * @param value
     *     allowed object is
     *     {@link SensorValueType }
     *     
     */
    public void setPH(SensorValueType value) {
        this.ph = value;
    }

    public boolean isSetPH() {
        return (this.ph!= null);
    }

    /**
     * Obtiene el valor de la propiedad ec.
     * 
     * @return
     *     possible object is
     *     {@link SensorValueType }
     *     
     */
    public SensorValueType getEC() {
        return ec;
    }

    /**
     * Define el valor de la propiedad ec.
     * 
     * @param value
     *     allowed object is
     *     {@link SensorValueType }
     *     
     */
    public void setEC(SensorValueType value) {
        this.ec = value;
    }

    public boolean isSetEC() {
        return (this.ec!= null);
    }

    /**
     * Obtiene el valor de la propiedad soilMoisture.
     * 
     * @return
     *     possible object is
     *     {@link SensorValueType }
     *     
     */
    public SensorValueType getSoilMoisture() {
        return soilMoisture;
    }

    /**
     * Define el valor de la propiedad soilMoisture.
     * 
     * @param value
     *     allowed object is
     *     {@link SensorValueType }
     *     
     */
    public void setSoilMoisture(SensorValueType value) {
        this.soilMoisture = value;
    }

    public boolean isSetSoilMoisture() {
        return (this.soilMoisture!= null);
    }

    /**
     * Obtiene el valor de la propiedad co2.
     * 
     * @return
     *     possible object is
     *     {@link SensorValueType }
     *     
     */
    public SensorValueType getCO2() {
        return co2;
    }

    /**
     * Define el valor de la propiedad co2.
     * 
     * @param value
     *     allowed object is
     *     {@link SensorValueType }
     *     
     */
    public void setCO2(SensorValueType value) {
        this.co2 = value;
    }

    public boolean isSetCO2() {
        return (this.co2 != null);
    }

    public String toString() {
        final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
        final StringBuilder buffer = new StringBuilder();
        append(null, buffer, strategy);
        return buffer.toString();
    }

    public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
        strategy.appendStart(locator, this, buffer);
        appendFields(locator, buffer, strategy);
        strategy.appendEnd(locator, this, buffer);
        return buffer;
    }

    public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
        {
            SensorValueType theTemperature;
            theTemperature = this.getTemperature();
            strategy.appendField(locator, this, "temperature", buffer, theTemperature);
        }
        {
            SensorValueType theLuminosity;
            theLuminosity = this.getLuminosity();
            strategy.appendField(locator, this, "luminosity", buffer, theLuminosity);
        }
        {
            SensorValueType theAirHumidity;
            theAirHumidity = this.getAirHumidity();
            strategy.appendField(locator, this, "airHumidity", buffer, theAirHumidity);
        }
        {
            SensorValueType thePH;
            thePH = this.getPH();
            strategy.appendField(locator, this, "ph", buffer, thePH);
        }
        {
            SensorValueType theEC;
            theEC = this.getEC();
            strategy.appendField(locator, this, "ec", buffer, theEC);
        }
        {
            SensorValueType theSoilMoisture;
            theSoilMoisture = this.getSoilMoisture();
            strategy.appendField(locator, this, "soilMoisture", buffer, theSoilMoisture);
        }
        {
            SensorValueType theCO2;
            theCO2 = this.getCO2();
            strategy.appendField(locator, this, "co2", buffer, theCO2);
        }
        return buffer;
    }

    public GreenhouseSensorValues withTemperature(SensorValueType value) {
        setTemperature(value);
        return this;
    }

    public GreenhouseSensorValues withLuminosity(SensorValueType value) {
        setLuminosity(value);
        return this;
    }

    public GreenhouseSensorValues withAirHumidity(SensorValueType value) {
        setAirHumidity(value);
        return this;
    }

    public GreenhouseSensorValues withPH(SensorValueType value) {
        setPH(value);
        return this;
    }

    public GreenhouseSensorValues withEC(SensorValueType value) {
        setEC(value);
        return this;
    }

    public GreenhouseSensorValues withSoilMoisture(SensorValueType value) {
        setSoilMoisture(value);
        return this;
    }

    public GreenhouseSensorValues withCO2(SensorValueType value) {
        setCO2(value);
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy