Class FullInteractorPoolUpdater
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher<T>
-
- psidev.psi.mi.jami.enricher.impl.AbstractInteractorEnricher<T>
-
- psidev.psi.mi.jami.enricher.impl.AbstractInteractorUpdater<T>
-
- psidev.psi.mi.jami.enricher.impl.full.FullInteractorBaseUpdater<InteractorPool>
-
- psidev.psi.mi.jami.enricher.impl.full.FullInteractorPoolUpdater
-
- All Implemented Interfaces:
InteractorEnricher<InteractorPool>,MIEnricher<InteractorPool>
public class FullInteractorPoolUpdater extends FullInteractorBaseUpdater<InteractorPool>
A full updater for interactor pools. See description of full update in AbstractInteractorUpdater. - update all interactors in existing pool using a composite interactor enricher if it is not null. It will add missing interactors in the pool and remove any interactors that are not in the fetched interactor pool- Since:
30/01/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description FullInteractorPoolUpdater()Constructor for FullInteractorPoolUpdater.FullInteractorPoolUpdater(InteractorFetcher<InteractorPool> fetcher)Constructor for FullInteractorPoolUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<Interactor>getInteractorComparator()Getter for the fieldinteractorComparator.CompositeInteractorEnrichergetInteractorMemberEnricher()getInteractorMemberEnricher.protected booleanisFullEnrichment()isFullEnrichment.protected voidprocessMembers(InteractorPool poolToEnrich, InteractorPool fetched)processMembers.protected voidprocessOtherProperties(InteractorPool poolToEnrich, InteractorPool fetched)processOtherProperties.voidsetInteractorComparator(Comparator<Interactor> interactorComparator)Setter for the fieldinteractorComparator.voidsetInteractorEnricher(CompositeInteractorEnricher interactorEnricher)Setter for the fieldinteractorEnricher.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.AbstractInteractorUpdater
canEnrichInteractor, find, getInteractorEnricher, getListener, onCompletedEnrichment, onEnrichedVersionNotFound, onInteractorCheckFailure, processAliases, processAnnotations, processChecksums, processFullName, processIdentifiers, processInteractorType, processOrganism, processShortLabel, processXrefs, setListener
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.AbstractInteractorEnricher
enrich, getCvTermEnricher, getInteractorFetcher, getOrganismEnricher, getRetryCount, processInteractorType, processOrganism, setCvTermEnricher, setOrganismEnricher, setRetryCount
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher
enrich, enrich
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.enricher.MIEnricher
enrich, enrich
-
-
-
-
Constructor Detail
-
FullInteractorPoolUpdater
public FullInteractorPoolUpdater()
Constructor for FullInteractorPoolUpdater.
-
FullInteractorPoolUpdater
public FullInteractorPoolUpdater(InteractorFetcher<InteractorPool> fetcher)
Constructor for FullInteractorPoolUpdater.
- Parameters:
fetcher- aInteractorFetcherobject.
-
-
Method Detail
-
getInteractorMemberEnricher
public CompositeInteractorEnricher getInteractorMemberEnricher()
getInteractorMemberEnricher.
- Returns:
- a
CompositeInteractorEnricherobject.
-
setInteractorEnricher
public void setInteractorEnricher(CompositeInteractorEnricher interactorEnricher)
Setter for the field
interactorEnricher.- Parameters:
interactorEnricher- aCompositeInteractorEnricherobject.
-
getInteractorComparator
public Comparator<Interactor> getInteractorComparator()
Getter for the field
interactorComparator.- Returns:
- a
Comparatorobject.
-
setInteractorComparator
public void setInteractorComparator(Comparator<Interactor> interactorComparator)
Setter for the field
interactorComparator.- Parameters:
interactorComparator- aComparatorobject.
-
isFullEnrichment
protected boolean isFullEnrichment()
isFullEnrichment.
- Overrides:
isFullEnrichmentin classFullInteractorBaseUpdater<InteractorPool>- Returns:
- a boolean.
-
processOtherProperties
protected void processOtherProperties(InteractorPool poolToEnrich, InteractorPool fetched) throws EnricherException
processOtherProperties.
- Overrides:
processOtherPropertiesin classAbstractInteractorEnricher<InteractorPool>- Parameters:
poolToEnrich- a T object.fetched- a T object.- Throws:
EnricherException- if any.
-
processMembers
protected void processMembers(InteractorPool poolToEnrich, InteractorPool fetched) throws EnricherException
processMembers.
- Parameters:
poolToEnrich- aInteractorPoolobject.fetched- aInteractorPoolobject.- Throws:
EnricherException- if any.
-
-