Package psidev.psi.mi.jami.xml.cache
Interface PsiXmlIdCache
-
- All Known Implementing Classes:
InMemoryPsiXmlCache
,PsiXmlFileIndexCache
public interface PsiXmlIdCache
Index that can retrieve a MI object given its id- Since:
06/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear all existing recordsvoid
close()
Close cacheboolean
containsAvailability(int id)
To know if it contains a specific idboolean
containsComplex(int id)
To know if it contains a specific idboolean
containsComplexFeature(int id)
To know if it contains a specific idboolean
containsComplexParticipant(int id)
To know if it contains a specific idboolean
containsExperiment(int id)
To know if it contains a specific idboolean
containsFeature(int id)
To know if it contains a specific idboolean
containsInteraction(int id)
To know if it contains a specific idboolean
containsInteractor(int id)
To know if it contains a specific idboolean
containsParticipant(int id)
To know if it contains a specific idboolean
containsVariableParameter(int id)
To know if it contains a specific idAbstractAvailability
getAvailability(int id)
getAvailability.Complex
getComplex(int id)
getComplex.ModelledFeature
getComplexFeature(int id)
getComplexFeature.ModelledEntity
getComplexParticipant(int id)
getComplexParticipant.Experiment
getExperiment(int id)
getExperiment.Feature
getFeature(int id)
getFeature.Interaction
getInteraction(int id)
getInteraction.Interactor
getInteractor(int id)
getInteractor.Entity
getParticipant(int id)
getParticipant.VariableParameterValue
getVariableParameterValue(int id)
getVariableParameterValue.void
registerAvailability(int id, AbstractAvailability object)
Register an availability with an idvoid
registerComplex(int id, Complex object)
Register a complex with an idvoid
registerComplexFeature(int id, ModelledFeature object)
Register a complex feature with an idComplex
registerComplexLoadedFrom(Interaction f)
registerComplexLoadedFrom.void
registerComplexParticipant(int id, ModelledEntity object)
Register a participant involved in a complex with an idvoid
registerExperiment(int id, Experiment object)
Register an experiment with an idvoid
registerFeature(int id, Feature object)
Register a feature with an idvoid
registerInteraction(int id, Interaction object)
Register an interaction with an idvoid
registerInteractor(int id, Interactor object)
Register an interactor with an idModelledFeature
registerModelledFeatureLoadedFrom(Feature f)
registerModelledFeatureLoadedFrom.ModelledEntity
registerModelledParticipantLoadedFrom(Entity f)
registerModelledParticipantLoadedFrom.void
registerParticipant(int id, Entity object)
Register a participant with an idvoid
registerVariableParameterValue(int id, VariableParameterValue object)
Register a variable parameter value with an id
-
-
-
Method Detail
-
registerAvailability
void registerAvailability(int id, AbstractAvailability object)
Register an availability with an id- Parameters:
id
- a int.object
- aAbstractAvailability
object.
-
getAvailability
AbstractAvailability getAvailability(int id)
getAvailability.
- Parameters:
id
- a int.- Returns:
- the availability registered with this id, null if it does not exist
-
registerExperiment
void registerExperiment(int id, Experiment object)
Register an experiment with an id- Parameters:
id
- a int.object
- aExperiment
object.
-
getExperiment
Experiment getExperiment(int id)
getExperiment.
- Parameters:
id
- a int.- Returns:
- the experiment registered with this id, null if it does not exist
-
registerInteraction
void registerInteraction(int id, Interaction object)
Register an interaction with an id- Parameters:
id
- a int.object
- aInteraction
object.
-
getInteraction
Interaction getInteraction(int id)
getInteraction.
- Parameters:
id
- a int.- Returns:
- the interaction registered with this id, null if it does not exist
-
registerInteractor
void registerInteractor(int id, Interactor object)
Register an interactor with an id- Parameters:
id
- a int.object
- aInteractor
object.
-
getInteractor
Interactor getInteractor(int id)
getInteractor.
- Parameters:
id
- a int.- Returns:
- the interactor registered with this id, null if it does not exist
-
registerParticipant
void registerParticipant(int id, Entity object)
Register a participant with an id- Parameters:
id
- a int.object
- aEntity
object.
-
getParticipant
Entity getParticipant(int id)
getParticipant.
- Parameters:
id
- a int.- Returns:
- the participant registered with this id, null if it does not exist
-
registerFeature
void registerFeature(int id, Feature object)
Register a feature with an id- Parameters:
id
- a int.object
- aFeature
object.
-
getFeature
Feature getFeature(int id)
getFeature.
- Parameters:
id
- a int.- Returns:
- the feature registered with this id, null if it does not exist
-
registerComplexParticipant
void registerComplexParticipant(int id, ModelledEntity object)
Register a participant involved in a complex with an id- Parameters:
id
- a int.object
- aModelledEntity
object.
-
getComplexParticipant
ModelledEntity getComplexParticipant(int id)
getComplexParticipant.
- Parameters:
id
- a int.- Returns:
- the participant registered with this id, null if it does not exist
-
registerComplexFeature
void registerComplexFeature(int id, ModelledFeature object)
Register a complex feature with an id- Parameters:
id
- a int.object
- aModelledFeature
object.
-
getComplexFeature
ModelledFeature getComplexFeature(int id)
getComplexFeature.
- Parameters:
id
- a int.- Returns:
- the feature registered with this id, null if it does not exist
-
registerComplex
void registerComplex(int id, Complex object)
Register a complex with an id- Parameters:
id
- a int.object
- aComplex
object.
-
getComplex
Complex getComplex(int id)
getComplex.
- Parameters:
id
- a int.- Returns:
- the complex registered with this id, null if it does not exist
-
registerVariableParameterValue
void registerVariableParameterValue(int id, VariableParameterValue object)
Register a variable parameter value with an id- Parameters:
id
- a int.object
- aVariableParameterValue
object.
-
getVariableParameterValue
VariableParameterValue getVariableParameterValue(int id)
getVariableParameterValue.
- Parameters:
id
- a int.- Returns:
- the variable parameter value registered with this id, null if it does not exist
-
clear
void clear()
Clear all existing records
-
close
void close()
Close cache
-
containsExperiment
boolean containsExperiment(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
containsAvailability
boolean containsAvailability(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
containsInteraction
boolean containsInteraction(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
containsInteractor
boolean containsInteractor(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
containsParticipant
boolean containsParticipant(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
containsFeature
boolean containsFeature(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
containsVariableParameter
boolean containsVariableParameter(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
containsComplex
boolean containsComplex(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
containsComplexParticipant
boolean containsComplexParticipant(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
containsComplexFeature
boolean containsComplexFeature(int id)
To know if it contains a specific id- Parameters:
id
- a int.- Returns:
- a boolean.
-
registerModelledFeatureLoadedFrom
ModelledFeature registerModelledFeatureLoadedFrom(Feature f)
registerModelledFeatureLoadedFrom.
- Parameters:
f
- : the loaded feature- Returns:
- the converted and registered modelled feature
-
registerModelledParticipantLoadedFrom
ModelledEntity registerModelledParticipantLoadedFrom(Entity f)
registerModelledParticipantLoadedFrom.
- Parameters:
f
- : the loaded participant- Returns:
- the converted and registered modelled participant
-
registerComplexLoadedFrom
Complex registerComplexLoadedFrom(Interaction f)
registerComplexLoadedFrom.
- Parameters:
f
- : the loaded interaction- Returns:
- the converted and registered complex
-
-