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

P2.5 OOA

UML2.html

UML2.html


February 21, 2000


C:\WINDOWS\Desktop\boost\UML.ver


OOA


OOA CRC Cards

Category
Responsibility Collaborator
Contains all sources of a category type
Contains a name of the category


Editor
Responsibility Collaborator
Directs reporter to get stories from selected sources Reporter
Adds stories to collection of stories
Contains all possible stories for the paper
Initializes a layout with all possible stories Layout
Creates reporter Reporter


Layout
Responsibility Collaborator
Generates the Paper from a list of stories as a PS file
Formats the pages of the newspaper from the Stories


Newspaper
Responsibility Collaborator
Initialize Subscription
Send editor all preferred sources Editor
Recieve all preferred sources for the newspaper Subscription
Initialize the Editor Editor


Preferenceview
Responsibility Collaborator
Display GUI for the class Substription Subscription


Reporter
Responsibility Collaborator
Go to source URL
Gets HTML code
Parse HTML code
Creates a story Story
Returns a Story
Fill attributes of story Story


Source
Responsibility Collaborator
Contains a source name
Contains an URL


Story
Responsibility Collaborator
Contains Title
Contains pictures from the Story
Contains the story's source
contains the stories body
contains the story's title


Subscription
Responsibility Collaborator
Display A Preference View Preferenceview
Add or subtract to user subscription
Return all preferred sources
Contains all possilbe sources
Contains all preferred sources


!!!INSERT DISCUSSION OF OOA HERE!!!


OOD

Category

Sends Messages To: Subscription

Attributes

  • catagoryName
  • mySources: Collection

Services



Editor

Receives Messages From: Newspaper, Reporter

Sends Messages To: Layout

Attributes

  • myLayout: Layout
  • myReporter: Reporter

Services

  • addStory:


Layout

Receives Messages From: Editor

Attributes

Services

  • makefile:


Newspaper

Receives Messages From: Subscription

Sends Messages To: Editor

Attributes

  • myEditor: Editor
  • mySubscription: Subscription

Services



Preferenceview

Sends Messages To: Subscription

Attributes

  • (Various Graphic Components)

Services



Reporter

Sends Messages To: Editor, Story

Attributes

  • (Necessary HTML interfaces)
  • myStory: Story

Services

  • goToURL:
  • illustrate:
  • setSource:
  • setTitle:
  • writeStory:


Source

Receives Messages From: Subscription

Attributes

  • sourceName
  • url

Services



Story

Receives Messages From: Reporter

Attributes

  • picture
  • priority
  • source
  • text
  • title

Services



Subscription

Receives Messages From: Category, Preferenceview

Sends Messages To: Newspaper, Source

Attributes

  • myPreferenceView: Preferenceview
  • possibleSources: Collection
  • preferredSources: Collection

Services

  • addSource: Category:
  • fileInSources
  • removeSource


OOD Diagram



Link to this Page