Lesson 2
Lesson 2
Modeling requirements
Unified Modeling Language (UML)
Class diagrams
Sequential diagrams
State Diagrams
Use Case Model
•The Use Case Model describes the proposed functionality of the new
system
•For example login to system, register with system and create order to all Use Cases
•A Use Case may ‘include’ another Use Case’s functionality or ‘extend’ another Use Case with
its own behaviour
Use Case Model
2.Requirements – Things that the use case must allow the user to do, such as
<ability to update order>, <ability to modify> & etc
What the Use Case Model may include
Constraints – Rules about what can and can’t be done. Includes
•Pre-conditions that must be true before the use case is run –e.g. <create order> must precede
<modify order>;
•Post – conditions that must be true once the use case is run e.g. <order is modified and
consistent>;
•Invariants: these are always true – e.g. An order must always have a customer number
What the Use Case Model may include
•Scenarios – Sequential description of the steps taken to carry out the use case. May include
multiple scenarios, to cater for exceptional circumstances and alternate processing paths;
•Scenario diagram – Sequence diagram to depict the workflow – as above but graphically
portrayed.
There can be only one start state in a state diagram, but there maybe
many intermediate and final states.
State Machine – Course Selection