com.cumulocity.model.measurement
Class MeasurementValue

java.lang.Object
  extended by com.cumulocity.model.measurement.MeasurementValue
Direct Known Subclasses:
AccelerationValue, BearingValue, CoordinateValue, EnergyValue, MotionValue, PowerValue, SpeedValue, TemperatureValue

public class MeasurementValue
extends Object


Constructor Summary
MeasurementValue()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getQuantity()
           
 StateType getState()
           
 ValueType getType()
           
 String getUnit()
           
 BigDecimal getValue()
           
 int hashCode()
           
 void setQuantity(String quantity)
           
 void setState(StateType state)
           
 void setType(ValueType type)
           
 void setUnit(String unit)
           
 void setValue(BigDecimal value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasurementValue

public MeasurementValue()
Method Detail

getValue

@JSONProperty(ignoreIfNull=false)
public BigDecimal getValue()

setValue

public void setValue(BigDecimal value)

getUnit

@JSONProperty(ignoreIfNull=false)
public String getUnit()

setUnit

public void setUnit(String unit)

getType

@JSONProperty(ignoreIfNull=false)
public ValueType getType()

setType

public void setType(ValueType type)

getQuantity

@JSONProperty(ignoreIfNull=false)
public String getQuantity()

setQuantity

public void setQuantity(String quantity)

getState

@JSONProperty(ignoreIfNull=true)
public StateType getState()

setState

public void setState(StateType state)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.