gov.nih.nci.caarray.domain.project
Class MeasurementFactorValue

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.AbstractCaArrayEntity
          extended by gov.nih.nci.caarray.domain.AbstractUnitableValue
              extended by gov.nih.nci.caarray.domain.project.AbstractFactorValue
                  extended by gov.nih.nci.caarray.domain.project.MeasurementFactorValue
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, MeasurementValue, UnitableValue, java.io.Serializable

public class MeasurementFactorValue
extends AbstractFactorValue
implements MeasurementValue

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
CAARRAY_LSID_AUTHORITY, CAARRAY_LSID_NAMESPACE
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH
 
Constructor Summary
MeasurementFactorValue()
          Hibernate-only constructor.
MeasurementFactorValue(java.lang.Float value, Term unit)
          Create a new factor value with given fields.
 
Method Summary
 java.lang.String getDisplayValueWithoutUnit()
          
 java.lang.Float getValue()
           
 void setValue(java.lang.Float value)
           
 
Methods inherited from class gov.nih.nci.caarray.domain.project.AbstractFactorValue
getFactor, getHybridization, getUnit, setFactor, setHybridization, setUnit
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractUnitableValue
getDisplayValue
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
getLsid, getLsidAuthority, getLsidNamespace, getLsidObjectId, setLsid, setLsid, setLsidForEntity
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
equals, getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, hashCode, setCaBigId, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nih.nci.caarray.domain.UnitableValue
getDisplayValue, getUnit, setUnit
 

Constructor Detail

MeasurementFactorValue

public MeasurementFactorValue()
Hibernate-only constructor.


MeasurementFactorValue

public MeasurementFactorValue(java.lang.Float value,
                              Term unit)
Create a new factor value with given fields.

Parameters:
value - the value
unit - the unit for the value
Method Detail

getValue

public java.lang.Float getValue()
Specified by:
getValue in interface MeasurementValue
Returns:
the value

setValue

public void setValue(java.lang.Float value)
Specified by:
setValue in interface MeasurementValue
Parameters:
value - the value to set

getDisplayValueWithoutUnit

public java.lang.String getDisplayValueWithoutUnit()

Specified by:
getDisplayValueWithoutUnit in interface UnitableValue
Returns:
the value (without unit) as a string displayable in the ui