Changes between Version 36 and Version 37 of PromotEditorTest
- Timestamp:
- Aug 25, 2010, 1:11:07 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PromotEditorTest
v36 v37 13 13 14 14 '''Setup B: ''' applied to tests 11, 16, 20 [[BR]] 15 Start ProMoT server and GUI -> load [source:/Promot/trunk/promot/kb/practical-bio/LOAD.mdl] which includes the library ( reduced-library) for dynamic modeling15 Start ProMoT server and GUI -> load [source:/Promot/trunk/promot/kb/practical-bio/LOAD.mdl] which includes the library (dynamic-library) for dynamic modeling 16 16 -> Open the browser tree for "dynamic-model", for "mapk_modules" and double click to "raf-ras_modu" to open the Visual Editor for this class. 17 17 … … 59 59 There is also a !LinkNode created for the link between the storage and the adapter and placed on the storage terminal.[[BR]][[BR]] 60 60 12. !EditDetailsDialog (see [wiki:ProMoTVarEditorTest detailed tests])[[BR]][[BR]] 61 13. Open the !EditDetailsDialog for the slot "not_r1_r2_a2", add a documentation string and set the 'ignore_in_export' variable to the value '1', save and close (see test 12). Then select the slots "!r1", "!r2", "not_r1_r2_a2", "not _lr" and "a2" and the links between them and press 'Ctrl + C' and 'Ctrl + V'. The slots "!r10", "!r20", "not_lr0" "not_r1_r2_a20" and "a20" are created and connected like the original. Check via the !EditDetailsDialog or in the mdl that "not_r1_r2_a20" has the value '1' for the variable 'ignore_in_export' and the same documentation string like "not_r1_r2_a2". Open the visual editor for the class "nucleus" and also press 'Ctrl + V', the slots are created, check again the names variables and documentation.[[BR]][[BR]]61 13. Open the !EditDetailsDialog for the slot "not_r1_r2_a2", add a documentation string and set the 'ignore_in_export' variable to the value '1', save and close (see test 12). Then select the slots "!r1", "!r2", "not_r1_r2_a2", "not" and "a2" and the links between them and press 'Ctrl + C' and 'Ctrl + V'. The slots "!r10", "!r20", "not0" "not_r1_r2_a20" and "a20" are created and connected like the original. Check via the !EditDetailsDialog or in the mdl that "not_r1_r2_a20" has the value '1' for the variable 'ignore_in_export' and the same documentation string like "not_r1_r2_a2". Open the visual editor for the class "nucleus" and also press 'Ctrl + V', the slots are created, check again the names variables and documentation.[[BR]][[BR]] 62 62 14. Open the visual editor for the class "nucleus", open the !EditDetailsDialog for the slot "k3p1_k3p2_tf1" and change the variable "ignore_in_export" to the value "1", the variable "output.a" to the value "2" and add a documentation String. Save and close the dialog and the editor for "nucleus". Select the slot "nucleus" and choose from the menu 'Tools'->'Elevate Module Content'. Three slots named "k3p1_k3p2_tf1" "tf1" and "drain" are created and the ports of the gate are connected to the gates "k3p1" and "k3p2". The class nucleus is deleted. Now open the !EditDetailsDialog and check if the docu and variables are transfered.[[BR]][[BR]] 63 15. Edit the variables and docu of "not_r1_r2_a2" like in test 13. Select the slots "!r1", "!r2", "not_r1_r2_a2", "not _lr" and "a2" and choose from the menu 'Tools'->'Create Class From Selection', press OK in the class name dialog. The new class with the name "new_submodule_of_cell" is created and contains the selected slots, check via !EditDetailsDialog or in the mdl that the variables and docu for "not_r1_r2_a2" is transfered and the previously selected slots are deleted from the class cell.[[BR]][[BR]]63 15. Edit the variables and docu of "not_r1_r2_a2" like in test 13. Select the slots "!r1", "!r2", "not_r1_r2_a2", "not" and "a2" and choose from the menu 'Tools'->'Create Class From Selection', press OK in the class name dialog. The new class with the name "new_submodule_of_cell" is created and contains the selected slots, check via !EditDetailsDialog or in the mdl that the variables and docu for "not_r1_r2_a2" is transfered and the previously selected slots are deleted from the class cell.[[BR]][[BR]] 64 64 16. Choose from the menu 'Model'->'Export Graphics'->'Save Graphics to EPS', choose a target directory for the export, type a name and click to 'Save'. Repeat for the formats gif and gif-icon. Check the created files.[[BR]][[BR]] 65 17. Drag a rectangle around the nodes "r1_a1", "!r1", "!r2", "not _lr" "not_r1_r2_a2" to select them, then choose 'Edit'->'Set Map Number' from the menu. Type '2' in the dialog and click to OK. Check the mdl code in the browser, if parameters are written for the slots.[[BR]][[BR]]65 17. Drag a rectangle around the nodes "r1_a1", "!r1", "!r2", "not" "not_r1_r2_a2" to select them, then choose 'Edit'->'Set Map Number' from the menu. Type '2' in the dialog and click to OK. Check the mdl code in the browser, if parameters are written for the slots.[[BR]][[BR]] 66 66 18. Setting the model size is tested in [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/vizedit/cmds/CmdSetModelSizeTest.java][[BR]][[BR]] 67 67 19. Fitting the model size to module content is also tested in [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/vizedit/cmds/CmdSetModelSizeTest.java][[BR]][[BR]] … … 80 80 * phosphatase (Gray box; "Error (link fault):->Don't connect the !StructAdapter for Gates with Compounds") 81 81 * not_r1_r2_a2 (dark Magenta box; "Warning (Links):->Two or more !LinkNodes are connected.") 82 * a2 (dark Magenta box; "Warning ( !LinkNodes):->Two or more !LinkNodes are connected.")82 * a2 (dark Magenta box; "Warning (Nodes):->Two or more !LinkNodes are connected.") 83 83 * source (Gray box; "Error (link fault):->Don't connect !GateOutputs directly to !GateInputs, use a compound in-between"; "Error (link fault):->Don't connect Drains to Sources without a Compound") 84 84 * drain (Gray box; "Error (link fault):->Don't connect Drains to Sources without a Compound"; "Error (link fault):->Don't connect !GateOutputs directly to !GateInputs, use a compound in-between") … … 87 87 * k3p1 (Gray box; "Error (link fault):->Don't connect Compounds with each other") 88 88 * k1_k3r_k3p1 (Red box; "Error (open Port):-> Not all Ports have a connection") 89 * and_2_2 (dark Magenta box; "Warning ( !LinkNodes):->Two or more !LinkNodes are connected.")89 * and_2_2 (dark Magenta box; "Warning (Links):->Two or more !LinkNodes are connected.") 90 90 * a1_ph2 (Red box; "Error (open Port):-> Not all Ports have a connection") 91 91 * k2_k3r_k3p2 (Red box; "Error (open Port):-> Not all Ports have a connection") … … 93 93 23. Flipping of nodes is tested in [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/FlippingTest.java], rotation of nodes is tested in [source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/RotationTest.java][[BR]][[BR]] 94 94 24. Setup E: 95 * Choose from the menu 'Edit'->'Create Links'. Click 'Find Terminals' in the dialog. The following text (terminals) should apprear in the output log. [[BR]] ''NAME: term_1 OUTPUT: test1.out_term_1 INPUT: test2.in_term_1 [[BR]] NAME: term_2 OUTPUT: test2.out_term_2 INPUT: test1.in_term_2[[BR]] NAME: term_3 OUTPUT: test2.out_term_3 INPUT: test1.in_term_3'' [[BR]] Click 'Create Links' in the dialog. All Ports will be connected after performing the action. [[BR]][[BR]]95 * Choose from the menu 'Edit'->'Create Links'. Click 'Find Terminals' in the dialog. The following text (terminals) should apprear in the output log. [[BR]] ''NAME: term_1 OUTPUT: test1.out_term_1 INPUT: test2.in_term_1 [[BR]] NAME: term_2 OUTPUT: test2.out_term_2 INPUT: test1.in_term_2[[BR]] NAME: term_3 OUTPUT: test2.out_term_3 INPUT: test1.in_term_3'' [[BR]] Click 'Create Links' in the dialog. All Ports will be connected after performing the action. Undo/redo this action. [[BR]][[BR]] 96 96 25. SetupE+24. 97 97 * Open the Visual editor for test1. Change name of 'in_term_3' to 'in_term_4'. A dialog will pop up asking for refactoring. Click yes.