college of science and engineering | university of houston-clear … · 2006. 9. 15. ·...

61

Upload: others

Post on 06-Nov-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

�����������

�� ����������������

Page 2: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

������

Page 3: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

���������� �������

� ������������������������ ������

� ������������� ������������� ���

� ��� ����� ���������� ���!��� ��

� ���� �� � ���������� �� �������

Page 4: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

"������������������#

� $����������� ������������%������������ ������

� ��� ���������������������� ����� �������

� &������� ��������

Page 5: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

'����

Page 6: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

����� �������

� &����������

� ����������

� �����(����������

� �����(������������

� )����������������

� �� ������������

� ����� ���������

Page 7: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

&����������

� ������*��������� ��������� �����

� ���� �������������� ����� ���� �� ���

Page 8: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

&����������

� &���

� ��!����� ������� �� ����������

� �����

� ���� ��������������������������

Page 9: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

����������&����������

Page 10: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Start Menu

Programs

RationalSoftware

Rational RoseEnterprise Edition

Page 11: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Click Cancel

Page 12: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Expand Use Case View

Page 13: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Right-click Use Case View

Page 14: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Choose New -> Actor

Page 15: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Type in LibraryUser

Page 16: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Right-click Use Case View

Page 17: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Choose New -> Use Case

Page 18: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Name itCheck Book Availability

Page 19: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Do the same to add a Librarian Actor,Use CasesCheckout BookRenew BookReserve BookRe-shelf BookReturn Book

Page 20: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Right-click the Main Use Case Diagram,Click Rename, and type in Library Transactions

Page 21: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Double-click Library Transactionto bring up the Use Case Diagram

Page 22: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Maximize the Use Case Diagram

Page 23: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Drag LibraryUser and Librarianto the Use Case Diagram

Page 24: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Likewise, drag all theUse Cases to the diagramone by one

Page 25: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Click the Unidirectional Association arrow(solid line arrow)

Page 26: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Click and hold the mouse clickon LibraryUser, drag it over toReturn Book, then release the mouse

Page 27: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Return Book Use Case is thenassociated to Library User.

Do the same to createAssociation arrows asshown in the diagram.

Page 28: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Click the Dependency arrow(dotted line arrow)

Page 29: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Drag from Reserve Book to Check Book Availability

Page 30: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Right click the Dependency arrow

Page 31: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Choose Open Specification

Page 32: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Open the drop down box

Page 33: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Choose Include

Page 34: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Then click OK

Page 35: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Drag <<include>> above the arrow

Page 36: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions
Page 37: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

����������

� �������������������������+����� ����������������������

Page 38: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

����������

� ������

� ��������

� ��������

Page 39: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

��������������������

Page 40: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Right clickUse Case View

Page 41: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Choose New -> Class Diagram

Page 42: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Name it LibraryClasses

Page 43: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Double-click LibraryClassesand maximize the diagram

Page 44: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Right clickUse Case View

Page 45: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Choose New -> Class

Page 46: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Name it Book

Page 47: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Do the same andcreate these classes: PatronStudentFaculty

Page 48: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Drag them intothe class diagram

Page 49: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions
Page 50: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Right-click Book,Select New Attribute

Page 51: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Name it Title

Page 52: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Add the remaining attribute:Author

ISBNPublisher

Status

Page 53: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Right-click Book,Select New Operation

Page 54: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Name it isAvailable

Page 55: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Enter the rest of the attributes and operations as shown in the diagram

Page 56: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Click the Generalizationarrow

Page 57: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Drag it from Studentto Patron

Page 58: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Do the same for Faculty

Page 59: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions
Page 60: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

Drag the arrow head of the Faculty class arrow of the Student class

Page 61: College of Science and Engineering | University of Houston-Clear … · 2006. 9. 15. · Right-click the Main Use Case Diagram, Click Rename, and type in Library Transactions

We have built an inheritance tree