srihari_vasista_UML Diagrams-Q1-Q2_HW2

srihari_vasista_UML Diagrams-Q1-Q2_HW2 -...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Srihari J Vasista A20249633 1. Class Diagram for an webm 0 1 1 0... 1 1 Add Attachments Emails Store Emails Inherita ailsystem. 0...* 0…* 1 1 1 s tance Access emails through mailbox All user one ma system 1 rs in ail
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2. Class Diagram – Vending Machine Actors – Vending Machine, Money Handler, Money, Drink, Stock, Mail Handler Attributes: Machine (Location, Model Number), Vending Stock (Cans, Count) Drink(Name, Brand, Price, Type) 2A: CLASS DIAGRAM :- Validates Handles Inspects Checks Mail 0..* 0..* 1 1 0..* 1 1 1 1..* 1 Money Handler +identifyMoney():string +addAmountt():int +returnAmt():int +checkAmt():int +reduceAmount():int Vending machine -Location: string -Model Number: int +returnChange():int +addMoney():int +dispenseDrink():dispense +displayTotal():int +chooseDrink():string +isavailable():boolean
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: +validateMoney():boolean Drinks -Brand: string -Type: string -Name: string +getBrand(): string +getType(): string +getNumber(): int Stock -Cans : int -Count : int +getType():string +getNumber():int +getBrand():string +getStock():int Email Handler -emailSupplier():email Money +getValue(): int 2B: SEQUENCE DIAGRAM :- chooseDrink() returnChange() validateMon ey() emailSupp lier() getStock() dispense() addAmt() reduceAmt() getBrand() dispenseDrink() Isavailable() getValue() checkAmt() Vending Machine Money Handler Money Stock Drink Email System 2C - STATE TRANSITION DIAGRAM :- Power On Less stock Enough Stock Rest Money Out of stock Cancel Fake Idle Enough Money Cancel Money input Idle Display Amount Return Money Ready to Dispense Stock Email System Email Supplier Power Off...
View Full Document

This document was uploaded on 05/04/2011.

Page1 / 4

srihari_vasista_UML Diagrams-Q1-Q2_HW2 -...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online