Chapter 9: Domain Model
Focus on DataType Attribute in the domain Model
- The attribute should be primitive datatype
- the attributes normally should not be a complex domain concept
When to Define New DataType Classes
- it is composed of separate sections
- there are operations usually associated with it, such as parsing or validation
- has other attributes
- a quantity with a unit
- an abstraction of one or more types with some of these qualities
Chapter 10: System Sequence Diagram
System Sequence Diagram(SSD) is used to illustrate input and output events related to the system under discussion
is used to describe a particular scenario
Chapter 11 Operation Contracts
Operation Contracts describe system behavior in terms of system changes to objects in the domain model, after a system operation is executed
the prime inputs to the contracts are the system operations identified SSD, the domain model, and domain insights from experts
the sections
- operations
- name of operation
- parameters
- cross reference
- use cases this operation can occur within
- preconditions
- postconditions
Postconditions
- instances create or be deleted
- associations formed or broken
- attribute changed
When Are Contracts Useful
only where the details and complexity of required state changes are awkward to capture in use case, in UP, it is less effective
How to create and write Contracts
- identify system operations from SSDs
- For System operations that are complex or which are not clear in the use case, construct a contract
- when instance creation and deletion, attribute modification, associations formed and broken, describe the change in postcondition