object-diagram

How to show multiplicities in UML object diagrams

旧街凉风 提交于 2019-12-10 04:00:17
问题 I wonder if there is way to create an array of objects in UML? the following is my try using Modelio as a modeling environment but as you can see there is different objects(i.e. instance[0],instance 1],instance[2],instance[3]) 回答1: As you know there are two ways to show UML attributes in class diagrams: attribute text and association notation. Consider an example of a company and employees. Two valid class diagrams are: Now let's try to draw the corresponding object diagrams: If the details

How to represent class instances in UML?

雨燕双飞 提交于 2019-12-06 03:36:01
问题 I have a class diagram for my application which consists of several compositions and aggregations. Now I want to have diagram based on the class diagram which shows class instances. A snapshot if you will. I need this because it would help discussing some functional requirements. Class diagram : -------- 1 * ------- | Parent |----------------------| Child | -------- ------- "Instance" diagram : -------- --------- | Parent |----------------------| Child 1 | -------- | --------- | | --------- +

UML for javascript?

╄→гoц情女王★ 提交于 2019-12-03 11:58:14
问题 I'm looking for a way of graphically representing javascript objects... I know there is UML, but for example, how to represent the chain between 2 objects, eg: var a, b; a = {}; b = Object.create(a); Intuitively, I'd draw something like this: +-----+ |b | |-----| | | +--+--+ | +-----+ +---->|a | |-----| | | +-----+ but is there a decent representation in UML? And what about mixins ? c = $.extend({}, a, b) +-----+ +-----+ |a | |b | |-----| |-----| | |<----------| | +-----+ +-----+ + +-----+ |