12.07.2015 Views

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Module 6 - Use-Case <strong>Analysis</strong>Review: What Is an Attribute?Review: What Is an Attribute?ClassNameAttribute : Type = InitValueAttribute : Type = InitValueAttribute : Type = InitValueIn analysis, do not spendtime on attribute signaturesCourseOfferingattributenumber : String = "100"startTime : TimeendTime : Timedays : EnumnumStudents : Int<strong>Mastering</strong> <strong>Object</strong> <strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>Copyright © 2003 Rational Software, all rights reserved 41Attributes are used to store information. They are atomic things <strong>with</strong> noresponsibilities.The attribute name should be a noun that clearly states what information the attributeholds. The description of the attribute should describe what information is to bestored in the attribute; this can be optional when the information stored is obviousfrom the attribute name.During <strong>Analysis</strong>, the attribute types should be from the domain, <strong>and</strong> not adapted tothe programming language in use. For example, in the above diagram, enum willneed to be replaced <strong>with</strong> a true enumeration that describes the days theCourseOffering is offered (for example, MWF or TR).6 - 41

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!