Package psidev.psi.mi.jami.model.impl
Class DefaultVariableParameter
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultVariableParameter
-
- All Implemented Interfaces:
VariableParameter
public class DefaultVariableParameter extends Object implements VariableParameter
Default implementation for variableParameters Notes: The equals and hashcode methods have been overridden to be consistent with UnambiguousVariableParameterComparator- Since:
22/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultVariableParameter(String description)
Constructor for DefaultVariableParameter.DefaultVariableParameter(String description, CvTerm unit)
Constructor for DefaultVariableParameter.DefaultVariableParameter(String description, Experiment experiment)
Constructor for DefaultVariableParameter.DefaultVariableParameter(String description, Experiment experiment, CvTerm unit)
Constructor for DefaultVariableParameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDescription()
Getter for the fielddescription
.Experiment
getExperiment()
Getter for the fieldexperiment
.CvTerm
getUnit()
Getter for the fieldunit
.Collection<VariableParameterValue>
getVariableValues()
Getter for the fieldvariableValues
.int
hashCode()
protected void
initialiseVatiableParameterValues()
initialiseVatiableParameterValuesprotected void
initialiseVatiableParameterValuesWith(Collection<VariableParameterValue> paramValues)
initialiseVatiableParameterValuesWithvoid
setDescription(String description)
Sets the short description of this parameter.void
setExperiment(Experiment experiment)
Sets the experiment for this variableParametervoid
setExperimentAndAddVariableParameter(Experiment experiment)
Sets the experiment for this variableParameter and add this variableParameter to the list of variableParameters of this experiment.void
setUnit(CvTerm unit)
Sets the unit of this variableParameter.String
toString()
-
-
-
Constructor Detail
-
DefaultVariableParameter
public DefaultVariableParameter(String description)
Constructor for DefaultVariableParameter.
- Parameters:
description
- aString
object.
-
DefaultVariableParameter
public DefaultVariableParameter(String description, Experiment experiment)
Constructor for DefaultVariableParameter.
- Parameters:
description
- aString
object.experiment
- aExperiment
object.
-
DefaultVariableParameter
public DefaultVariableParameter(String description, CvTerm unit)
Constructor for DefaultVariableParameter.
-
DefaultVariableParameter
public DefaultVariableParameter(String description, Experiment experiment, CvTerm unit)
Constructor for DefaultVariableParameter.
- Parameters:
description
- aString
object.experiment
- aExperiment
object.unit
- aCvTerm
object.
-
-
Method Detail
-
initialiseVatiableParameterValues
protected void initialiseVatiableParameterValues()
initialiseVatiableParameterValues
-
initialiseVatiableParameterValuesWith
protected void initialiseVatiableParameterValuesWith(Collection<VariableParameterValue> paramValues)
initialiseVatiableParameterValuesWith
- Parameters:
paramValues
- aCollection
object.
-
getDescription
public String getDescription()
Getter for the field
description
.- Specified by:
getDescription
in interfaceVariableParameter
- Returns:
- a
String
object.
-
setDescription
public void setDescription(String description)
Sets the short description of this parameter.- Specified by:
setDescription
in interfaceVariableParameter
- Parameters:
description
- : description
-
getUnit
public CvTerm getUnit()
Getter for the field
unit
.- Specified by:
getUnit
in interfaceVariableParameter
- Returns:
- a
CvTerm
object.
-
setUnit
public void setUnit(CvTerm unit)
Sets the unit of this variableParameter.- Specified by:
setUnit
in interfaceVariableParameter
- Parameters:
unit
- : unit
-
getVariableValues
public Collection<VariableParameterValue> getVariableValues()
Getter for the field
variableValues
.- Specified by:
getVariableValues
in interfaceVariableParameter
- Returns:
- a
Collection
object.
-
getExperiment
public Experiment getExperiment()
Getter for the field
experiment
.- Specified by:
getExperiment
in interfaceVariableParameter
- Returns:
- a
Experiment
object.
-
setExperiment
public void setExperiment(Experiment experiment)
Sets the experiment for this variableParameter- Specified by:
setExperiment
in interfaceVariableParameter
- Parameters:
experiment
- : experiment to set
-
setExperimentAndAddVariableParameter
public void setExperimentAndAddVariableParameter(Experiment experiment)
Sets the experiment for this variableParameter and add this variableParameter to the list of variableParameters of this experiment. If experiment is null, remove the variableParameter from the previous experiment attached to this variableParameter- Specified by:
setExperimentAndAddVariableParameter
in interfaceVariableParameter
- Parameters:
experiment
- : experiment to set
-
-