Class AbstractExperimentRef
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
-
- psidev.psi.mi.jami.xml.model.reference.xml254.AbstractExperimentRef
-
- All Implemented Interfaces:
FileSourceContext,Experiment,NamedExperiment,ExtendedPsiXmlExperiment,XmlIdReference
public abstract class AbstractExperimentRef extends AbstractXmlIdReference implements ExtendedPsiXmlExperiment
Abstract class for an ModelledInteractionRef- Since:
11/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from class psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
ref
-
Fields inherited from interface psidev.psi.mi.jami.model.Experiment
INFERRED_BY_CURATOR, INFERRED_BY_CURATOR_MI, UNSPECIFIED_METHOD, UNSPECIFIED_METHOD_MI
-
-
Constructor Summary
Constructors Constructor Description AbstractExperimentRef(int ref)Constructor for AbstractExperimentRef.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAllInteractionEvidences(Collection<? extends InteractionEvidence> evidences)This method will add all the interaction evidences and set the experiment of the new interaction evidences to this current experimentbooleanaddAllVariableParameters(Collection<? extends VariableParameter> variableParameters)This method will add all variableParameters and set the experiment of the new variableParameters to this current experimentbooleanaddInteractionEvidence(InteractionEvidence evidence)This method will add the interaction evidence and set the experiment of the new interaction evidence to this current experimentbooleanaddVariableParameter(VariableParameter variableParameter)This method will add the variableParameter and set the experiment of the new variableParameter to this current experiment<A extends Alias>
Collection<A>getAliases()Collection of aliases for an experiment.Collection<Annotation>getAnnotations()getAnnotations.Collection<Confidence>getConfidences()getConfidences.protected ExtendedPsiXmlExperimentgetDelegate()Getter for the fielddelegate.CvTermgetFeatureDetectionMethod()getFeatureDetectionMethod.StringgetFullName()The full name of the experiment.OrganismgetHostOrganism()getHostOrganism.List<Organism>getHostOrganisms()getHostOrganisms.intgetId()getId.CvTermgetInteractionDetectionMethod()getInteractionDetectionMethod.Collection<InteractionEvidence>getInteractionEvidences()getInteractionEvidences.CvTermgetParticipantIdentificationMethod()getParticipantIdentificationMethod.PublicationgetPublication()getPublication.StringgetShortName()The short name of the experiment.Collection<VariableParameter>getVariableParameters()getVariableParameters.Collection<Xref>getXrefs()getXrefs.protected voidinitialiseExperimentDelegate()initialiseExperimentDelegate.booleanremoveAllInteractionEvidences(Collection<? extends InteractionEvidence> evidences)This method will remove the interaction evidences and set the experiment of the removed interaction evidences to null.booleanremoveAllVariableParameters(Collection<? extends VariableParameter> variableParameters)This method will remove all the variableParameters and set the experiment of the removed variableParameters to null.booleanremoveInteractionEvidence(InteractionEvidence evidence)This method will remove the interaction evidence and set the experiment of the new interaction evidence to nullbooleanremoveVariableParameter(VariableParameter variableParameter)This method will remove the variableParameter and set the experiment of the removed variableParameter to null.voidsetFeatureDetectionMethod(CvTerm method)setFeatureDetectionMethod.voidsetFullName(String name)Sets the full name of the experimentvoidsetHostOrganism(Organism organism)Sets the host organism of an experimentvoidsetId(int id)setId.voidsetInteractionDetectionMethod(CvTerm term)Set the interaction detection method for this experiment If term is null, this method will set the interaction detection method to 'unspecified method' (MI:0686).voidsetParticipantIdentificationMethod(CvTerm method)setParticipantIdentificationMethod.voidsetPublication(Publication publication)Set the publication where the experiment has been described.voidsetPublicationAndAddExperiment(Publication publication)Set the publication where the experiment has been described and add the experiment to the list of experiments for this publication If publication is null, it will remove this experiment from the previous publication attached to this experimentvoidsetShortName(String name)Sets the short name of an experimentStringtoString()toString-
Methods inherited from class psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
getRef, registerForResolution
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.datasource.FileSourceContext
getSourceLocator, setSourceLocator
-
Methods inherited from interface psidev.psi.mi.jami.xml.model.reference.XmlIdReference
resolve
-
-
-
-
Method Detail
-
getPublication
public Publication getPublication()
getPublication.
- Specified by:
getPublicationin interfaceExperiment- Returns:
- a
Publicationobject.
-
setPublication
public void setPublication(Publication publication)
Set the publication where the experiment has been described.- Specified by:
setPublicationin interfaceExperiment- Parameters:
publication- : the publication
-
setPublicationAndAddExperiment
public void setPublicationAndAddExperiment(Publication publication)
Set the publication where the experiment has been described and add the experiment to the list of experiments for this publication If publication is null, it will remove this experiment from the previous publication attached to this experiment- Specified by:
setPublicationAndAddExperimentin interfaceExperiment- Parameters:
publication- : the publication
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefsin interfaceExperiment- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfaceExperiment- Returns:
- a
Collectionobject.
-
getConfidences
public Collection<Confidence> getConfidences()
getConfidences.
- Specified by:
getConfidencesin interfaceExperiment- Returns:
- a
Collectionobject.
-
getInteractionDetectionMethod
public CvTerm getInteractionDetectionMethod()
getInteractionDetectionMethod.
- Specified by:
getInteractionDetectionMethodin interfaceExperiment- Returns:
- a
CvTermobject.
-
setInteractionDetectionMethod
public void setInteractionDetectionMethod(CvTerm term)
Set the interaction detection method for this experiment If term is null, this method will set the interaction detection method to 'unspecified method' (MI:0686).- Specified by:
setInteractionDetectionMethodin interfaceExperiment- Parameters:
term- : the detection method
-
getHostOrganism
public Organism getHostOrganism()
getHostOrganism.
- Specified by:
getHostOrganismin interfaceExperiment- Returns:
- a
Organismobject.
-
setHostOrganism
public void setHostOrganism(Organism organism)
Sets the host organism of an experiment- Specified by:
setHostOrganismin interfaceExperiment- Parameters:
organism- : host organism
-
getInteractionEvidences
public Collection<InteractionEvidence> getInteractionEvidences()
getInteractionEvidences.
- Specified by:
getInteractionEvidencesin interfaceExperiment- Returns:
- a
Collectionobject.
-
addInteractionEvidence
public boolean addInteractionEvidence(InteractionEvidence evidence)
This method will add the interaction evidence and set the experiment of the new interaction evidence to this current experiment- Specified by:
addInteractionEvidencein interfaceExperiment- Parameters:
evidence- : evidence to add- Returns:
- true if interaction evidence is added to the list of interactions
-
removeInteractionEvidence
public boolean removeInteractionEvidence(InteractionEvidence evidence)
This method will remove the interaction evidence and set the experiment of the new interaction evidence to null- Specified by:
removeInteractionEvidencein interfaceExperiment- Parameters:
evidence- : evidence to remove- Returns:
- true if interaction evidence is removed from the list of interactions
-
addAllInteractionEvidences
public boolean addAllInteractionEvidences(Collection<? extends InteractionEvidence> evidences)
This method will add all the interaction evidences and set the experiment of the new interaction evidences to this current experiment- Specified by:
addAllInteractionEvidencesin interfaceExperiment- Parameters:
evidences- : evidences to add- Returns:
- true if interaction evidences are added to the list of interaction evidences
-
removeAllInteractionEvidences
public boolean removeAllInteractionEvidences(Collection<? extends InteractionEvidence> evidences)
This method will remove the interaction evidences and set the experiment of the removed interaction evidences to null.- Specified by:
removeAllInteractionEvidencesin interfaceExperiment- Parameters:
evidences- : evidences to remove- Returns:
- true if interaction evidences are removed from the list of interactions
-
getVariableParameters
public Collection<VariableParameter> getVariableParameters()
getVariableParameters.
- Specified by:
getVariableParametersin interfaceExperiment- Returns:
- a
Collectionobject.
-
addVariableParameter
public boolean addVariableParameter(VariableParameter variableParameter)
This method will add the variableParameter and set the experiment of the new variableParameter to this current experiment- Specified by:
addVariableParameterin interfaceExperiment- Parameters:
variableParameter- : parameter to add- Returns:
- true if variableParameter is added to the list of variableParameters
-
removeVariableParameter
public boolean removeVariableParameter(VariableParameter variableParameter)
This method will remove the variableParameter and set the experiment of the removed variableParameter to null.- Specified by:
removeVariableParameterin interfaceExperiment- Parameters:
variableParameter- : parameter to remove- Returns:
- true if variableParameter is removed from the list of variableParameters
-
addAllVariableParameters
public boolean addAllVariableParameters(Collection<? extends VariableParameter> variableParameters)
This method will add all variableParameters and set the experiment of the new variableParameters to this current experiment- Specified by:
addAllVariableParametersin interfaceExperiment- Parameters:
variableParameters- : parameters to add- Returns:
- true if variableParameters are added to the list of variableParameters
-
removeAllVariableParameters
public boolean removeAllVariableParameters(Collection<? extends VariableParameter> variableParameters)
This method will remove all the variableParameters and set the experiment of the removed variableParameters to null.- Specified by:
removeAllVariableParametersin interfaceExperiment- Parameters:
variableParameters- : parameters to remove- Returns:
- true if variableParameters are removed from the list of variableParameters
-
setFeatureDetectionMethod
public void setFeatureDetectionMethod(CvTerm method)
setFeatureDetectionMethod.
- Specified by:
setFeatureDetectionMethodin interfaceExtendedPsiXmlExperiment- Parameters:
method- aCvTermobject.
-
getFeatureDetectionMethod
public CvTerm getFeatureDetectionMethod()
getFeatureDetectionMethod.
- Specified by:
getFeatureDetectionMethodin interfaceExtendedPsiXmlExperiment- Returns:
- a
CvTermobject.
-
setParticipantIdentificationMethod
public void setParticipantIdentificationMethod(CvTerm method)
setParticipantIdentificationMethod.
- Specified by:
setParticipantIdentificationMethodin interfaceExtendedPsiXmlExperiment- Parameters:
method- aCvTermobject.
-
getParticipantIdentificationMethod
public CvTerm getParticipantIdentificationMethod()
getParticipantIdentificationMethod.
- Specified by:
getParticipantIdentificationMethodin interfaceExtendedPsiXmlExperiment- Returns:
- a
CvTermobject.
-
getHostOrganisms
public List<Organism> getHostOrganisms()
getHostOrganisms.
- Specified by:
getHostOrganismsin interfaceExtendedPsiXmlExperiment- Returns:
- a
Listobject.
-
setId
public void setId(int id)
setId.
- Specified by:
setIdin interfaceExtendedPsiXmlExperiment- Parameters:
id- a int.
-
getId
public int getId()
getId.
- Specified by:
getIdin interfaceExtendedPsiXmlExperiment- Returns:
- a int.
-
getShortName
public String getShortName()
The short name of the experiment. It can be null or empty. Ex: author-2013-1- Specified by:
getShortNamein interfaceNamedExperiment- Returns:
- the short name
-
setShortName
public void setShortName(String name)
Sets the short name of an experiment- Specified by:
setShortNamein interfaceNamedExperiment- Parameters:
name- : short name
-
getFullName
public String getFullName()
The full name of the experiment. It can be null Ex: publication title, experiment description- Specified by:
getFullNamein interfaceNamedExperiment- Returns:
- the full name
-
setFullName
public void setFullName(String name)
Sets the full name of the experiment- Specified by:
setFullNamein interfaceNamedExperiment- Parameters:
name- : full name
-
getAliases
public <A extends Alias> Collection<A> getAliases()
Collection of aliases for an experiment. The Collection cannot be null and if the experiment does not have any aliases, the method should return an empty Collection.- Specified by:
getAliasesin interfaceNamedExperiment- Type Parameters:
A- an A object- Returns:
- the aliases
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classAbstractXmlIdReference- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
initialiseExperimentDelegate
protected void initialiseExperimentDelegate()
initialiseExperimentDelegate.
-
getDelegate
protected ExtendedPsiXmlExperiment getDelegate()
Getter for the field
delegate.- Returns:
- a
ExtendedPsiXmlExperimentobject.
-
-