CSC340: Tutorial 5 Requirements Analysis - PowerPoint PPT Presentation

About This Presentation
Title:

CSC340: Tutorial 5 Requirements Analysis

Description:

For example, 'employee' has a name, employee# and department; an employee is ... You should remove class which is really a synonym of others. ... – PowerPoint PPT presentation

Number of Views:21
Avg rating:3.0/5.0
Slides: 9
Provided by: yua6
Category:

less

Transcript and Presenter's Notes

Title: CSC340: Tutorial 5 Requirements Analysis


1
CSC340 Tutorial 5Requirements Analysis
  • TA Y. An
  • Date 900-1000am, Fri. Nov 7, 2003
  • Location BA1130

2
Classes
  • A class describes a group of objects with
  • Similar properties (attributes),
  • Common behaviors (operations),
  • Common relationships to other objects,
  • And common meaning (semantics).
  • For example, employee has a name, employee and
    department an employee is hired, and fired an
    employee works in one or more projects.

3
Finding classes from use cases
4
Identifying classes
  • You dont model objects which are beyond the
    scope of the system.
  • It is not usually necessary for a model to
    contain classes that represent the entire system.
  • You should remove class which is really a synonym
    of others.
  • Avoid too vague names which you cannot write
    description.
  • Avoid too specific names which are really a
    generalization.
  • Dont tie up with physical inputs and outputs.

5
Classes and attributes
  • A member of staff has one grade at a time, but
    members may have several previous grades, and
    several members may have a same grade.
  • A grade has only one rate at a time, and each
    rate has a money value. Grade may have a rate
    attribute.

6
Classes and attributes
  • A grade may have several previous rates, which
    suggests either that Grade has multiple rate
    attributes, or that Rate and Grade are distinct
    classes.
  • Rate must have a date attribute.

7
UML class diagram
Where to put the attributes gradeStartDate And
gradeFinishDate?
8
Association class
Write a Comment
User Comments (0)
About PowerShow.com