Relations between uml diagrams

I have something like this

public class Item
   public string FirstName { get; set; }
   public string LastName { get; set; }
   public int ID { get; set; }

public class Data
    public List<Item> Items { get; set; }

what is right type of relationsheeps between them? Dependency?


You are right - Data is dependent on Item, since it "owns" many Items. This is a form of aggregation.

This is the arrow you are searching for:

         0..*     0..*
| Data | <>―――――――> | Item |

I don't know what your model means, but here is a version of it in normal UML 2:

If I were you, I would put a property on both ends of the association and give each one a semantically strong name. For example, describedItems and describingData. Please see how to indicate a list of types in UML and this answer on association ends.

Need Your Help

Table Fixed Header Plugin that retains OnClick

php javascript jquery

I have a table built dynamically with PHP. The PHP gives each row an on click event that highlights the selected row and display details associated with it in another section of the page.

arcgis python index of layer within a dataframe

python arcgis

I am new to python and I have searched everywhere but I can not find an explicit method to get the index of a layer in the map, and more specifically in a given dataframe.