Interface StorageConnector

  • All Known Implementing Classes:
    DataStorage, XmlConnector

    public interface StorageConnector
    General interface for this creation of arbitrary connectors, able to save Models persistently.
    Author:
    Kapeluch, El-Sharkawy
    • Method Detail

      • loadModels

        void loadModels​(PersistentProject project)
                 throws PersistenceException
        Method for loading models out of a persistent file/database.
        Parameters:
        project - A PersistentProject holding an empty array of Models for storing the information read in a persistent file/database. These models must only contain the correct ModelTypes, for managing which parts should be loaded.
        Throws:
        PersistenceException - Will be thrown if an error is occurred during reading the persistent information.
      • saveModels

        void saveModels​(PersistentProject project)
                 throws PersistenceException
        Saves data from given model to storage.
        Parameters:
        project - The information which should be saved in non ivml files.
        Throws:
        PersistenceException - Will be thrown if an error is occurred during reading the persistent information.
      • getProjectID

        java.lang.String getProjectID()
        Returns the UUID of a given pl project.
        Returns:
        the id or null if the specified project has no configuration file.
      • getPathEnvironment

        PathEnvironment getPathEnvironment()
        Returns the path environment used for making paths relative.
        Returns:
        the path environment