Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
3-5-State Diagrams

3-5-State Diagrams

Ratings: (0)|Views: 4|Likes:
Published by Arsalan Ahmed
State Diagrams
State Diagrams

More info:

Published by: Arsalan Ahmed on Dec 26, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/16/2014

pdf

text

original

 
3.5.1
Object-Oriented Analysis and Design
 © J.W. Schmidt, F. Matthes, TU Hamburg-Harburg
3.5.1OOA&D
 © J.W. Schmidt, F. Matthes, TU Hamburg-Harburg
3.5 State Diagrams
Subject/Topic/Focus:
r
Intraclass behaviorSummary:
r
States and transitions
r
Events, guards, actions and activities
r
Abstraction, nesting and concurrencyLiterature:
r
Fowler
r
Rumbaugh
r
Developed as “Statecharts” by David Harel.
r
Successor to Deterministic Finite Automata.
 
r
Developed as “Statecharts” by David Harel.
r
Successor to Deterministic Finite Automata.
3.5.2OOA&D
 © J.W. Schmidt, F. Matthes, TU Hamburg-Harburg
Motivation
r
Object-orientation = Structure + Behavior.
r
Class diagrams capture
structure (attributes and associations) andbehavior interfaces (method signatures).
r
How do we catch the
dynamic behavior
and
life cycle
of an object?Creation and deletion.Attribute and association changes.
r
How does the object
interact
with other objects?
Reacting
to
events
and to messages received by the object.
Triggering
 
actions
and sending messages to other objects.
Handling
of sequences of events accepted and actions triggered.
 
3.5.2
Object-Oriented Analysis and Design
 © J.W. Schmidt, F. Matthes, TU Hamburg-Harburg
3.5.3OOA&D
 © J.W. Schmidt, F. Matthes, TU Hamburg-Harburg
Role of State Diagrams in UML
Class Diagrams
State Diagrams
Interaction DiagramsDescription of states andstate transitions in classesRefinement of state sequences,i.e., instance of a state diagramActivity DiagramsWorkflow presentationState diagrams supplement class diagrams with
states
(of attributes and associations) and
state transitions
,
 
i.e., behavior sequences.
 
State diagrams supplement class diagrams with
states
(of attributes and associations) and
state transitions
,
 
i.e., behavior sequences.
Reading: 
A delegates taskto B
 
Reading: 
A delegates taskto BAB
3.5.4OOA&D
 © J.W. Schmidt, F. Matthes, TU Hamburg-Harburg
State Diagrams
State diagrams are a technique to describe the
behavior
, i.e.,
state changes
of a
single class
according to
events
and
messages
which the class
sends
and
receives
.
 
State diagrams are a technique to describe the
behavior
, i.e.,
state changes
of a
single class
according to
events
and
messages
which the class
sends
and
receives
.
 
3.5.3
Object-Oriented Analysis and Design
 © J.W. Schmidt, F. Matthes, TU Hamburg-Harburg
3.5.5OOA&D
 © J.W. Schmidt, F. Matthes, TU Hamburg-Harburg
States
r
A state
abstracts from attribute values and associations of an object;represents the internal condition/state of an object
for a certain period of time
;corresponds to an interval of time between two events.
r
The response to events may depend on the state of an object.
r
Object
creation
comes together with
an initial object state
.
r
Object
deletion
may be related with (one of many)
final states
.
White’s turn
Initial stateState
Black’s turn
Final stateBlack winsWhite winsDraw
3.5.6OOA&D
 © J.W. Schmidt, F. Matthes, TU Hamburg-Harburg
Events
r
An
event
is something worth noticing at a
point of time
;
a signal from one object to another, e.g., “delivered”,a message received by an object, e.g., “check item”,a certain date/time, e.g., “after 10 seconds” (being in a certain state) or“at 31-dec-2000, 00:00”.
r
Events may take
arguments
, e.g., “deliver to (receiver : Customer)”.
r
Events may be declared in a class diagram with arguments shown asattributes.<<signal>>IOEventtime : Time<<signal>>user inputdevice<<signal>>mouselocation<<signal>>keyboardcharacter

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->