RecyclingMachineOOResponsibilities.pptx - Comparative...

This preview shows page 1 - 6 out of 13 pages.

5/10/20 02:31:50 AM Marc Conrad University of Bedfordshire 1 Comparative Integrated Systems Recycling Machine Responsibilities Marc Conrad D104 (Park Square Building) [email protected] These slides: Recycling Machine Class Diagram; Sequence Diagram Responsibilities
Relationships between objects are expressed in class diagrams (See slides on OO analysis for details on this diagram) 5/10/20 02:31:50 AM Marc Conrad University of Bedfordshire 2 Can weight size Bottle weight size Customer panel itemReceived(slot : Integer) printReceipt() Receipt basis addItem(item : Deposit Item) computeSum() Deposit item number value 1..* Crate weight size Deposit item receiver classifyItem(slot : Integer) : Deposit item createReceiptBasis() printReceipt() Receipt printer print()
expressed as Sequence Diagrams 5/10/20 02:31:50 AM Marc Conrad University of Bedfordshire 3 : Receipt Basis : Customer : Customer Panel : Deposit Item Receiver itemReceived( ) classifyItem(Integer) createReceiptBasis( ) create( ) addItem(Deposit Item)
receipt 5/10/20 02:31:50 AM Marc Conrad University of Bedfordshire 4 : Customer : Customer Panel : Deposit Item Receiver : Receipt Basis : Deposit Item : Printer printReceipt( ) printReceipt( ) computeSum( ) getValue( ) for all items in basis. print( )
5/10/20 02:31:50 AM Marc Conrad University of Bedfordshire 5 Object Oriented Design is all about Responsibilities. Knowing about private encapsulated data about related objects about things it can derive or calculate Doing doing something itself initiating action in other objects controlling and coordinating activities in other objects

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture