Class UnambiguousAllosteryComparator
- java.lang.Object
- 
- psidev.psi.mi.jami.utils.comparator.cooperativity.AllosteryComparator
- 
- psidev.psi.mi.jami.utils.comparator.cooperativity.UnambiguousAllosteryComparator
 
 
- 
- All Implemented Interfaces:
- Comparator<Allostery>
 
 public class UnambiguousAllosteryComparator extends AllosteryComparator Unambiguous comparator for Allostery It will first compare basic cooperative effect properties using UnambiguousCooperativeEffectBaseComparator. Then, it will compare the allosteric effector types : - molecule effector types always come first - if both allosteric effector are molecule effectors, it will use UnambiguousMoleculeEffectorComparator 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 UnambiguousModelledParticipantComparator- Since:
- 31/05/13 
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
 
- 
- 
Constructor SummaryConstructors Constructor Description UnambiguousAllosteryComparator()Constructor for UnambiguousAllosteryComparator.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanareEquals(Allostery effect1, Allostery effect2)Use UnambiguousAllosteryComparator to know if two allostery are equals.intcompare(Allostery effect1, Allostery effect2)It will first compare basic cooperative effect properties using CooperativeEffectBaseComparator.UnambiguousCooperativeEffectBaseComparatorgetCooperativeEffectComparator()Getter for the fieldcooperativeEffectComparator.UnambiguousFeatureModificationEffectorComparatorgetFeatureModificationEffectorComparator()Getter for the fieldfeatureModificationEffectorComparator.UnambiguousMoleculeEffectorComparatorgetMoleculeEffectorComparator()Getter for the fieldmoleculeEffectorComparator.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
 
- 
 
- 
- 
- 
Method Detail- 
getCooperativeEffectComparatorpublic UnambiguousCooperativeEffectBaseComparator getCooperativeEffectComparator() Getter for the field cooperativeEffectComparator.- Overrides:
- getCooperativeEffectComparatorin class- AllosteryComparator
- Returns:
- a CooperativeEffectBaseComparatorobject.
 
 - 
getMoleculeEffectorComparatorpublic UnambiguousMoleculeEffectorComparator getMoleculeEffectorComparator() Getter for the field moleculeEffectorComparator.- Overrides:
- getMoleculeEffectorComparatorin class- AllosteryComparator
- Returns:
- a MoleculeEffectorComparatorobject.
 
 - 
getFeatureModificationEffectorComparatorpublic UnambiguousFeatureModificationEffectorComparator getFeatureModificationEffectorComparator() Getter for the field featureModificationEffectorComparator.- Overrides:
- getFeatureModificationEffectorComparatorin class- AllosteryComparator
- Returns:
- a FeatureModificationEffectorComparatorobject.
 
 - 
comparepublic 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 UnambiguousCooperativeEffectBaseComparator. Then, it will compare the allosteric effector types : - molecule effector types always come first - if both allosteric effector are molecule effectors, it will use UnambiguousMoleculeEffectorComparator 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 UnambiguousModelledParticipantComparator- Specified by:
- comparein interface- Comparator<Allostery>
- Overrides:
- comparein class- AllosteryComparator
- Parameters:
- effect1- : first allostery
- effect2- : second allostery
- Returns:
- the comparison value
 
 
- 
 
-