Class Datapoint

java.lang.Object
org.openremote.model.datapoint.Datapoint
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AssetDatapoint, AssetPredictedDatapoint

@MappedSuperclass public abstract class Datapoint extends Object implements Serializable

A datapoint is used to hold time series data of an entity attribute.

See Also:
  • Field Details

    • assetId

      protected String assetId
    • attributeName

      protected String attributeName
    • timestamp

      protected Date timestamp
    • value

      protected Object value
  • Constructor Details

    • Datapoint

      public Datapoint()
    • Datapoint

      public Datapoint(AttributeState attributeState, long timestamp)
    • Datapoint

      public Datapoint(AttributeEvent stateEvent)
    • Datapoint

      public Datapoint(AttributeRef attributeRef, Object value, long timestamp)
    • Datapoint

      public Datapoint(String assetId, String attributeName, Object value, long timestamp)
  • Method Details

    • getAssetId

      public String getAssetId()
    • setAssetId

      public void setAssetId(String assetId)
    • getAttributeName

      public String getAttributeName()
    • setAttributeName

      public void setAttributeName(String attributeName)
    • getTimestamp

      public long getTimestamp()
    • setTimestamp

      public void setTimestamp(long timestamp)
    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object