Class EASyPersistencer

java.lang.Object
net.ssehub.easy.producer.core.persistence.EASyPersistencer
net.ssehub.easy.producer.eclipse.persistency.EASyPersistencer
All Implemented Interfaces:
net.ssehub.easy.producer.core.persistence.standard.PersistenceConstants

public class EASyPersistencer extends net.ssehub.easy.producer.core.persistence.EASyPersistencer
Abstraction Layer for saving/reading persistent EASy-Producer information.
Author:
El-Sharkawy
  • Field Summary

    Fields inherited from interface net.ssehub.easy.producer.core.persistence.standard.PersistenceConstants

    CONFIG_FILE, EASY_FILES_DEFAULT, INSTANTIATOR_ENGINE, INSTANTIATOR_FILE, INSTANTIATOR_INHERITED, INSTANTIATOR_PATH_REGEX, INSTANTIATOR_PATHS, INSTANTIATOR_UUID, PLP_LOCATION, PLP_VERSION, PRESUCCESSOR_LOCATION, PRESUCCESSOR_MEMEBERNAME, PRESUCCESSOR_UUID, PRESUCCESSOR_VERSION, PTN_PROJECTNAME, PTN_SKIP, PTN_UUID, REASONER_ATTRIBUTE, REASONER_TIMEOUT, REASONER_VALUE_SEPARATOR, REASONER_VALUES, SETTINGS_DEBUG
  • Constructor Summary

    Constructors
    Constructor
    Description
    EASyPersistencer(File projectFolder)
    Creates a specialized EASy persistencer without underlying project.
    EASyPersistencer(File projectFolder, EclipseProgressObserver obs, org.eclipse.core.resources.IProject project)
    Creates a specialized EASy persistencer.
  • Method Summary

    Modifier and Type
    Method
    Description
    createPLP(String projectID, String projectName, net.ssehub.easy.producer.core.varMod.container.ProjectContainer project, File projectLocation, net.ssehub.easy.producer.core.varMod.container.ScriptContainer mainBuildScript)
     
    populateEasyProject(String projectID, String projectName, File projectFolder, net.ssehub.easy.varModel.model.Project ivmlModel)
     
    static void
    refreshModels(net.ssehub.easy.producer.core.mgmt.PLPInfo plp)
    (Re-)Loads all variability models of the specified ProductLineProject from the file system.

    Methods inherited from class net.ssehub.easy.producer.core.persistence.EASyPersistencer

    createProject, getEasyConfigFile, getPathEnvironment, getProjectFolder, getProjectID, load, populateEasyProject, projectPath, refreshConfiguration, save

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EASyPersistencer

      public EASyPersistencer(File projectFolder)
      Creates a specialized EASy persistencer without underlying project.
      Parameters:
      projectFolder - The location of the ProductLineProject.
    • EASyPersistencer

      public EASyPersistencer(File projectFolder, EclipseProgressObserver obs, org.eclipse.core.resources.IProject project)
      Creates a specialized EASy persistencer.
      Parameters:
      projectFolder - The location of the ProductLineProject.
      obs - progress observer, may be ProgressObserver.NO_OBSERVER
      project - the project instance to return a persistencer for, may be null then a default one may be obtained
  • Method Details

    • createPLP

      protected ProductLineProject createPLP(String projectID, String projectName, net.ssehub.easy.producer.core.varMod.container.ProjectContainer project, File projectLocation, net.ssehub.easy.producer.core.varMod.container.ScriptContainer mainBuildScript)
      Overrides:
      createPLP in class net.ssehub.easy.producer.core.persistence.EASyPersistencer
    • refreshModels

      public static void refreshModels(net.ssehub.easy.producer.core.mgmt.PLPInfo plp)
      (Re-)Loads all variability models of the specified ProductLineProject from the file system.
      Parameters:
      plp - A ProductLineProject containing saved models which should be (re-) loaded from the file system
    • populateEasyProject

      public ProductLineProject populateEasyProject(String projectID, String projectName, File projectFolder, net.ssehub.easy.varModel.model.Project ivmlModel)
      Overrides:
      populateEasyProject in class net.ssehub.easy.producer.core.persistence.EASyPersistencer