Class AbstractExperimentRef

    • Constructor Detail

      • AbstractExperimentRef

        public AbstractExperimentRef​(int ref)

        Constructor for AbstractExperimentRef.

        Parameters:
        ref - a int.
    • Method Detail

      • setPublication

        public void setPublication​(Publication publication)
        Set the publication where the experiment has been described.
        Specified by:
        setPublication in interface Experiment
        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:
        setPublicationAndAddExperiment in interface Experiment
        Parameters:
        publication - : the publication
      • 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:
        setInteractionDetectionMethod in interface Experiment
        Parameters:
        term - : the detection method
      • setHostOrganism

        public void setHostOrganism​(Organism organism)
        Sets the host organism of an experiment
        Specified by:
        setHostOrganism in interface Experiment
        Parameters:
        organism - : host organism
      • 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:
        addInteractionEvidence in interface Experiment
        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:
        removeInteractionEvidence in interface Experiment
        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:
        addAllInteractionEvidences in interface Experiment
        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:
        removeAllInteractionEvidences in interface Experiment
        Parameters:
        evidences - : evidences to remove
        Returns:
        true if interaction evidences are removed from the list of interactions
      • 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:
        addVariableParameter in interface Experiment
        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:
        removeVariableParameter in interface Experiment
        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:
        addAllVariableParameters in interface Experiment
        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:
        removeAllVariableParameters in interface Experiment
        Parameters:
        variableParameters - : parameters to remove
        Returns:
        true if variableParameters are removed from the list of variableParameters
      • getShortName

        public String getShortName()
        The short name of the experiment. It can be null or empty. Ex: author-2013-1
        Specified by:
        getShortName in interface NamedExperiment
        Returns:
        the short name
      • setShortName

        public void setShortName​(String name)
        Sets the short name of an experiment
        Specified by:
        setShortName in interface NamedExperiment
        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:
        getFullName in interface NamedExperiment
        Returns:
        the full name
      • setFullName

        public void setFullName​(String name)
        Sets the full name of the experiment
        Specified by:
        setFullName in interface NamedExperiment
        Parameters:
        name - : full name
      • getAliases

        public <A extends AliasCollection<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:
        getAliases in interface NamedExperiment
        Type Parameters:
        A - an A object
        Returns:
        the aliases
      • initialiseExperimentDelegate

        protected void initialiseExperimentDelegate()

        initialiseExperimentDelegate.