state machine diagram

Post on 23-Feb-2016

52 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

State Machine Diagram. Chapter 5. Additional notes: Notes I picked-up on the Internet: University of Toronto, Craig D Wilson (Matincor, Inc.). Revision: (World View) . Use Case Fully Descriptive Use Case Activity Diagram Domain Model Diagram SSD State Machine Diagram - PowerPoint PPT Presentation

TRANSCRIPT

State Machine Diagram

Additional notes: Notes I picked-up on the Internet:• University of Toronto,• Craig D Wilson (Matincor, Inc.)

Chapter 5

2

Revision: (World View) Use Case Fully Descriptive Use Case Activity Diagram Domain Model Diagram SSD State Machine Diagram Component Diagrams Deployment Diagrams

Next Semester

3

Modeling and role of UML: The model is only useful if the model’s

phenomena correspond in a systematic way to the phenomena of the domain being modeled

Modeling can guide elicitation It can help figure out what questions to ask It can help to surface hidden requirements

Modeling can provide a measure of progress

4

Modeling Principle Abstraction:

Strip away detail to concentrate on the relevant or important things

A way of finding similarities between concepts by ignoring irrelevant detail

Iterative development: Frequent build and test Begin with high risk use cases Re

5

Advantages of Object Technology: Re-use of components Stability

Interchangeable parts Reliability

Reduced complexity of individual components Integrity

Protected data and code Iterative modeling

6

Object Behaviour:

All objects have a “state” An object has a value for each of its attributes Each possible assignment of values to an attribute

is a STATE.

7

8

State Charts:

9

Invoice States: You usually start with an UNPAID account Some luck guy will pay the FULL amount

outstanding, arriving at a state of fully paid Some like us will pay instalments for a few

months, till we pay-off the debt

10

Behavior of Object: How do we MODEL this ‘change of state’?

Identify the states Identify the transitions from state to state There are more……let’s eat the elephant bone by

bone!

11

Identify all the possible states:

12

13

14

Transitions: A transition consists of THREE parts:

Event, [guard], /action A transition is the movement from one state

to another States are either “on” or “off” at a given point

in time If a state is ON, then transitions are enabled Transitions are triggered by EVENTS

15

Event [guard / action A guard is a Boolean condition that must be

TRUE in order for a transition to “fire” When an event occurs the guard conditions

are checked, and if they are met, then the transition FIRES.

An action is a procedural expression to be performed when the transition fires

16

17

Identify ALL StatesState Transition/event State

18

StatesState Transition/event StateSpace available Add student Full

Full Close Enrollment Final,Arhive

Space available Remove student Space available

19

20

Super States A state can be nested:

A super state consists of more than one state A super state make it possible to view a state

diagram at different levels of abstraction

21

“OR” super state When the super state is ON, only one of its

sub states is ON

22

“AND” super state “Concurrent sub states”: When the super

state is ON, all of its states are also ON

23

Discuss!!

24

Exercise

25

Video RentalState Transition/Event State

26

Summary Object Oriented Analysis and development

provides a way to define and model a system A development methodology combines software

engineering processes and OOAD modeling But…..

There is a steep learning curve. You must be prepared to exercise this method several times before you begin to become proficient!

27

28

Homework Read: Page 122 – 132 Study: page 129 – 130, Sale Item diagram Page 136, No 7

top related