Class UnambiguousExactAllosteryComparator

  • All Implemented Interfaces:
    Comparator<Allostery>

    public class UnambiguousExactAllosteryComparator
    extends AllosteryComparator
    Unambiguous exact comparator for Allostery It will first compare basic cooperative effect properties using UnambiguousExactCooperativeEffectBaseComparator. Then, it will compare the allosteric effector types : - molecule effector types always come first - if both allosteric effector are molecule effectors, it will use UnambiguousExactMoleculeEffectorComparator to compare them - if both allosteric effector are feature modification effectors, it will use UnambiguousFeatureModificationEffectorComparator to compare them Then, it will compare the allosteric mechanisms using UnambiguousCvTermComparator Then, it will compare the allostery type using UnambiguousCvTermComparator Finally, it will compare the allosteric molecule using UnambiguousExactModelledParticipantComparator
    Since:
    31/05/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • UnambiguousExactAllosteryComparator

        public UnambiguousExactAllosteryComparator()

        Constructor for UnambiguousExactAllosteryComparator.

    • Method Detail

      • compare

        public int compare​(Allostery effect1,
                           Allostery effect2)
        It will first compare basic cooperative effect properties using CooperativeEffectBaseComparator. Then, it will compare the allosteric effector types : - molecule effector types always come first - if both allosteric effector are molecule effectors, it will use MoleculeEffectorComparator to compare them - if both allosteric effector are feature modification effectors, it will use FeatureModificationEffectorComparator to compare them Then, it will compare the allosteric mechanisms using AbstractCvTermComparator Then, it will compare the allostery type using AbstractCvTermComparator Finally, it will compare the allosteric molecule using ModelledParticipantComparator It will first compare basic cooperative effect properties using UnambiguousExactCooperativeEffectBaseComparator. Then, it will compare the allosteric effector types : - molecule effector types always come first - if both allosteric effector are molecule effectors, it will use UnambiguousExactMoleculeEffectorComparator to compare them - if both allosteric effector are feature modification effectors, it will use UnambiguousFeatureModificationEffectorComparator to compare them Then, it will compare the allosteric mechanisms using UnambiguousCvTermComparator Then, it will compare the allostery type using UnambiguousCvTermComparator Finally, it will compare the allosteric molecule using UnambiguousExactModelledParticipantComparator
        Specified by:
        compare in interface Comparator<Allostery>
        Overrides:
        compare in class AllosteryComparator
        Parameters:
        effect1 - : first allostery
        effect2 - : second allostery
        Returns:
        the comparison value
      • areEquals

        public static boolean areEquals​(Allostery effect1,
                                        Allostery effect2)
        Use UnambiguousExactAllosteryComparator to know if two allostery are equals.
        Parameters:
        effect1 - a Allostery object.
        effect2 - a Allostery object.
        Returns:
        true if the two Allostery are equal