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
Copy file name to clipboardExpand all lines: doc/content/modules/user-manual/pages/hands-on/tutorials/flashlight.adoc
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,15 @@ image::flashlight-model-organization.png[Flashlight Model Organization]
28
28
29
29
== Step 3: Flashlight Requirements Tree
30
30
31
-
. In the explorer, select the `Requirements` package, click the "more" menu, and choose `New representation`
31
+
. In the `Explorer` view, select the `Requirements` package, click the "more" menu, and choose `New representation`
32
32
. Set the name of the representation to `Requirements General View`.
33
33
. Create a new `General View` and open it.
34
34
. In the main editor area, right-click on the diagram background to open the palette.
35
35
. Click on `Requirements` -> `New Requirement` to create a new requirement.
36
36
. Rename it to `flashlightSpecification`.
37
37
. Right-click on the `flashlightSpecification` requirement, then select `Requirements` -> `New Requirement` to create a nested requirement.
38
38
. Rename the new requirement to `userInterface`.
39
-
. In the explorer, select `flashlightSpecification`, click the "more" menu, and choose `New objects from text`.
39
+
. In the `Explorer` view, select `flashlightSpecification`, click the "more" menu, and choose `New objects from text`.
40
40
. In the modal input box, paste the following content:
41
41
[source, sysml]
42
42
----
@@ -58,7 +58,7 @@ requirement physical{
58
58
requirement reliability;
59
59
requirement cost;
60
60
----
61
-
. Select the newly created elements (`illumination`, `physical`, `reliability`, `cost`, `portability`, `size`, `weight`, `fieldOfView`, `lightPower`) in the explorer (Ctrl + Click), and drag-and-drop them into the diagram.
61
+
. Select the newly created elements (`illumination`, `physical`, `reliability`, `cost`, `portability`, `size`, `weight`, `fieldOfView`, `lightPower`) in the `Explorer` view (Ctrl + Click), and drag-and-drop them into the diagram.
62
62
. Use the `Arrange all elements` tool from the diagram toolbar to auto layout the diagram.
63
63
. Right-click on the `size` requirement and select `Show/Hide -> Show valued content` to display the documentation in the diagram.
64
64
. Repeat the operation for the children of `illumination`: `fieldOfView` and `lightPower`.
@@ -69,15 +69,15 @@ requirement cost;
69
69
. Right-click on the background of diagram and use the tool `New Namespace Import`.
70
70
Then select `SI/Library Package SI` to import it from the standard libraries.
71
71
. Use the palette filter to locate the `New Required Constraint` tool, and apply it to the `weight` requirement.
72
-
. Edit the constraint to: `actualweight\<=0.25[kg]`
72
+
. Edit the constraint to: `actualweight\<=0.25[kg]`
. Select `fork1` and use the connection tool to create a succession to the `provideDCPwr` action.
91
91
. Right-click on `provideDCPwr`, then select `Structure`-> `New Item Out`.
92
92
. Rename the item to `outdcPwr`.
93
-
. In the explorer, select the `produceDirectedLight` action, click the "more" menu, and choose `New objects from text`.
93
+
. In the `Explorer` view, select the `produceDirectedLight` action, click the "more" menu, and choose `New objects from text`.
94
94
. In the model input box, paste the following content:
95
95
[source,sysml]
96
96
----
@@ -112,18 +112,18 @@ action directLight{
112
112
----
113
113
. In the `action flow` compartment of `produceDirectLight` use the tool `Related Elements -> Add existing element`.
114
114
. Create a new transition between `fork1` and `connectDCPwr`.
115
-
. Set the value of `connectDCPwr::onOffCmd` by renaming the item `in onOffCmd` of `connectDCPwr` to `in onOffCmd = produceDirectedLight.onOffCmd`
115
+
. Set the value of `connectDCPwr::onOffCmd` by renaming the item `in onOffCmd` of `connectDCPwr` to `in onOffCmd = produceDirectedLight.onOffCmd`.
116
116
. Create a `Flow Connection (flow)` from `dcPwrOut` of `connectDCPwr` to `dcPwrIn` of `generateLight`.
117
117
. Create a `Flow Connection (flow)` between `light` of `generateLight` to `lightIn` of `directLight`.
118
118
. Create a `Flow Connection (flow)` between `outdcPwr` of `provideDCPwr` to `dcPwrIn` of `connectDCPwr`.
119
-
. Using the eye icon on the `produceDirectLight` action display the `items` compartement
119
+
. Using the eye icon on the `produceDirectLight` action display the `items` compartment.
120
120
. Set the value of `produceDirectedLight::lightOut` by renaming the item `out lightOut` of `produceDirectedLight` to `out lightOut = directLight.lightOut`.
0 commit comments