View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

OOA and OOD

OOA and OOD for Stock Ticker Case Study

OOA and OOD for Stock Ticker Case Study


Quacked Clucking Amazers

April 30, 2000


OOA

No Candidate Classes


No Rejected Classes


OOA CRC Cards

Stock
Responsibility Collaborator
knows current price and change from previous price
keeps list of previous prices
returns string representation containing stock name, price, and change


StockTracker
Responsibility Collaborator
finds new stock prices every second
update stock prices and change information Stock
can set and then fetch URL containing stock information


StockUI
Responsibility Collaborator
sets up basic UI
gets current stock prices Stock
redisplays information every second
graphs current and previous stock information for each available stock Stock

OOA discussion can be found in the other sections of this case study.

OOD

Stock

Receives Messages From: StockTracker

Attributes

  • change
  • history
  • name
  • price

Services

  • change
  • change:
  • history
  • initialize
  • initialize:price:change:
  • name
  • name:
  • new
  • new:price:change:
  • price
  • price:
  • printString
  • updateHistory


StockTracker

Sends Messages To: Stock, StockUI

Attributes

  • stocks
  • url
  • view

Services

  • getStocks
  • initialize
  • new
  • start
  • step
  • stocks
  • updateStocks
  • url:


StockUI

Receives Messages From: StockTracker

Attributes

  • buttonAlignmentMorph
  • graphMorph
  • stockMorph
  • stockSelectedIndex

Services

  • addButton:action:
  • collapseOrExpand:
  • initialize
  • selectionIndex
  • selectionIndex:
  • stockChooseHit
  • stockList
  • stockModel
  • stockModel:
  • stockModel:
  • update:

OOD discussion can be found in the other sections of this case study.

OOD Diagram



Link to this Page