Class UnambiguousCuratedInteractionComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.InteractionComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.UnambiguousCuratedInteractionComparator
-
- All Implemented Interfaces:
Comparator<Interaction>
public class UnambiguousCuratedInteractionComparator extends InteractionComparator
Unambiguous curated Generic interaction comparator. Modelled interactions come first and then experimental interactions - It uses UnambiguousCuratedInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousCuratedModelledInteractionComparator to compare modelled interactions - It uses UnambiguousCuratedInteractionBaseComparator to compare basic interaction properties- Since:
05/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousCuratedInteractionComparator()
Creates a new UnambiguousCuratedInteractionComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(Interaction interaction1, Interaction interaction2)
Use UnambiguousCuratedInteractionComparator to know if two interactions are equals.int
compare(Interaction interaction1, Interaction interaction2)
Experimental interactions come first, then allosteric interactions, then cooperative interactions, then modelled interactions.UnambiguousCuratedInteractionEvidenceComparator
getExperimentalInteractionComparator()
Getter for the fieldexperimentalInteractionComparator
.UnambiguousCuratedInteractionBaseComparator
getInteractionBaseComparator()
Getter for the fieldinteractionBaseComparator
.UnambiguousCuratedModelledInteractionComparator
getModelledInteractionComparator()
Getter for the fieldmodelledInteractionComparator
.-
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
-
getInteractionBaseComparator
public UnambiguousCuratedInteractionBaseComparator getInteractionBaseComparator()
Getter for the field
interactionBaseComparator
.- Overrides:
getInteractionBaseComparator
in classInteractionComparator
- Returns:
- a
Comparator
object.
-
getExperimentalInteractionComparator
public UnambiguousCuratedInteractionEvidenceComparator getExperimentalInteractionComparator()
Getter for the field
experimentalInteractionComparator
.- Overrides:
getExperimentalInteractionComparator
in classInteractionComparator
- Returns:
- a
InteractionEvidenceComparator
object.
-
getModelledInteractionComparator
public UnambiguousCuratedModelledInteractionComparator getModelledInteractionComparator()
Description copied from class:InteractionComparator
Getter for the field
modelledInteractionComparator
.- Overrides:
getModelledInteractionComparator
in classInteractionComparator
- Returns:
- a
ModelledInteractionComparator
object.
-
compare
public int compare(Interaction interaction1, Interaction interaction2)
Experimental interactions come first, then allosteric interactions, then cooperative interactions, then modelled interactions. Modelled interactions come first and then experimental interactions - It uses UnambiguousCuratedInteractionEvidenceComparator to compare experimental interactions - It uses UnambiguousCuratedModelledInteractionComparator to compare modelled interactions - It uses UnambiguousCuratedInteractionBaseComparator to compare basic interaction properties- Specified by:
compare
in interfaceComparator<Interaction>
- Overrides:
compare
in classInteractionComparator
- Parameters:
interaction1
- aInteraction
object.interaction2
- aInteraction
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(Interaction interaction1, Interaction interaction2)
Use UnambiguousCuratedInteractionComparator to know if two interactions are equals.- Parameters:
interaction1
- aInteraction
object.interaction2
- aInteraction
object.- Returns:
- true if the two interactions are equal
-
-