MutRoSe for Visual Studio CodeThis extension ships all the needed tooling for modelling and decomposing missions with MutRoSe. What's included?
System RequirementsModelling
MutRoSe
How to useSince the extension expects the same project pattern as the MutRoSe, your workspace needs to have the following structure:
Goal model editor
Re-open any DirectoriesGoal Model's (gm)That's where you'll put all your goal models that you want to edit. They should be the same format as the PiStar hosted by the UFPE generates, but they need to have the .gm file extension, otherwise they won't appear in the treeview nor open the custom text editor. HDDL (hddl)This directory should contain the hddl Knowledge (knowledge)This directory should contain the knowledge file in the xml format ConfigurationThis directory should contain the configuration files that defines the output and world_knowledge paths. Basic ConfigurationFor the extension to work properly, the first step is to define the config and hddl path in the settings.json which can be located inside the .vscode folder of your workspace. If it doesn't exists, you should create it. The extension expects the variables to contain the relative path for both files and it's only used to execute the MutRoSe properly. Example for the variables
Besides that, the extension also expects the path inside the configuration file to be relative since MutRoSe is executed from the workspace's root. Lastly, it's also needed to give permission for the MutRoSe binary to be executable and install the matplotlib with pip, that's usually done by running the following commands:
The path to vscode's extesions folder usually is How to modelFor using the Tree View it should mostly be intuitive, but the main idea is to right click every type of element to interact with them. For example, if you right click a Goal, all available options related to the goal will appear in a menu. In the goal model editor, elements (actors, goals and tasks) are numbered automatically when created. To save the file, press CTRL-S or save it like you normally would in VSCode. |