Interface PsiXmlObjectCache

    • Method Detail

      • extractIdForAvailability

        int extractIdForAvailability​(String av)
        This method will extract the id for this object if it is already registered, assign an id and register the object if not already registered
        Parameters:
        av - a String object.
        Returns:
        the id assigned to this object
      • extractIdForExperiment

        int extractIdForExperiment​(Experiment o)
        This method will extract the id for this object if it is already registered, assign an id and register the object if not already registered
        Parameters:
        o - a Experiment object.
        Returns:
        the id assigned to this object
      • extractIdForInteractor

        int extractIdForInteractor​(Interactor o)
        This method will extract the id for this object if it is already registered, assign an id and register the object if not already registered
        Parameters:
        o - a Interactor object.
        Returns:
        the id assigned to this object
      • extractIdForInteraction

        int extractIdForInteraction​(Interaction o)
        This method will extract the id for this object if it is already registered, assign an id and register the object if not already registered
        Parameters:
        o - a Interaction object.
        Returns:
        the id assigned to this object
      • extractIdForParticipant

        int extractIdForParticipant​(Entity o)
        This method will extract the id for this object if it is already registered, assign an id and register the object if not already registered
        Parameters:
        o - a Entity object.
        Returns:
        the id assigned to this object
      • extractIdForVariableParameterValue

        int extractIdForVariableParameterValue​(VariableParameterValue o)
        This method will extract the id for this object if it is already registered, assign an id and register the object if not already registered
        Parameters:
        o - a VariableParameterValue object.
        Returns:
        the id assigned to this object
      • extractIdForFeature

        int extractIdForFeature​(Feature o)
        This method will extract the id for this object if it is already registered, assign an id and register the object if not already registered
        Parameters:
        o - a Feature object.
        Returns:
        the id assigned to this object
      • extractIdForComplex

        int extractIdForComplex​(Complex o)
        This method will extract the id for this object if it is already registered, assign an id and register the object if not already registered
        Parameters:
        o - a Complex object.
        Returns:
        the id assigned to this object
      • clear

        void clear()
        Clear registered complexes and object ids
      • close

        void close()
        Close cache
      • contains

        boolean contains​(Object o)
        True if it contains this object
        Parameters:
        o - a Object object.
        Returns:
        a boolean.
      • clearRegisteredSubComplexes

        Set<ModelledInteraction> clearRegisteredSubComplexes()
        This method will return all registered complexes and clear them from the index
        Returns:
        a Set object.
      • hasRegisteredSubComplexes

        boolean hasRegisteredSubComplexes()

        hasRegisteredSubComplexes.

        Returns:
        true if the index has registered som sub complexes, fasle otherwise
      • removeObject

        void removeObject​(Object o)

        removeObject.

        Parameters:
        o - a Object object.
      • getLastGeneratedId

        int getLastGeneratedId()

        getLastGeneratedId.

        Returns:
        the last generated id
      • resetLastGeneratedIdTo

        void resetLastGeneratedIdTo​(int id)
        Reset the last generated id to a specific value
        Parameters:
        id - a int.