Class AllosteryComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.AllosteryComparator
-
- All Implemented Interfaces:
Comparator<Allostery>
- Direct Known Subclasses:
UnambiguousAllosteryComparator,UnambiguousExactAllosteryComparator
public class AllosteryComparator extends Object implements Comparator<Allostery>
Basic comparator for Allostery 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- Since:
31/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AllosteryComparator(CooperativeEffectBaseComparator cooperativeEffectComparator, MoleculeEffectorComparator moleculeEffectorComparator, FeatureModificationEffectorComparator featureModificationEffectorComparator)Constructor for AllosteryComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Allostery allostery1, Allostery allostery2)It will first compare basic cooperative effect properties using CooperativeEffectBaseComparator.CooperativeEffectBaseComparatorgetCooperativeEffectComparator()Getter for the fieldcooperativeEffectComparator.FeatureModificationEffectorComparatorgetFeatureModificationEffectorComparator()Getter for the fieldfeatureModificationEffectorComparator.MoleculeEffectorComparatorgetMoleculeEffectorComparator()Getter for the fieldmoleculeEffectorComparator.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
AllosteryComparator
public AllosteryComparator(CooperativeEffectBaseComparator cooperativeEffectComparator, MoleculeEffectorComparator moleculeEffectorComparator, FeatureModificationEffectorComparator featureModificationEffectorComparator)
Constructor for AllosteryComparator.
- Parameters:
cooperativeEffectComparator- aCooperativeEffectBaseComparatorobject.moleculeEffectorComparator- aMoleculeEffectorComparatorobject.featureModificationEffectorComparator- aFeatureModificationEffectorComparatorobject.
-
-
Method Detail
-
getCooperativeEffectComparator
public CooperativeEffectBaseComparator getCooperativeEffectComparator()
Getter for the field
cooperativeEffectComparator.- Returns:
- a
CooperativeEffectBaseComparatorobject.
-
getMoleculeEffectorComparator
public MoleculeEffectorComparator getMoleculeEffectorComparator()
Getter for the field
moleculeEffectorComparator.- Returns:
- a
MoleculeEffectorComparatorobject.
-
getFeatureModificationEffectorComparator
public FeatureModificationEffectorComparator getFeatureModificationEffectorComparator()
Getter for the field
featureModificationEffectorComparator.- Returns:
- a
FeatureModificationEffectorComparatorobject.
-
compare
public int compare(Allostery allostery1, Allostery allostery2)
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- Specified by:
comparein interfaceComparator<Allostery>- Parameters:
allostery1- : first allosteryallostery2- : second allostery- Returns:
- the comparison value
-
-