gov.nih.nci.caarray.domain.protocol
Class MeasurementParameterValue
java.lang.Object
gov.nih.nci.caarray.domain.AbstractCaArrayObject
gov.nih.nci.caarray.domain.AbstractCaArrayEntity
gov.nih.nci.caarray.domain.AbstractUnitableValue
gov.nih.nci.caarray.domain.protocol.AbstractParameterValue
gov.nih.nci.caarray.domain.protocol.MeasurementParameterValue
- All Implemented Interfaces:
- com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, MeasurementValue, UnitableValue, java.io.Serializable
public class MeasurementParameterValue
- extends AbstractParameterValue
- implements MeasurementValue
a parameter value with a numeric value.
- Author:
- dkokotov
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MeasurementParameterValue
public MeasurementParameterValue()
- Hibernate-only constructor.
MeasurementParameterValue
public MeasurementParameterValue(MeasurementParameterValue other)
- Copy constructor.
- Parameters:
other
- the value to copy from
MeasurementParameterValue
public MeasurementParameterValue(java.lang.Float value,
Term unit)
- Create a new parameter value with given fields.
- Parameters:
value
- the valueunit
- the unit for the value
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
matches
public boolean matches(AbstractParameterValue other)
- Checks if two ParameterValues are the same, ignoring ProtocolApplications.
Subclasses should override to define additional checks (possibly calling super.matches).
- Overrides:
matches
in class AbstractParameterValue
- Parameters:
other
- other ParameterValue to compare to
- Returns:
- true if they match