COMP 201 lecture21

Use case diagrams 

which describes the tasks which the system must help to perform

  1. a use case diagram show the functionality of the system but not the sequence of events.

Class diagram

shows the static structure of the system

interaction diagrams

1. sequence diagrams

  1. take part in a collaboration at the top of dashed lines
  2. The vertical dimension of a sequence diagram represents time 
  3. 加粗样式The horizontal dimension represents the different objects or roles that participate in the interactive sequence.
    在这里插入图片描述

2. collaboration diagrams:一些object互相有link,并且共同完成

  1. Objects - Each object is shown as rectangle, which is labelled objectName: className 
  2. Links - Links between objects are shown like associations in the class model. 
  3. Actors - Actors can be shown as on a use-case diagram

在这里插入图片描述1. Each labelled arrow represents a message sent from the object at the tail of the arrow to the object at the point of the arrow. 
2. Furthermore, the target object must understand the message

  1. Class attributes and their data types are identified here, as are the operations and their return types

在这里插入图片描述注意directorOfStudies不在和Lecture一个水平线上

Activity diagrams

  1. describe how activities are coordinated. 
  2. An activity diagram is particularly useful when you know that an operation has to achieve a number of different things, and  you want to model what the essential dependencies between them are, before you decide in what order to do them 
  3. Activity diagrams are much better at showing this clearly than interaction diagrams.
  4. We may identify different use-cases for example but some must be completed before others can begin. Recording the order in which we must complete these use-cases can be aided by using an activity diagram
  5. Activity diagrams record the dependencies between activities, such as which things can happen in parallel and which must occur sequentially.
  6. At the UML semantics level, activity diagrams are state diagrams extended for convenience with some extra notation 
  7. Elements of activity diagrams 
    1. Activity:An activity is recorded like the notation for a state. However, we do not have transitions as a result of event, rather as the finishing of an activity.
    2. Transition:Activity edge – an arrow to indicate where to move in the diagram after an activity finishes. These can be labelled with a guard condition.
    3. Synchronisation bar – a thick horizontal bar describing the co-ordination of activities which must all be completed before the activity edges leading from the bar are fired.
    4. Decision diamond:can be used to show decisions as an alternative to guards on separate states leaving the same activity.
    5. Start and stop markers:used in the same way as in a state diagram (initial/final states).
      在这里插入图片描述
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值