Class LowlevelCommands

java.lang.Object
net.ssehub.easy.standalone.cmd.LowlevelCommands

public class LowlevelCommands extends Object
Static commands for running and controlling EASy via command line or by a build tool. These class contains only very simple lowlevel commands for atomic functions.
Author:
El-Sharkawy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Should prevent instantiation of this utility class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.ssehub.easy.producer.core.mgmt.PLPInfo
    getProject(String projectName)
    Returns the EASy project with the given name.
    static void
    loadProject(File projectFolder)
    Adds one project (folder) to the SPLsManager.
    static void
    loadWorkspace(File wsFolder)
    Loads all projects of a given workspace (folder).
    static void
    Loads and starts the classes of EASy.

    Methods inherited from class java.lang.Object

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

    • LowlevelCommands

      private LowlevelCommands()
      Should prevent instantiation of this utility class.
  • Method Details

    • loadProject

      public static void loadProject(File projectFolder) throws net.ssehub.easy.producer.core.persistence.PersistenceException
      Adds one project (folder) to the SPLsManager. The folder must be a valid EASy project with a correct project structure, e.g. EASy sub folder or .EASy-Producer project, correct named IVML/VIL files and so on.
      Parameters:
      projectFolder - The toplevel folder of the project
      Throws:
      net.ssehub.easy.producer.core.persistence.PersistenceException - Will be thrown if the project has no valid EASy structure.
    • loadWorkspace

      public static void loadWorkspace(File wsFolder)
      Loads all projects of a given workspace (folder). The projects must be valid EASy projects.
      Parameters:
      wsFolder - A folder which contains EASy project folders, which should be loaded.
      See Also:
    • getProject

      public static net.ssehub.easy.producer.core.mgmt.PLPInfo getProject(String projectName)
      Returns the EASy project with the given name. The projects must already be loaded and stored inside the SPLsManager. For this reason, the loadProject(File) or loadWorkspace(File) method should be called before this method is called.
      Parameters:
      projectName - The name of the project to be loaded.
      Returns:
      Returns a loaded PLPInfo or null if no project was loaded with the specified projectName.
    • startEASy

      public static void startEASy() throws IOException
      Loads and starts the classes of EASy. This method must be called once, before all other operations can be performed.
      Throws:
      IOException - in case of loading the startup sequence fails.