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 booleanequals(Object o)StringgetDescription()Getter for the fielddescription.ExperimentgetExperiment()Getter for the fieldexperiment.CvTermgetUnit()Getter for the fieldunit.Collection<VariableParameterValue>getVariableValues()Getter for the fieldvariableValues.inthashCode()protected voidinitialiseVatiableParameterValues()initialiseVatiableParameterValuesprotected voidinitialiseVatiableParameterValuesWith(Collection<VariableParameterValue> paramValues)initialiseVatiableParameterValuesWithvoidsetDescription(String description)Sets the short description of this parameter.voidsetExperiment(Experiment experiment)Sets the experiment for this variableParametervoidsetExperimentAndAddVariableParameter(Experiment experiment)Sets the experiment for this variableParameter and add this variableParameter to the list of variableParameters of this experiment.voidsetUnit(CvTerm unit)Sets the unit of this variableParameter.StringtoString()
-
-
-
Constructor Detail
-
DefaultVariableParameter
public DefaultVariableParameter(String description)
Constructor for DefaultVariableParameter.
- Parameters:
description- aStringobject.
-
DefaultVariableParameter
public DefaultVariableParameter(String description, Experiment experiment)
Constructor for DefaultVariableParameter.
- Parameters:
description- aStringobject.experiment- aExperimentobject.
-
DefaultVariableParameter
public DefaultVariableParameter(String description, CvTerm unit)
Constructor for DefaultVariableParameter.
-
DefaultVariableParameter
public DefaultVariableParameter(String description, Experiment experiment, CvTerm unit)
Constructor for DefaultVariableParameter.
- Parameters:
description- aStringobject.experiment- aExperimentobject.unit- aCvTermobject.
-
-
Method Detail
-
initialiseVatiableParameterValues
protected void initialiseVatiableParameterValues()
initialiseVatiableParameterValues
-
initialiseVatiableParameterValuesWith
protected void initialiseVatiableParameterValuesWith(Collection<VariableParameterValue> paramValues)
initialiseVatiableParameterValuesWith
- Parameters:
paramValues- aCollectionobject.
-
getDescription
public String getDescription()
Getter for the field
description.- Specified by:
getDescriptionin interfaceVariableParameter- Returns:
- a
Stringobject.
-
setDescription
public void setDescription(String description)
Sets the short description of this parameter.- Specified by:
setDescriptionin interfaceVariableParameter- Parameters:
description- : description
-
getUnit
public CvTerm getUnit()
Getter for the field
unit.- Specified by:
getUnitin interfaceVariableParameter- Returns:
- a
CvTermobject.
-
setUnit
public void setUnit(CvTerm unit)
Sets the unit of this variableParameter.- Specified by:
setUnitin interfaceVariableParameter- Parameters:
unit- : unit
-
getVariableValues
public Collection<VariableParameterValue> getVariableValues()
Getter for the field
variableValues.- Specified by:
getVariableValuesin interfaceVariableParameter- Returns:
- a
Collectionobject.
-
getExperiment
public Experiment getExperiment()
Getter for the field
experiment.- Specified by:
getExperimentin interfaceVariableParameter- Returns:
- a
Experimentobject.
-
setExperiment
public void setExperiment(Experiment experiment)
Sets the experiment for this variableParameter- Specified by:
setExperimentin 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:
setExperimentAndAddVariableParameterin interfaceVariableParameter- Parameters:
experiment- : experiment to set
-
-