Skip to content

Launch Configurations

Ed Seidewitz edited this page Oct 27, 2017 · 3 revisions

There are three launch configurations provided for use within Eclipse, corresponding to the command line scripts alf, alfc and fuml. These scripts are intended to be used in an Eclipse workspace into which the three Alf Reference Implementation projects have been imported.

If the launch configurations do not appear in the Run Configurations drop-down menu, import them into Eclipse using File > Import..., selecting Run/Debug > Launch Configurations and selecting the files from the appropriate directory location. To use a launch configuration, select a file and then choose the desired configuration in the Run Configurations dialog (File > Run Configurations...) or from the Run Configuration drop-down list.

Shown below, for each launch configuration, is where the file for it is located in the Reference Implementation project structure, the effective command line equivalent for it and what kind of resource should be selected for it. Eclipse argument variables are used in the arguments of the commands to represent how the arguments are constructed based on the selected resource, consistent with the actual definition of each launch configuration. (For the meaning of the various command options, see the documentation of the command line scripts.)

alf: Model execution using the fUML Reference Implementation

Launcher file: org.modeldriven.alf.fuml.impl/launch/alf.launch
Command: alf -v -d ERROR -l ${project_loc:org.modeldriven.alf}/Libraries -m "${container_loc}" -f "${selected_resource_loc}"
Selected resource: An Alf file, whose containing directory will be used as the root model directory for subunit resolution (as described in Unit Management).

alfc: Model compilation to an Eclipse UML2 file

Launcher file: /org.modeldriven.alf.eclipse/launch/alfc.launch
Command: alfc -v -m "${container_loc}" -f "${selected_resource_loc}"
Selected resource: An Alf file, whose containing directory will be used as the root model directory for subunit resolution (as described in Unit Management).

fuml: Model execution using Moka

Launcher file: /org.modeldriven.alf.eclipse.moka/launch/fuml.launch
Command: fuml -v -l "${workspace_loc:org.modeldriven.alf.eclipse/Libraries}" -u "${container_loc}" "${selected_resource_name}" Selected resource: A UML file