eu.scape_project.watch.domain
Class Measurement

java.lang.Object
  extended by thewebsemantic.binding.RdfBean<Measurement>
      extended by eu.scape_project.watch.domain.Measurement

public class Measurement
extends thewebsemantic.binding.RdfBean<Measurement>

Logs the moment when a property value was measured.

Author:
Luis Faria

Constructor Summary
Measurement()
          Create a new empty measurement.
Measurement(PropertyValue pv, long t)
          Create a new measurement.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
          The unique identifier of the measurement.
 PropertyValue getPropertyValue()
           
 long getTimestamp()
           
 int hashCode()
           
 void setPropertyValue(PropertyValue propertyValue)
           
 void setTimestamp(long timestamp)
           
 
Methods inherited from class thewebsemantic.binding.RdfBean
asIndividual, delete, fill, fill, load, query, refresh, save
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Measurement

public Measurement()
Create a new empty measurement.


Measurement

public Measurement(PropertyValue pv,
                   long t)
Create a new measurement.

Parameters:
pv - The measured property value
t - The moment in time of the measurement
Method Detail

getId

public String getId()
The unique identifier of the measurement.

Returns:
The related property value name concatenated with the timestamp

getPropertyValue

public PropertyValue getPropertyValue()

setPropertyValue

public void setPropertyValue(PropertyValue propertyValue)

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long timestamp)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2012. All Rights Reserved.