what does this little infinity like symbol mean in Enterprise Architect?
It's an indicator for a composite diagram. You can dbl-click the element to open the diagram. From the element's contex menu you can choose a different diagram
(might look different for different elements)
Related
I see that Magic Draw supports both graphical and tabular notations. However, I would like to know if they can be synchronized to one another or they only function separately. So, if I create a class diagram with the graphical editor, can I generate a table from it in MagicDraw? And whenever I make the changes to one editor, the changes to be reflected in the other editor?
Thank you!
The answer is complex.
First, diagrams are views of the model. Tables, as just another kind of diagrams, are therefore views of the model. In other words, changing an element in a table will change the element in any diagram it is displayed.
Now it gets complex - but how you use the tool can simplify the. You seemed to ask, can a table be synchronized with a table and a table with a diagram? A table can be based on a scope, a query, or by composition (drag an element onto the table or create on the table). Scope or query is is a lot better because they can be used to match the diagram or package where the diagram puts its data (by default, the package where the diagram is stored).
However, diagrams are intended to be expressions of the human for us humans. Thus the diagram does not automatically add elements if they were added in a table.
How do we square the circle? How do we add (or even detect) an element created on a diagram? There is a way to get a list of diagrams (https://community.nomagic.com/usage-in-diagram-displayed-in-generic-table-t5789.html ). Using a similar technique a rule could be created to warn about elements that are not on any diagram. It is still up to you to add the element to the diagram with this information at hand (or write a fancy plugin).
When I add a relationship between two elements in a diagram (in this case a communication diagram) in Sparx EA it adds it to every diagram that has those two elements. This means I have to go back and remove it from every other diagram that has those two elements, a task that gets harder the more diagrams you have.
Is there a way to stop this happening?
Not going to discuss the meaning of what you are trying but you can select the connector after creation and from the context menu use Visibility/Hide in other diagrams.
You can also write an add-in that can do that automatically for you. In that case you need to subscribe to EAOnPostNewConnector.
In a project I work on there is a C# library containing business objects which are related to the backing database tables/stored procedures.
We imported the code into EA model (where we already have database model) and now I'd like to show dependency between a class and a table (or stored procedure output).
Since these are loosely coupled (i.e. only a portion of properties are shared between them) I'd like to have a relation between a class A and table B and in the properties of this relation to have the mapping (A.a <-> B.a , ...).
Is this possible and how?
You can draw connectors between two elements and then link one or both ends to an element feature (an attribute or an operation). Draw the connector, then right-click near the end and select Link to Element Feature.
You can draw any number of connectors between two elements, and link any number of them to any features at either or both ends.
You should note that this is an EA feature which is not in the UML standard. As such, it is also a little trickier to automate (the feature link is not documented in the API), but I've done it before for a client so it can be done. However, from your question I assume it's the manual case you're interested in.
I have imported Sources in the Enterprise Architect and want to draw both class and sequence diagrams.
Class diagram
The issue here is, if I pull a class from the project browser to the "drawing stage", the members of this class are displayed within the class. How can I get the associations instead of (or in addition to) the members? So if I have a class Builder with a member Room. I want to have both classes and a association between these two. Do I have to pull all the members manually on the "drawing stage" or is there some automatic processing?
Sequence diagram
Can I let the EA draw a sequence diagram for me with just a "starting method" as input?
Thanks
Class diagram
Yes, you can add associated classes. Drop the class onto the diagram, then right-click it and select Add - Related Elements. This causes EA to add to the diagram other elements which have a connector to or from the element you right-clicked.
In the dialog EA opens you can specify a single element type (class, component, etc) to be added and/or a single connector type ("link" in this dialog), eg association, to be followed. Leaving either blank will result in EA adding all element types and/or following all connectors.
You can also specify the connector direction (if for instance you want to add only those directed associations going from the first class, not the ones going to it), as well as the number of links to follow in a chain ("levels").
If you want to hide the members for a specific class, you can right-click the class and select Set Feature Visibility, which brings up a dialog where you can switch the various compartments on or off for that class.
If instead you want to change the presentation of all classes in the diagram you can double-click an empty area of the diagram (or right-click and select Properties), and set presentation of the various compartments in the Elements tab.
In Visio 2007, I can only seem to set the cardinality of the Parent-to-child relationship, but I want to set the Child-to-Parent as well. Is there a reason Visio won't let me do this? Do I need to create a separate relationship to achieve this? I'm using two Entity objects/shapes and a Relationship object/shape.
Note: I got the cardinality to appear on the diagram by going Database > Options >> Document and checking the Cardinality box.
From Menu;
Database > Options >> Document
Click Relationship Tab. You will see Name Display. Check "show verb phase". Choose "Foward text", "Inverse text" or both.. That depands on your wish.
Visio uses multiplicity/cardinality on both sides when completing a UML Model Diagram; double-clicking the connector will allow you to select the multiplicity/cardinality from the drop-down options for both directions. Using the Entity setup will just give you a check box that is relatively useless for what you want to do.