index > Visual Studio Team System - Domain-Specific Language Tools > How to make Tree's?

How to make Tree's?


I need to make something like this:

Element
|---Group
|--Value
|--Value
|--Group
| |---Value
| |---Value
|---Value
|---Group
....

but.. Group "can't be embedded in" Group and Element. Adding hierarchies doesn't help...
I could make it using relationships, but then, i couldn't use compartments...

Thanks,
leovernazza

Hi,

In the current version of the Tools, you can only use reference relationships for a tree. Use the embedding relationships just to correspond to the diagram structure:
Root
+--- Nodes
+---- Compartment fields

- in other words, more or less flat.

But in the next version, the restriction will be lifted - the mappings from diagrams to models are much more flexible.

Alan




- Alan [Microsoft]
Alan Cameron Wills

Hi Alan,

How flexible are the mappings in the current release (August 2006 CTP)? Can trees be represented with embedding relationships now?

Thanks,

Fernando

Fernando Simonazzi

Yes, you can parent a class on more than one class (where 'parented' means being the target of an embedding relationship). The target role of each parent relationship targeting the same class must have a multiplicity of 0..1.

So you can now create a tree as you described.




- Alan [Microsoft]
Alan Cameron Wills
reply 4

You can use google to search for other answers

 

More Articles

DSL Tools vs VSTS designers
Troubleshooting: duplicate generated files
How to access the Session in subdomain?
Defining custom multiplicities
property graphical representation
Troubleshooting mysterious crashes
November DSL Toolkit Release: where are the *.dslddi files now?
RelationShip ZeroOne-ZeroMany as property
Problem installing latest DSL toolkit ...
Atrributes with particular properties
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Additional DSL documentation?
How adequate-rich or suffitient-complete…
Custom rules
Programmatically creating diagrams
problem with connector
TypeConverter's method GetStandardValues…
Custom connector target (June CTP)
Multi-User Capability
Text template load a file
Next CTP
How to remove non application menu-items…
How to Dynamically create shapes
connections restrictions between shapes …
Problems loading package
Can i use the DSL Diagram components in …

Hot Articles

Beginners Question on code generation
Troubleshooting mysterious crashes
DSL and XMI interchange format
What one-shot recipes would you add to D…
protected internal
How to migrate / implement CustomStorage…
Multi-User Capability
geometryShape no "Diamond" Sha…
How are new objects created in a DSL?
Designer and File Associations
How to: Generate many files from one tem…
changing defaults in inherited propeties
Prevent rules from firing during model d…
Walkthrough-1 problem
Nested Concept and Nested Diagram

Recommend Articles

Unable to Replace Old Files by New ones
How to change the font of a shape?
Troubleshooting: duplicate generated files
I get a null reference exception when ad…
Transaction.RollBack() Error: Oject refe…
Experience report: Building my own DSL
Experimental UI - show and hide shapes a…
Getting validation results
Save instance of model in menu command
Problem Extending Notation with icons
Cannot add Reference shape to DSL Diagram
Checkbox list as property type which is …
Implementation Errors in DSL(C# Project)
Bugs (?) in July version
blog post suggestions: mdfddt/mdfomt fil…