edu.asu.cri.MirkE.dataStructures
Class DataPoint

java.lang.Object
  extended byedu.asu.cri.MirkE.dataStructures.DataPoint

public class DataPoint
extends java.lang.Object

A DataPoint represents a single, atomic set of measurements. It contains a Timestamp (representing when the DataPoint's observation took place) and an observableToMeasuredValueMap which maps from an Observable being measured (or a String name) to an appropriate class representing the measurement (typically a UnitValue or a MeasuredValue)

Author:
Scott Menor

Constructor Summary
DataPoint()
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.util.Map getDescriptorMap()
          Deprecated.  
 long getId()
           
 java.util.Map getObservableToMeasuredValueMap()
          get a Map mapping from Observables to corresponding MeasuredValues
 java.lang.Object getObservationFromObservable(java.lang.Object observable)
           
 java.sql.Timestamp getTimestamp()
          Deprecated.  
 int hashCode()
           
 void setDescriptorMap(java.util.Map descriptorMap)
          Deprecated.  
 void setId(long id)
           
 void setObservableToMeasuredValueMap(java.util.Map observableToMeasuredValueMap)
           
 void setTimestamp(java.sql.Timestamp timestamp)
          Deprecated.  
 void storeUnitValueForObservable(java.lang.Object observable, UnitValue unitValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataPoint

public DataPoint()
Method Detail

getId

public long getId()
Returns:
id

setId

public void setId(long id)
Parameters:
id -

getTimestamp

public java.sql.Timestamp getTimestamp()
Deprecated.  

Returns:
Timestamp for the DataPoint

setTimestamp

public void setTimestamp(java.sql.Timestamp timestamp)
Deprecated.  

Parameters:
timestamp - representing when the DataPoint was measured.

setDescriptorMap

public void setDescriptorMap(java.util.Map descriptorMap)
Deprecated.  

Parameters:
descriptorMap -

getDescriptorMap

public java.util.Map getDescriptorMap()
Deprecated.  

Returns:
descriptorMap

getObservableToMeasuredValueMap

public java.util.Map getObservableToMeasuredValueMap()
get a Map mapping from Observables to corresponding MeasuredValues

Returns:
observableToMeasuredValueMap

getObservationFromObservable

public java.lang.Object getObservationFromObservable(java.lang.Object observable)
Parameters:
observable -
Returns:
an observation Object (possibly a UnitValue, MeasuredValue or a Number) corresponding to the observable.

storeUnitValueForObservable

public void storeUnitValueForObservable(java.lang.Object observable,
                                        UnitValue unitValue)
Parameters:
observable -
unitValue - corresponding to the observable.

setObservableToMeasuredValueMap

public void setObservableToMeasuredValueMap(java.util.Map observableToMeasuredValueMap)
Parameters:
observableToMeasuredValueMap -

toString

public java.lang.String toString()
Returns:
string

hashCode

public int hashCode()
Returns:
hashCode

equals

public boolean equals(java.lang.Object object)
Parameters:
object -
Returns:
isEqual


Copyright © 2004-2005 Arizona State University - Cancer Research Institute - hosted by Sourceforge. All Rights Reserved.