Академический Документы
Профессиональный Документы
Культура Документы
Agenda
2
Whats new in this tutorial Create a TOPCASED project/model Edit a diagram Document the model elements Autoresize the diagram Export the diagram as an image Add a diagram Rename a diagram Move a diagram Import from Model Adjust the structure of the model Virtual Order
You can consult the release note to find all news on TOPCASED 5.0.0RC1: http://www.topcased.org/index.php?idd_projet_pere=52&Itemid=60 Generate default documentation from your models (sl. 53-54-55)
Blank model or a model created based on a template (structure and diagrams) Different templates according to the editor Possibility to add other custom templates (plug-in)
Two files
Open the use case diagram (double click on it in the outline view) Create an actor via the palette : an item is added to the outline view (model) The documentation view enables commenting on current item
Please notice that both actors remain visible in the model (outline view) - It is because we deleted them from diagram only (not from the model)
Now let us create use cases from the palette Linking actors and UC We can create new actors from the palette or retrieve existing ones from the model (outline view) by drag-and-drop And then create association between actors and use cases
Multi creation element You can create several elements by pressing ctrl Select an element from the palette, press ctrl, click on the diagram as many time as you want to create elements
10
Properties of a model item ( Properties view) Most commonly used properties are in the model tab All the properties are in advanced tab
11
Graphical properties linked to the diagram (no item selected) Colors, font, print format List of print formats can be modified in the TOPCASED preferences
12
Graphical properties available for the selected item(s) Adapted to item type (node, connection)
13
Default behavior Workspace level (preferences) or project level (right click properties ) Entirely generic (all languages and all items of the language)
14
A note can be used for diagram only not stored in the model
Each model element can be documented through a documentation view Simple text Rich Edit text with a dedicated editor - Bold, copy/paste - Tables, images, links - Ctrl M or Ctrl Shift M to go next line - Support diagram / element link
15
If a diagram is selected The element documented through the documentation view is the diagram
16
17
Export all the diagrams Select xxx.umldi file Contextual menu export All Diagrams (then select the directory and the format)
Topcased quick start tutorial
18
Select a package from Outline view For instance the model (root package) Add (create) a diagram via the contextual menu
19
Or drag existing items from the outline view to drop them on the new diagram Example : the main packages (UC view,)
Remark : an UML item decorated with green arrow means it contains sub-diagrams
Topcased quick start tutorial
Remark : some diagrams cannot be directly created in a package The UML metamodel imposes the creation of another UML item beforehand - activity to create an activity diagram - class to create a composite structure diagram - interaction for sequence diagram, - stateMachine for state diagram Example : description of a use case through an activity diagram Select the use case monitor equipment in the outline Add an activity diagram with the contextual menu
20
21
Until TOPCASED 3.3.0, diagrams were created with the default name unnamed. Since TOPCASED 3.3.0, they are created by default with the name of their container Diagrams can have invalid names that may cause errors
duplicate names
invalid name
22
Diagnose your model A menu is available to check the validity of your diagrams name Diagram names valid
23
Invalid characters are replaced by _ Duplicate names are kept, but an iterator is added to the name : - Main, Main1, Main2
Before
24 Topcased quick start tutorial
After
Move a diagram
25
26
Requirement to adapt the initial template Create sub-systems, functional domains Create a package Either from outline view (CreateChild contextual menu) Or by the palette in the class diagram or use case diagram Example : separate actors and use cases in the use case view - Create package actors and package domains
27
Copy or move a part of the model Drag-and-drop or make a duplicate of a sub-tree in the outline Example : Move the actors to actors package and UC to functional domains
28
Select a *di file (umldi, samdi, symldi...), an action is available to create a new plugin containing the new template. This action is shown on a right click, through 'Topcased' menu, 'Convert to Template plugin....
29
Once the plugin is deployed on your platform, you can see your template on the wizard New UML Model with TOPCASED and create a new model according to this template.
30
Select in the outline the menu Virtual Order to enable moving elements bellow a container without any restrictions. To see if elements have notion of virtual order there is a decorator in the outline (V).
31
It is also possible to initialize order for an element according to a semantic using right click on a container and select "Automatic Virtual Order". It will make the order of the container virtual and will sort children with automatic algorithms.
If many algorithms exist, a dialog asks you to choose the algorithm you want to apply.
32
33
Arrow cursor to navigate in the diagrams Previous, next, parent, main (root) diagram
Some UML items (containers) allow navigation to children diagrams Double click on the item (package, class) A creation wizard is displayed if no child diagram is defined Example : let us drag and drop the domains package in the UC diagram - Then, let us double click on the domains package in the diagram - A wizard is displayed : let us choose use case diagram
34
Double click on an item containing several children diagrams A list of diagrams is displayed to the user so that he can make a choice Example 1. Create a new UC diagram in the use case view 2. Drag & drop actors and domains packages 3. Select now the overview diagram by clicking the root diagram arrow 4. Double click on the use case view A list of two diagrams is displayed
35
Navigation from a model item in outline view (double click) If the item is present in a single diagram, this diagram is open If the item is present in several diagrams, a list is displayed Example : double click on monitor equipment use case
36
Navigation from TOPCASED navigator view Diagrams are shown by name and are flat
Navigation from Outline view Possibility of filtering only the diagrams Or create filters on UML types
37
Navigation from a use case A use case does not have sub-diagrams (not allowed by UML metamodel) However navigation is possible if there is a diagram linked to UC behavior Example : activity behavior for UC monitor equipment
Double click
38
Filter the outline to search specific elements You can press F1 to have contextual help enabled:
39
For any element in TOPCASED its possible to transform it into another element For the chosen element, the feature will check what kind of type the model can contain and will provide a list of possible target for transformation. After the type chosen the selected element is transformed into the desired type and the relations are kept. If some links are not compatible, a pop up appears explaining why the process can't continue. It's possible to transform an element into another which is not displayed graphically in TOPCASED.
OR
40
41
Collaborative work
If you want more information about collaborative work, see the tutorial Collaborative_Work_tutorial.
42
Filter by language Text or Xpath mentioned Different scopes Workspace Working set
43
44
Requirement Import
You can access the last version of the dedicated tutorial for requirements import from the link below:
45
You can export your model as an HTML site (like javadoc with Java).
46
Site map
Diagram
47
When the mouse is over an element (here UseCase1), the documentation is displayed in Documentation frame
Warning : If the documentation contains hyperlinks, keep CTRL key pressed before clicking on the hyperlink (in order to keep the focus of Documentation frame on this particular element)
48
Create a plug-in
Open the plugin.xml, Extensions tab uncheck the show only extension point from required plug-ins option Register to the extension point org.topcased.modeler.paletteConfiguration Create a new configuration - The name is the label displayed in the preference page Add to the configuration a diagramSpecificPalette - the id is the id of the target diagram
Add to the diagramSpecificPalette as many paletteElement as needed - The name must be the same as the palette label
Install into the plateform Plugin.xml > Overview > Export Wizard > Install into host, Repository > Finish Restart TOPCASED
49
UML Class Diagram : org.topcased.modeler.uml.classdiagram Use case Diagram : org.topcased.modeler.uml.usecasediagram Activity Diagram : org.topcased.modeler.uml.activitydiagram Component Diagram : org.topcased.modeler.uml.componentdiagram Composite Structure Diagram : org.topcased.modeler.uml.compositestructuresdiagram Deployment Diagram : org.topcased.modeler.uml.deploymentdiagram Sequence Diagram : org.topcased.modeler.uml.sequencediagram State machine Diagram : org.topcased.modeler.uml.statemachinediagram
SysML Block Definition Diagram: Internal Block Diagram: Parametric Diagram: Profile Diagram: Requirement Diagram : AUI
AUI Diagram :
50
Open the preferences > Topcased > Editors Select in the combo box Palette configuration your configuration
51
Refresh Diagram
Some refresh problems may still occur in TOPCASED. A new button is available to force a graphical refresh, fixing these issues.
52
You can generate a default documentation from your diagram (OpenOffice Writer : MS Word document)
Steps :
Select menu Generate documentation from right click on your diagram file (.di, .umldi, .sysmldi, .samdi,..) Fill document generation wizard ( output file path and format) Click Finish
Select output format MS Word 2007 (.docx) or OpenOffice Writer (.odt) Select output directory and file name
53
A document relative to model name One paragraph per diagram found in the model Diagram as image List of all elements contained in diagram with : - Associated documentation - Associated requirements
54
55
Support
56