6
1 Interaction Diagram / AUML- Interaction Diagram / AUML- 2 Tool 2 Tool Michael Winikoff Michael Winikoff August 2003 August 2003 http://www.cs.rmit.edu.au/ http://www.cs.rmit.edu.au/ ~winikoff/auml ~winikoff/auml

1 Interaction Diagram / AUML-2 Tool Michael Winikoff August 2003 winikoff/auml

Embed Size (px)

Citation preview

Page 1: 1 Interaction Diagram / AUML-2 Tool Michael Winikoff August 2003 winikoff/auml

1

Interaction Diagram / AUML-2 ToolInteraction Diagram / AUML-2 Tool

Michael WinikoffMichael Winikoff

August 2003August 2003

http://www.cs.rmit.edu.au/~winikoff/aumlhttp://www.cs.rmit.edu.au/~winikoff/auml

Page 2: 1 Interaction Diagram / AUML-2 Tool Michael Winikoff August 2003 winikoff/auml

2

AUML2 ToolAUML2 Tool

• Rough prototype tool!Rough prototype tool!• Takes text and generates .eps generating layout Takes text and generates .eps generating layout

automaticallyautomatically– .eps can be converted to other formats (jpg,png,…).eps can be converted to other formats (jpg,png,…)– Does both AUML-2 subset and interaction diagramsDoes both AUML-2 subset and interaction diagrams

• Requires perl and tcl/tk (probably easiest on unix, but Requires perl and tcl/tk (probably easiest on unix, but should also work under windows)should also work under windows)– Requires available $DISPLAY (unix)Requires available $DISPLAY (unix)

start FIPA query protocolstart FIPA query protocol

agent I Initiatoragent I Initiator

agent P Participantagent P Participant

box altbox alt

message I P query-ifmessage I P query-if

……

auml.plTcl/tk

programwish .eps file

Page 3: 1 Interaction Diagram / AUML-2 Tool Michael Winikoff August 2003 winikoff/auml

3

Input Format Input Format

• One command per line.One command per line.• Commands:Commands:

– agentagent shortname longname shortname longname (also invis and role)(also invis and role)

– startstart protocol nameprotocol name – finishfinish – messagemessage from to message description from to message description– boxbox typetype – nextnext – endend typetype – backupbackup

Leave these out for interaction diagrams

agent T Tutor agent L Lecturer agent S Student message S L Question message L S Answer backup message L T Answer CC

Page 4: 1 Interaction Diagram / AUML-2 Tool Michael Winikoff August 2003 winikoff/auml

4

ExampleExamplestart FIPA query protocolstart FIPA query protocol

agent I Initiatoragent I Initiator

agent P Participantagent P Participant

box altbox alt

message I P query-ifmessage I P query-if

nextnext

message I P query-refmessage I P query-ref

end altend alt

box altbox alt

message P I not-understoodmessage P I not-understood

nextnext

message P I refusemessage P I refuse

nextnext

message P I failuremessage P I failure

nextnext

message P I informmessage P I inform

end altend alt

finishfinish

Page 5: 1 Interaction Diagram / AUML-2 Tool Michael Winikoff August 2003 winikoff/auml

5

Book Store ExampleBook Store Example

start Book Orderstart Book Order

agent c Customeragent c Customer

agent s Sales ass.agent s Sales ass.

agent w Warehouse man.agent w Warehouse man.

agent d Delivery manageragent d Delivery manager

agent b Bankagent b Bank

message c s Request Bookmessage c s Request Book

message s w Price+availabilitymessage s w Price+availability

message w s responsemessage w s response

message s c responsemessage s c response

box altbox alt

message c s Cancelmessage c s Cancel

nextnext

message c s Buy Bookmessage c s Buy Book

message s w Delivery Options?message s w Delivery Options?

message w s Delivery infomessage w s Delivery info

message s c Delivery infomessage s c Delivery info

message c s Delivery Choicemessage c s Delivery Choice

message s c Payment details?message s c Payment details?

box altbox alt

message c s Cancelmessage c s Cancel

nextnext

message c s Credit card infomessage c s Credit card info

message s b Credit Check Requestmessage s b Credit Check Request

box altbox alt

message b s Not understoodmessage b s Not understood

nextnext

message b s Not approvedmessage b s Not approved

nextnext

message b s Approvalmessage b s Approval

message s w Ordermessage s w Order

backupbackup

message s c Thanksmessage s c Thanks

end altend alt

end altend alt

end altend alt

finishfinish

Page 6: 1 Interaction Diagram / AUML-2 Tool Michael Winikoff August 2003 winikoff/auml

6