Package com.cumulocity.model.measurement

Examples of com.cumulocity.model.measurement.MeasurementValue


    private SpeedMeasurement measurement;
   
    @Before
    public void setUp() throws Exception {
       
        MeasurementValue mValue= new MeasurementValue();
        mValue.setValue(new BigDecimal(1.0));
        mValue.setUnit("-");
        mValue.setType(ValueType.BOOLEAN);
       
        MeasurementValue sValue= new MeasurementValue();
        sValue.setValue(new BigDecimal(9.8));
        sValue.setUnit("m/s");

        measurement = new SpeedMeasurement();
        measurement.setMotion(mValue);
        measurement.setSpeed(sValue);
    }
View Full Code Here


  public BigDecimal getHumidity() {
    return h == null ? null : h.getValue();
  }

  public void setHumidity(BigDecimal humidity) {
    h = new MeasurementValue(HUM_UNIT);
    h.setValue(humidity);
  }
View Full Code Here

  public BigDecimal getTemperature() {
    return t == null ? null : t.getValue();
  }

  public void setTemperature(BigDecimal temperature) {
    t = new MeasurementValue(TEMP_UNIT);
    t.setValue(temperature);
  }
View Full Code Here

  public BigDecimal getPressure() {
    return p == null ? null : p.getValue();
  }

  public void setPressure(BigDecimal pressure) {
    p = new MeasurementValue(PRESS_UNIT);
    p.setValue(pressure);
  }
View Full Code Here

  public BigDecimal getAltitude() {
    return alt == null ? null : alt.getValue();
  }
 
  public void setAltitude(BigDecimal altitude) {
    alt = new MeasurementValue(ALT_UNIT);
    alt.setValue(altitude);
  }
View Full Code Here

  public BigDecimal getAccelerationValue() {
    return acceleration == null ? null : acceleration.getValue();
  }

  public void setAccelerationValue(BigDecimal acc) {
    acceleration = new MeasurementValue(ACC_UNIT);
    acceleration.setValue(acc);
  }
View Full Code Here

  public BigDecimal getLevelValue() {
    return level == null ? null : level.getValue();
  }
 
  public void setLevelValue(BigDecimal lev) {
    level = new MeasurementValue(LEVEL_UNIT);
    level.setValue(lev);
  }
View Full Code Here

  public BigDecimal getIlluminance() {
    return e == null ? null : e.getValue();
  }

  public void setIlluminance(BigDecimal illuminance) {
    e = new MeasurementValue(LIGHT_UNIT);
    e.setValue(illuminance);
  }
View Full Code Here

  public BigDecimal getRssiValue() {
    return rssi == null ? null : rssi.getValue();
  }

  public void setRssiValue(BigDecimal rssiVal) {
    rssi = new MeasurementValue(RSSI_UNIT);
    rssi.setValue(rssiVal);
  }
View Full Code Here

  public BigDecimal getBerValue() {
    return ber == null ? null : ber.getValue();
  }

  public void setBerValue(BigDecimal berValue) {
    ber = new MeasurementValue(BER_UNIT);
    ber.setValue(berValue);
  }
View Full Code Here

TOP

Related Classes of com.cumulocity.model.measurement.MeasurementValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.