Class DefaultExactInteractionEvidenceComparator


  • public class DefaultExactInteractionEvidenceComparator
    extends Object
    Default exact InteractionEvidenceComparator. It will first compare the basic interaction properties using DefaultInteractionBaseComparator. It will then compares the IMEx identifiers if both IMEx ids are set. If at least one IMEx id is not set, it will compare the negative properties. A negative interaction will come after a positive interaction. it will compare the experiment using DefaultExperimentComparator. If the experiments are the same, it will compare the participants using DefaultExactParticipantEvidenceComparator. it will compare the parameters using DefaultParameterComparator. If the parameters are the same, it will first compare the experimental variableParameters using VariableParameterValueSetComparator and then it will compare the inferred boolean value (Inferred interactions will always come after).
    Since:
    21/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultExactInteractionEvidenceComparator

        public DefaultExactInteractionEvidenceComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(InteractionEvidence experimentalInteraction1,
                                        InteractionEvidence experimentalInteraction2)
        Use DefaultExactInteractionEvidenceComparator to know if two experimental interactions are equals.
        Parameters:
        experimentalInteraction1 - a InteractionEvidence object.
        experimentalInteraction2 - a InteractionEvidence object.
        Returns:
        true if the two experimental interactions are equal