edu.asu.cri.MirkE.dataStructures
Class UnitValue
java.lang.Object
edu.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)
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnitValue
public UnitValue()
- default constructor
UnitValue
public UnitValue(double value,
Unit units)
- constructor
- Parameters:
value
- units
-
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.