You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These helper functions are made to work with the our `my-language.mal` language. Here we defined how the assets will connect with each other. Each function creates assets in a model and connects the assets to other assets using associations.
94
-
95
-
Now we can create a model and use the helper methods. Add this to the end of the file:
- Two instances of our `Computer` asset (`ComputerA` and `ComputerB`) and our `Folder` asset (`FolderA` and `FolderB`).
95
+
- A connection between `ComputerA` and `ComputerB`. The string `"computer2"` comes from the `ComputerConnection` association in the MAL language we created.
96
+
- Two connections between the computer and folder instances. The strings `"folder"` come from the `ComputerFolderConnection` association.
116
97
98
+
Now we can instantiate the model and compile. Add this to the end of the file:
0 commit comments