●●●●● 顺序图的基本表示法 ●●●● ●●● ●●●● ●●0● Register Sale doX doA doB a found message whose sender will not be specified doD execution specification bar indicates focus of control typical sychronous message shown with a filled-arrow line
顺序图的基本表示法 : Register : Sale doA doB doX doC doD typical sychronous message shown with a filled-arrow line a found message whose sender will not be specified execution specification bar indicates focus of control
●●● ●●●●● ●●●● 表示应答或返回 ●●●●● ●●●● ●●0● Register Sale doX d1= getDate getDate aDate
表示应答或返回 : Register : Sale d1 = getDate getDate doX aDate
●●● ●●●●● ●●●● 发送给自身的消息 ●●● ●●●● ●●0● Register doX clear
发送给自身的消息 : Register doX clear
●●● ●●●●● ●●●● 创建实例 ●●● ●●●● ●●0● Register Sale note that newly created objects are placed at their creation height make Payment(cash Tendered) create(cash Tendered) Payment authorize
创建实例 : Register : Sale makePayment(cashTendered) : Payment create(cashTendered) authorize note that newly created objects are placed at their creation "height
●●●●● ●●●● 销毁实例 ●●● ●●●● ●●0● Sale createcash Tendered) Payment the <destroy > stereotyped message with the large and short lifeline destroy》 indicates explicit object destruction
销毁实例 : Sale : Payment create(cashTendered) ... the «destroy»stereotyped message, with the large X and short lifeline indicates explicit object destruction «destroy» X