Intro to WebGME for Federations - SCU-Smart-Grid-CPS/smart-grid-energy-simulation-research GitHub Wiki
Open WebGME by clicking on the three hexagon icon at the top left of the UCEF VM. If you do not see it, try searching in Applications -> Other. Note version 1.1.0 does NOT have WebGME; use version 1.0.0
Setup
You will see a screen like this:
Select "Create New"
Select "hla-federation" -> "Create"
On this screen, first select the part labeled NewProject, then in the attributes rename it what you called the project.
Building
Now click on "FederationDesign". There will be existing default blocks; leave these alone. To add components, or federates, click and drag them from the menu on the left.
The area on the bottom right is called the Property Editor. It shows up only when you have one of the components selected. It can rename components and change other properties by clicking on the associated property and selecting or typing in a new value.
Arrows signify that data will transfer from one federate to another. To add arrows, hover over each item and click and drag one of the little white squares that pop up in the top and bottom to another object.
Exporting the Federation
On the top left of WebGME, click on the triangle "play" icon.
Select Deployment Exporter or Federates Exporter, and click "Save & Run" on the pop up window, keeping defaults.
Click the green pop up or go to the "play" icon again; it has a new option "Show results..."
On this pop up, click on the .zip file and download. Then close the window and repeat for the remaining exporter (Federates or Deployment).
In your downloads location, unzip each of the "projectName_deployment" and "projectName_generated" into folders of the same name, keeping the directory structure.
The federation is now ready to be coded and built.