Class UnambiguousExactAllosteryComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.AllosteryComparator
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.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 Summary
Constructors Constructor Description UnambiguousExactAllosteryComparator()
Constructor for UnambiguousExactAllosteryComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Allostery effect1, Allostery effect2)
Use UnambiguousExactAllosteryComparator to know if two allostery are equals.int
compare(Allostery effect1, Allostery effect2)
It will first compare basic cooperative effect properties using CooperativeEffectBaseComparator.UnambiguousExactCooperativeEffectBaseComparator
getCooperativeEffectComparator()
Getter for the fieldcooperativeEffectComparator
.UnambiguousFeatureModificationEffectorComparator
getFeatureModificationEffectorComparator()
Getter for the fieldfeatureModificationEffectorComparator
.UnambiguousExactMoleculeEffectorComparator
getMoleculeEffectorComparator()
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
-
-
-
-
Method Detail
-
getCooperativeEffectComparator
public UnambiguousExactCooperativeEffectBaseComparator getCooperativeEffectComparator()
Getter for the field
cooperativeEffectComparator
.- Overrides:
getCooperativeEffectComparator
in classAllosteryComparator
- Returns:
- a
CooperativeEffectBaseComparator
object.
-
getMoleculeEffectorComparator
public UnambiguousExactMoleculeEffectorComparator getMoleculeEffectorComparator()
Getter for the field
moleculeEffectorComparator
.- Overrides:
getMoleculeEffectorComparator
in classAllosteryComparator
- Returns:
- a
MoleculeEffectorComparator
object.
-
getFeatureModificationEffectorComparator
public UnambiguousFeatureModificationEffectorComparator getFeatureModificationEffectorComparator()
Getter for the field
featureModificationEffectorComparator
.- Overrides:
getFeatureModificationEffectorComparator
in classAllosteryComparator
- Returns:
- a
FeatureModificationEffectorComparator
object.
-
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 interfaceComparator<Allostery>
- Overrides:
compare
in classAllosteryComparator
- Parameters:
effect1
- : first allosteryeffect2
- : second allostery- Returns:
- the comparison value
-
-