Changes between Version 19 and Version 20 of LabassertUserGuide


Ignore:
Timestamp:
05/25/09 11:13:33 (15 years ago)
Author:
pierre
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LabassertUserGuide

    v19 v20  
    11[[PageOutline(1-4)]]
    22
    3 '''__Labassert User Guide__'''[[BR]]
    4 Reference: ESA/ESTEC contract n°21166/07/NL/JK -8 Jan. 2008
     3'''__Labassert User Guide__'''[[BR]] Reference: ESA/ESTEC contract n°21166/07/NL/JK -8 Jan. 2008
    54
    65''Written by: Jérôme Legrand on 20 Nov. 2008 [[BR]] Checked by: Pierre Dissaux on 21 Nov. 2008''
     
    1716}}}
    1817}}}
    19 
    20 
    21 
    2218{{{
    2319#!comment
     
    4945   a. [wiki:LabassertUserGuide#a3.3DeploymentViewEditor Deployment View Editor]
    5046}}}
    51 
    5247= Installation =
    5348Labassert 1.0 is available on Windows and Linux. Its installation requires no specific platform dependent procedure. The only action that may be required is to uncompress the archive with the appropriate utility if the distribution was provided as a zip or tar.gz file.
     
    9590
    9691=== Edit Menu Description ===
    97  * New Function : create a function (functions appear in “Functions” notebook).
     92 * New Function : create a function (functions appear in "Functions" notebook).
    9893 * Delete Function : delete the selected function.
    9994 * Add Interface : add an interface to a function.
    10095 * Remove Interface : remove an interface from a function.
    101  * New Interface : create an interface (interfaces appear in “interfaces” notebook).
     96 * New Interface : create an interface (interfaces appear in "interfaces" notebook).
    10297 * Delete Interface : delete the selected interface.
    10398 * New Parameter : add a parameter to an interface.
    10499 * Delete Parameter : remove a parameter from an interface.
    105100
    106 === “?” Menu Description ===
     101=== "?" Menu Description ===
    107102 * About : about the Interface View Editor.
    108103 * Help : application description and accelerators available.
     
    153148 * Option : launch Interface View Editor option dialog box.
    154149
    155 === “?” Menu Description ===
     150=== "?" Menu Description ===
    156151 * About : about the Interface View Editor.
    157152 * Help : application description and accelerators available.
     
    196191 * Option : launch Deployment View Editor option dialog box.
    197192
    198 === "? Menu Description ===
     193=== "?" Menu Description ===
    199194 * About : about the Deployment View Editor.
    200195 * Help : application description and accelerators available.
     
    216211END Tutorial_Types;
    217212}}}
    218  3. Create a '''Function''' named “Calculator” (Edit → New Function) :[[BR]][[BR]][[Image(htdocs:UserGuide/img5.png)]]
    219 
    220  4. Click on the “Interfaces” tab.
    221  4. Create 4 '''Interfaces''' named “Add”, “Sub”, “Mul” and “Div” with same attributes (Edit → New Interface) :[[BR]][[BR]][[Image(htdocs:UserGuide/img6.png)]]
     213 3. Create a '''Function''' named "Calculator" (Edit → New Function) :[[BR]][[BR]][[Image(htdocs:UserGuide/img5.png)]]
     214
     215 4. Click on the "Interfaces" tab.
     216 4. Create 4 '''Interfaces''' named "Add", "Sub", "Mul" and "Div" with same attributes (Edit → New Interface) :[[BR]][[BR]][[Image(htdocs:UserGuide/img6.png)]]
    222217
    223218 6. For each interfaces, create 3 parameters [[BR]] (Select the interface and click on Edit → New Parameter) :
    224219
    225  * o1 : direction “in”, type “Float” and protocol “NATIVE”.
    226  * o2 : direction “in”, type “Float” and protocol “NATIVE”.
    227  * r : direction “out”, type “Float” and protocol “NATIVE”.[[BR]][[BR]][[Image(htdocs:UserGuide/img7.png)]]
     220 * o1 : direction "in", type "Float" and protocol "NATIVE".
     221 * o2 : direction "in", type "Float" and protocol "NATIVE".
     222 * r : direction "out", type "Float" and protocol "NATIVE".[[BR]][[BR]][[Image(htdocs:UserGuide/img7.png)]]
    228223
    229224Note : the newly created parameters shall appear on the right table application.
    230225
    231  7. Click on the “Functions” tab.
    232  7. Select the “Calculator” '''Function''' and add the interfaces (Edit → Add Interface) :[[BR]][[BR]][[Image(htdocs:UserGuide/img8.png)]]
     226 7. Click on the "Functions" tab.
     227 7. Select the "Calculator" '''Function''' and add the interfaces (Edit → Add Interface) :[[BR]][[BR]][[Image(htdocs:UserGuide/img8.png)]]
    233228
    234229 9. Finally, save the current library (File → Save Library) :[[BR]][[BR]][[Image(htdocs:UserGuide/img9.png)]]
    235230
    236 Note : in the save as dialog box, a default name is proposed for the file : the previously given library name with the “.lfv” extension (Calc.lfv in our example).
     231Note : in the save as dialog box, a default name is proposed for the file : the previously given library name with the ".lfv" extension (Calc.lfv in our example).
    237232
    238233== Interface View Editor ==
    239234 1. Launch the Interface View Editor.
    240  1. Load the previous '''Functional View''' (File → Load Functional View) : “Calc.lfv” file.
    241  1. Create a '''Container''' named “Time” (Edit → New Container or right mouse button contextual menu New Container entry) :[[BR]][[BR]][[Image(htdocs:UserGuide/img10.png)]]
    242 
    243  4. Create a '''Function''' named “Convert” into the “Time” '''Container''' (Edit → New Function or right mouse button contextual menu New Function entry) :[[BR]][[BR]][[Image(htdocs:UserGuide/img11.png)]]
    244 
    245  5. Create 3 '''Provided Interfaces''' on the “Convert” '''Function''' (Edit → New PI or right mouse button contextual menu New PI entry) :
    246 
    247  * Day_To_Sec : kind “sporadic”, Inter-arrival time “100”, deadline “5” and “ms” unit.
    248  * Hour_To_Sec : kind “sporadic”, Inter-arrival time “100”, deadline “5” and “ms” unit.
    249  * Min_To_Sec : kind “sporadic”, Inter-arrival time “100”, deadline “5” and “ms” unit.
     235 1. Load the previous '''Functional View''' (File → Load Functional View) : "Calc.lfv" file.
     236 1. Create a '''Container''' named "Time" (Edit → New Container or right mouse button contextual menu New Container entry) :[[BR]][[BR]][[Image(htdocs:UserGuide/img10.png)]]
     237
     238 4. Create a '''Function''' named "Convert" into the "Time" '''Container''' (Edit → New Function or right mouse button contextual menu New Function entry) :[[BR]][[BR]][[Image(htdocs:UserGuide/img11.png)]]
     239
     240 5. Create 3 '''Provided Interfaces''' on the "Convert" '''Function''' (Edit → New PI or right mouse button contextual menu New PI entry) :
     241
     242 * Day_To_Sec : kind "sporadic", Inter-arrival time "100", deadline "5" and "ms" unit.
     243 * Hour_To_Sec : kind "sporadic", Inter-arrival time "100", deadline "5" and "ms" unit.
     244 * Min_To_Sec : kind "sporadic", Inter-arrival time "100", deadline "5" and "ms" unit.
    250245
    251246[[Image(htdocs:UserGuide/img12.png)]]
    252247
    253  6. Create 1 '''Required Interfaces''' on the “Convert” '''Function''' (Edit → New RI or right mouse button contextual menu New RI entry) :
    254 
    255  * “Mul” : choose the operation “Mul” in the combo box.
     248 6. Create 1 '''Required Interfaces''' on the "Convert" '''Function''' (Edit → New RI or right mouse button contextual menu New RI entry) :
     249
     250 * "Mul" : choose the operation "Mul" in the combo box.
    256251
    257252[[Image(htdocs:UserGuide/img13.png)]]
    258253
    259  7. Connect all '''Provided Interface Implementation''' to the “Mul” '''Required''' Interface.  In order to create a connection between 2 objects, you have to :
    260 
    261  * Click on Edit → New Connection menu or right mouse button contextual menu New Connection entry or push the “shift” key (don't release the key until the connection has been created).
     254 7. Connect all '''Provided Interface Implementation''' to the "Mul" '''Required''' Interface.  In order to create a connection between 2 objects, you have to :
     255
     256 * Click on Edit → New Connection menu or right mouse button contextual menu New Connection entry or push the "shift" key (don't release the key until the connection has been created).
    262257 * Select the first object by pushing the left mouse button (don't release the button).
    263258 * And release the left mouse button on the second object.
     
    271266 * There is an automatic interface(s) creation facility when 2 objects are connected : in our example, a '''Required Interface''' is automatically created on the '''Provided Interface Implementation'''.
    272267
    273  8. Create 1''' Required Interfaces''' on the “Convert” '''Function'''  and connect all '''Provided Interface Implementation''' to it :
    274 
    275  * “Result” : leave the operation field blank.
     268 8. Create 1''' Required Interfaces''' on the "Convert" '''Function'''  and connect all '''Provided Interface Implementation''' to it :
     269
     270 * "Result" : leave the operation field blank.
    276271
    277272[[Image(htdocs:UserGuide/img15.png)]]
    278273
    279  9. Create a “Calculator” '''Function''' chosen from the previously loaded '''Functional View''' (choose the Function name in the creation dialog-box list) and connect the “Convert” '''Function''' “Mul” '''Required Interface''' to the “Calculator”''' Function''' “Mul” '''Provided Interface'''. Edit the “Mul” '''Provided Interface''' by double clicking on it and choose “unprotected” kind.
     274 9. Create a "Calculator" '''Function''' chosen from the previously loaded '''Functional View''' (choose the Function name in the creation dialog-box list) and connect the "Convert" '''Function''' "Mul" '''Required Interface''' to the "Calculator"''' Function''' "Mul" '''Provided Interface'''. Edit the "Mul" '''Provided Interface''' by double clicking on it and choose "unprotected" kind.
    280275
    281276[[Image(htdocs:UserGuide/img16.png)]]
    282277
    283  10. Create a “IO” '''Container''' and in this container create 2 '''Functions''', “Input” and “Output”.
    284  10. Create a “sporadic” '''Provided Interface''' named “get_result” on the “Output” '''Function'''.
    285  10. Connect the “Input” '''Function''' to “Day_To_Sec” '''Provided Interface''' and the “get_result” '''Provided Interface''' to the “result” '''Required Interface'''.
     278 10. Create a "IO" '''Container''' and in this container create 2 '''Functions''', "Input" and "Output".
     279 10. Create a "sporadic" '''Provided Interface''' named “get_result” on the "Output" '''Function'''.
     280 10. Connect the "Input" '''Function''' to "Day_To_Sec" '''Provided Interface''' and the "get_result" '''Provided Interface''' to the "result" '''Required Interface'''.
    286281
    287282[[Image(htdocs:UserGuide/img17.png)]]
    288283
    289  13. Save the current interface view as “Time_Conversion.liv” (File → Save).
     284 13. Save the current interface view as "Time_Conversion.liv" (File → Save).
    290285 13. Double left click on a '''Provided Interface Implementation''' or select Tools → Edit Functional View. A functional view is opened with all the functions and Function's interfaces (open and created in the '''Interface View''') :
    291286
     
    294289Note : this new library can be edited and save for further use.
    295290
    296   15.Generate the '''AADL''' file “Time_Conversion.aadl” (Tools → Generate Interface View). You can check the consistency of the result.
     291  15.Generate the '''AADL''' file "Time_Conversion.aadl" (Tools → Generate Interface View). You can check the consistency of the result.
    297292
    298293== Deployment View Editor ==
     
    301296 1. Create 2 '''Processors'''  (Edit → New Processor or right mouse button contextual menu New Processor entry) :
    302297
    303  * cpu1 : type “pentium”, implementation name “others”, processor location “127.0.0.1” and execution platform “Native”.
    304  * cpu2 : type “athlon”, implementation name “others”, processor location “127.0.0.2” and execution platform “Native”.
     298 * cpu1 : type "pentium", implementation name "others", processor location "127.0.0.1" and execution platform "Native".
     299 * cpu2 : type "athlon", implementation name "others", processor location "127.0.0.2" and execution platform "Native".
    305300
    306301[[Image(htdocs:UserGuide/img19.png)]]
    307302
    308  4. Create a '''Bus'''  named “VME” and “BSD_Sockets” transport API (Edit → New Bus or right mouse button contextual menu New Bus entry) :
     303 4. Create a '''Bus'''  named "VME" and "BSD_Sockets" transport API (Edit → New Bus or right mouse button contextual menu New Bus entry) :
    309304
    310305[[Image(htdocs:UserGuide/img20.png)]]
     
    312307 5. Create 2 '''Processor Interfaces''' (Edit → New Processor Interface or right mouse button contextual menu New Processor Interface entry) :
    313308
    314  * port_cpu1 on “cpu1” '''Processor''' : interface bus required “VME”.
    315  * port_cpu2 on “cpu2” '''Processor''' : interface bus required “VME”.
     309 * port_cpu1 on "cpu1" '''Processor''' : interface bus required "VME".
     310 * port_cpu2 on "cpu2" '''Processor''' : interface bus required "VME".
    316311
    317312  And connect them to the bus (same process as Interface View Editor).
     
    323318 6. Create 2 '''Partitions''' (Edit → New Partition or right mouse button contextual menu New Partition entry) :
    324319
    325  * A1 in “cpu1” '''Processor''' : type “A1”, implementation name “others” and  leave port number empty.
    326  * A2 in “cpu2” '''Processor''' : type “A2”, implementation name “others” and  leave port number empty.
     320 * A1 in "cpu1" '''Processor''' : type "A1", implementation name "others" and  leave port number empty.
     321 * A2 in "cpu2" '''Processor''' : type "A2", implementation name "others" and  leave port number empty.
    327322
    328323[[Image(htdocs:UserGuide/img22.png)]]
    329324
    330  7. In “A1” '''Partition''', add “Input” and “Output” '''Functions''' (Edit → Add Function or right mouse button contextual menu Add Function entry) and in “A2” '''Partition''', add “Convert” and “Calculator” '''Functions''' :
     325 7. In "A1" '''Partition''', add "Input" and "Output" '''Functions''' (Edit → Add Function or right mouse button contextual menu Add Function entry) and in "A2" '''Partition''', add "Convert" and "Calculator" '''Functions''' :
    331326
    332327[[Image(htdocs:UserGuide/img23.png)]]
    333328
    334329 8. Save the current deployment view as “Deployment1.ldv” (File → Save).
    335  8. Generate the '''AADL''' file “Deployment1.aadl” (Tools → Generate Deployment View). You can check the consistency of the result.
     330 8. Generate the '''AADL''' file "Deployment1.aadl" (Tools → Generate Deployment View). You can check the consistency of the result.
    336331 8. For one '''Interface View''', one can have several '''Deployment View'''. Remove the previously added '''Functions''' (select a '''Function''' or a group of '''Functions''' and File → Delete Selection or right mouse button contextual menu Delete Selection entry ).
    337332
     
    340335[[Image(htdocs:UserGuide/img24.png)]]
    341336
    342 11. In “A1” '''Partition''', add “Input”, “Convert” and “Calculator” '''Functions''' and in “A2” '''Partition''', add “Output” '''Functions''' :
     33711. In "A1" '''Partition''', add "Input", "Convert" and "Calculator" '''Functions''' and in "A2" '''Partition''', add "Output" '''Functions''' :
    343338
    344339[[Image(htdocs:UserGuide/img25.png)]]
    345340
    346 12. Save the current deployment view as “Deployment2.ldv”.[[BR]] 13. Generate the '''AADL''' file “Deployment2.aadl”. You can check the consistency of the result.
     34112. Save the current deployment view as "Deployment2.ldv".[[BR]] 13. Generate the '''AADL''' file "Deployment2.aadl". You can check the consistency of the result.
    347342
    348343[http://linux2/sortieHtml/download.php Html offline version (zipped)]