UML之Activity Diagram

A simple example of an activity diagram

 

A subsidiary activity diagram

 

Invoke the subsidiary activity

 

If you want to show who does what, you can divide an activity diagram into partitions, which show which actions one class or organization unit carries out.

 

A signal indicates that the activity receives an event from an outside process.

 

As well as accepting signals, we can send them. This is useful when we have to send a message and then wait for a reply before we can continue.

 

Actions can have parameters, just as methods do. You don't need to show information about parameters on the activity diagram, but if you wish, you can show them with pins. If you're decomposing an action, pins correspond to the parameter boxes on the decomposed diagram.
When you're drawing an activity diagram strictly, you have to ensure that the output parameters of an outbound action match the input parameters of another. If they don't match, you can indicate a transformation to get from one to another. The transformation must be an expression that's free of side effects: essentially, a query on the output pin quary that supplies an object of the right type for the input pin.

 

An expansion region marks an activity diagram area where actions occur once for each item in a collection.

 

A flow final indicates the end of one particular flow, without terminating the whole activity

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值