Class ModelledEntityComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ModelledEntityComparator
-
- All Implemented Interfaces:
Comparator<ModelledEntity>
,CustomizableModelledParticipantComparator<ModelledEntity>
- Direct Known Subclasses:
UnambiguousExactModelledEntityComparator
,UnambiguousModelledEntityComparator
public class ModelledEntityComparator extends Object implements CustomizableModelledParticipantComparator<ModelledEntity>
Basic biological entity comparator. It will compare the basic properties of a biological entity using EntityBaseComparator and modelledFeatureComparator. This comparator will ignore all the other properties of a biological participant.- Since:
13/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ModelledEntityComparator(EntityBaseComparator participantBaseComparator, CollectionComparator<ModelledFeature> featureComparator)
Creates a new ComponentComparatorModelledEntityComparator(EntityBaseComparator participantBaseComparator, ModelledFeatureComparator featureComparator)
Creates a new ComponentComparator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearProcessedComplexes()
clearProcessedComplexesint
compare(ModelledEntity bioParticipant1, ModelledEntity bioParticipant2)
It will compare the basic properties of a biological participant using ParticipantInteractorComparator.EntityBaseComparator
getEntityBaseComparator()
getEntityBaseComparatorCollectionComparator<ModelledFeature>
getFeatureCollectionComparator()
Getter for the fieldfeatureCollectionComparator
.boolean
isCheckComplexesAsInteractors()
isCheckComplexesAsInteractorsvoid
setCheckComplexesAsInteractors(boolean checkComplexesAsInteractors)
setCheckComplexesAsInteractors-
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
-
ModelledEntityComparator
public ModelledEntityComparator(EntityBaseComparator participantBaseComparator, ModelledFeatureComparator featureComparator)
Creates a new ComponentComparator- Parameters:
participantBaseComparator
- aEntityBaseComparator
object.featureComparator
- aModelledFeatureComparator
object.
-
ModelledEntityComparator
public ModelledEntityComparator(EntityBaseComparator participantBaseComparator, CollectionComparator<ModelledFeature> featureComparator)
Creates a new ComponentComparator- Parameters:
participantBaseComparator
- aEntityBaseComparator
object.featureComparator
- aCollectionComparator
object.
-
-
Method Detail
-
getEntityBaseComparator
public EntityBaseComparator getEntityBaseComparator()
getEntityBaseComparator
- Returns:
- a
EntityBaseComparator
object.
-
getFeatureCollectionComparator
public CollectionComparator<ModelledFeature> getFeatureCollectionComparator()
Getter for the field
featureCollectionComparator
.- Returns:
- a
CollectionComparator
object.
-
isCheckComplexesAsInteractors
public boolean isCheckComplexesAsInteractors()
isCheckComplexesAsInteractors
- Specified by:
isCheckComplexesAsInteractors
in interfaceCustomizableModelledParticipantComparator<ModelledEntity>
- Returns:
- a boolean.
-
setCheckComplexesAsInteractors
public void setCheckComplexesAsInteractors(boolean checkComplexesAsInteractors)
setCheckComplexesAsInteractors
- Specified by:
setCheckComplexesAsInteractors
in interfaceCustomizableModelledParticipantComparator<ModelledEntity>
- Parameters:
checkComplexesAsInteractors
- a boolean.
-
clearProcessedComplexes
public void clearProcessedComplexes()
clearProcessedComplexes
- Specified by:
clearProcessedComplexes
in interfaceCustomizableModelledParticipantComparator<ModelledEntity>
-
compare
public int compare(ModelledEntity bioParticipant1, ModelledEntity bioParticipant2)
It will compare the basic properties of a biological participant using ParticipantInteractorComparator. This comparator will ignore all the other properties of a biological participant.- Specified by:
compare
in interfaceComparator<ModelledEntity>
- Parameters:
bioParticipant1
- aModelledEntity
object.bioParticipant2
- aModelledEntity
object.- Returns:
- a int.
-
-