edu.asu.cri.MirkE.dataStructures
Class UnitValue

java.lang.Object
  extended byedu.asu.cri.MirkE.dataStructures.UnitValue
Direct Known Subclasses:
MeasuredValue

public class UnitValue
extends java.lang.Object

storage for a scalar (double) value and an associated Unit TODO - replace the scalar with an arbitrary Object (will take too much time to develope with hibernate for now)


Constructor Summary
UnitValue()
          default constructor
UnitValue(double value, Unit units)
          constructor
 
Method Summary
 boolean equals(java.lang.Object object)
           
 long getId()
           
 Unit getUnits()
           
 double getValue()
           
 boolean isEditable()
           
 void setEditable(boolean editable)
           
 void setId(long id)
           
 void setUnits(Unit unit)
           
 void setValue(double value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnitValue

public UnitValue()
default constructor


UnitValue

public UnitValue(double value,
                 Unit units)
constructor

Parameters:
value -
units -
Method Detail

getId

public long getId()
Returns:
id

setId

public void setId(long id)
Parameters:
id -

isEditable

public boolean isEditable()
Returns:
editable

setEditable

public void setEditable(boolean editable)
Parameters:
editable -

getUnits

public Unit getUnits()
Returns:
Returns the unit.

setUnits

public void setUnits(Unit unit)
Parameters:
unit - The unit to set.

setValue

public void setValue(double value)
Parameters:
value -

getValue

public double getValue()
Returns:
value

toString

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

equals

public boolean equals(java.lang.Object object)
See Also:
Object.equals(java.lang.Object)


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