Package psidev.psi.mi.jami.model.impl
Class DefaultParameter
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultParameter
-
- All Implemented Interfaces:
Parameter
- Direct Known Subclasses:
DefaultModelledParameter
public class DefaultParameter extends Object implements Parameter
Default implementation for Parameter Notes: The equals and hashcode methods have been overridden to be consistent with UnambiguousParameterComparator- Since:
22/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultParameter(CvTerm type, String value)
Constructor for DefaultParameter.DefaultParameter(CvTerm type, String value, CvTerm unit)
Constructor for DefaultParameter.DefaultParameter(CvTerm type, ParameterValue value)
Constructor for DefaultParameter.DefaultParameter(CvTerm type, ParameterValue value, BigDecimal uncertainty)
Constructor for DefaultParameter.DefaultParameter(CvTerm type, ParameterValue value, CvTerm unit)
Constructor for DefaultParameter.DefaultParameter(CvTerm type, ParameterValue value, CvTerm unit, BigDecimal uncertainty)
Constructor for DefaultParameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
CvTerm
getType()
Getter for the fieldtype
.BigDecimal
getUncertainty()
Getter for the fielduncertainty
.CvTerm
getUnit()
Getter for the fieldunit
.ParameterValue
getValue()
Getter for the fieldvalue
.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
DefaultParameter
public DefaultParameter(CvTerm type, ParameterValue value)
Constructor for DefaultParameter.
- Parameters:
type
- aCvTerm
object.value
- aParameterValue
object.
-
DefaultParameter
public DefaultParameter(CvTerm type, ParameterValue value, CvTerm unit)
Constructor for DefaultParameter.
- Parameters:
type
- aCvTerm
object.value
- aParameterValue
object.unit
- aCvTerm
object.
-
DefaultParameter
public DefaultParameter(CvTerm type, ParameterValue value, CvTerm unit, BigDecimal uncertainty)
Constructor for DefaultParameter.
- Parameters:
type
- aCvTerm
object.value
- aParameterValue
object.unit
- aCvTerm
object.uncertainty
- aBigDecimal
object.
-
DefaultParameter
public DefaultParameter(CvTerm type, ParameterValue value, BigDecimal uncertainty)
Constructor for DefaultParameter.
- Parameters:
type
- aCvTerm
object.value
- aParameterValue
object.uncertainty
- aBigDecimal
object.
-
DefaultParameter
public DefaultParameter(CvTerm type, String value) throws IllegalParameterException
Constructor for DefaultParameter.
- Parameters:
type
- aCvTerm
object.value
- aString
object.- Throws:
IllegalParameterException
- if any.
-
DefaultParameter
public DefaultParameter(CvTerm type, String value, CvTerm unit) throws IllegalParameterException
Constructor for DefaultParameter.
- Parameters:
type
- aCvTerm
object.value
- aString
object.unit
- aCvTerm
object.- Throws:
IllegalParameterException
- if any.
-
-
Method Detail
-
getType
public CvTerm getType()
Getter for the field
type
.
-
getUncertainty
public BigDecimal getUncertainty()
Getter for the field
uncertainty
.- Specified by:
getUncertainty
in interfaceParameter
- Returns:
- a
BigDecimal
object.
-
getUnit
public CvTerm getUnit()
Getter for the field
unit
.
-
getValue
public ParameterValue getValue()
Getter for the field
value
.- Specified by:
getValue
in interfaceParameter
- Returns:
- a
ParameterValue
object.
-
-