Package net.ssehub.easy.standalone.cmd
Class LowlevelCommands
java.lang.Object
net.ssehub.easy.standalone.cmd.LowlevelCommands
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
ConstructorsModifierConstructorDescriptionprivateShould prevent instantiation of this utility class. -
Method Summary
Modifier and TypeMethodDescriptionstatic net.ssehub.easy.producer.core.mgmt.PLPInfogetProject(String projectName) Returns the EASy project with the given name.static voidloadProject(File projectFolder) Adds one project (folder) to the SPLsManager.static voidloadWorkspace(File wsFolder) Loads all projects of a given workspace (folder).static voidLoads and starts the classes of EASy.
-
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
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
Returns the EASy project with the given name. The projects must already be loaded and stored inside theSPLsManager. For this reason, theloadProject(File)orloadWorkspace(File)method should be called before this method is called.- Parameters:
projectName- The name of the project to be loaded.- Returns:
- Returns a loaded
PLPInfoornullif no project was loaded with the specified projectName.
-
startEASy
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.
-