SlideShare a Scribd company logo
1 of 37
Object Oriented Software Modeling and Design  CE 350 Abdel-Karim Al-Tamimi, Ph.D. [email_address] http://faculty.yu.edu.jo/altamimi Al-Tamimi 2011 ©
Overview ,[object Object],Al-Tamimi 2011 ©
State Machine Diagram ,[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
What is a State? ,[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
State Characteristics ,[object Object],[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
State Diagrams Al-Tamimi 2011 ©
Example Al-Tamimi 2011 ©
Example Al-Tamimi 2011 ©
Composite State Al-Tamimi 2011 ©
State UML Notations Al-Tamimi 2011 © State Name Internal Activities Internal Transitions
State Conditions Al-Tamimi 2011 © Action or activity Description entry/ action 1; …; action n Upon entry  to the state, the specified actions are performed. exit/ action 1; …; action n Upon exit  from the state, the specified actions are performed. do/ activity The specified activity is performed  continuously while in this state . event-name(parameters)  [guard-condition]  / action  1 ; …; action n An  internal transition is fired  when the specified event occurs and the specified  guard condition is true .  The specified actions are performed when the transition is fired.
Introduction to States ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
State Transition ,[object Object],Al-Tamimi 2011 © (Event/Trigger) [guard condition]/(Action/Effect)
State Transition ,[object Object],[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
Self-Transition Al-Tamimi 2011 ©
Composite State Al-Tamimi 2011 ©
Composite State Al-Tamimi 2011 ©
Concurrent Composite State Al-Tamimi 2011 © Initial pseudo- state  May finish at different times
Submachine State Al-Tamimi 2011 © Name of State : Name of Submachine
Entry Point Al-Tamimi 2011 ©
Entry Point Al-Tamimi 2011 ©
Exit Point Al-Tamimi 2011 ©
Choice Pseudo-State Dynamic Conditional Branch Al-Tamimi 2011 ©
Choice Pseudo-State Dynamic Conditional Branch Al-Tamimi 2011 ©
Junction Pseudo-State Static Conditional Branch Al-Tamimi 2011 ©
Junction Pseudo-State Al-Tamimi 2011 ©
Receiving Signal Al-Tamimi 2011 ©
Sending Signal Al-Tamimi 2011 ©
Terminate Pseudo-State Al-Tamimi 2011 ©
History States ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
Shallow History State Al-Tamimi 2011 ©
Shallow History State Al-Tamimi 2011 © When the activities associated with that state are finished, the system puts the Order back into the  Retrieving Books  state and the  substate  in which the Order resided when activity was interrupted, and the Order  resumes  performing the interrupted activity.  (in this case Accumulating from Inventory) When a  query  event comes in while an Order object is in the  Retrieving Books  state, the system puts the current activity hold and puts the object into the  Checking Status  state.
Deep History State Al-Tamimi 2011 © In this case, that execution should resume with the object in the  Waiting for Back Order  substate.
Fork and Join Al-Tamimi 2011 ©
State Diagram UML Notations Al-Tamimi 2011 © Initial state Final state State Shallow History state Deep History state Concurrent composite state Transition
State Diagram UML Notations Al-Tamimi 2011 © Exit Point Entry Point Choice Join and Fork Junction state Transition
Resources ,[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©

More Related Content

What's hot

Lecture07 examples
Lecture07 examplesLecture07 examples
Lecture07 examplesartgreen
 
agent uml الوكيل باستخدام لغة النمذجة الموحدة
  agent uml الوكيل باستخدام لغة النمذجة الموحدة  agent uml الوكيل باستخدام لغة النمذجة الموحدة
agent uml الوكيل باستخدام لغة النمذجة الموحدةMohamed Elagnaf
 
Use Case Model
Use Case ModelUse Case Model
Use Case ModelAli Nguyen
 
Activity Diagram
Activity DiagramActivity Diagram
Activity DiagramAshesh R
 
M02 Uml Overview
M02 Uml OverviewM02 Uml Overview
M02 Uml OverviewDang Tuan
 
Extending UML for Agents
Extending UML for AgentsExtending UML for Agents
Extending UML for AgentsMohamed Elagnaf
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case DiagramAshesh R
 
Use Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationUse Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationLeslie Munday
 
Use Case diagram-UML diagram-2
Use Case diagram-UML diagram-2Use Case diagram-UML diagram-2
Use Case diagram-UML diagram-2Ramakant Soni
 
Activity Diagram Examples by Creately
Activity Diagram Examples by Creately Activity Diagram Examples by Creately
Activity Diagram Examples by Creately Creately
 
Use Case diagram-UML diagram-1
Use Case diagram-UML diagram-1Use Case diagram-UML diagram-1
Use Case diagram-UML diagram-1Ramakant Soni
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagramsbarney92
 

What's hot (16)

Lecture05
Lecture05Lecture05
Lecture05
 
Lecture07 examples
Lecture07 examplesLecture07 examples
Lecture07 examples
 
Domain model
Domain modelDomain model
Domain model
 
agent uml الوكيل باستخدام لغة النمذجة الموحدة
  agent uml الوكيل باستخدام لغة النمذجة الموحدة  agent uml الوكيل باستخدام لغة النمذجة الموحدة
agent uml الوكيل باستخدام لغة النمذجة الموحدة
 
Use Case Model
Use Case ModelUse Case Model
Use Case Model
 
Activity Diagram
Activity DiagramActivity Diagram
Activity Diagram
 
Uml diagrams usecase
Uml diagrams usecaseUml diagrams usecase
Uml diagrams usecase
 
M02 Uml Overview
M02 Uml OverviewM02 Uml Overview
M02 Uml Overview
 
Extending UML for Agents
Extending UML for AgentsExtending UML for Agents
Extending UML for Agents
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Use Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationUse Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling Notation
 
Use Case diagram-UML diagram-2
Use Case diagram-UML diagram-2Use Case diagram-UML diagram-2
Use Case diagram-UML diagram-2
 
Uml and enterprise architect
Uml and enterprise architectUml and enterprise architect
Uml and enterprise architect
 
Activity Diagram Examples by Creately
Activity Diagram Examples by Creately Activity Diagram Examples by Creately
Activity Diagram Examples by Creately
 
Use Case diagram-UML diagram-1
Use Case diagram-UML diagram-1Use Case diagram-UML diagram-1
Use Case diagram-UML diagram-1
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 

Viewers also liked

Software engineering Questions and Answers
Software engineering Questions and AnswersSoftware engineering Questions and Answers
Software engineering Questions and AnswersBala Ganesh
 
Lecture-03 Introduction to UML
Lecture-03 Introduction to UMLLecture-03 Introduction to UML
Lecture-03 Introduction to UMLartgreen
 
software engineering notes for cse/it fifth semester
software engineering notes for cse/it fifth semestersoftware engineering notes for cse/it fifth semester
software engineering notes for cse/it fifth semesterrajesh199155
 
Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notesSiva Ayyakutti
 

Viewers also liked (7)

Software engineering Questions and Answers
Software engineering Questions and AnswersSoftware engineering Questions and Answers
Software engineering Questions and Answers
 
Lecture09
Lecture09Lecture09
Lecture09
 
Lecture11
Lecture11Lecture11
Lecture11
 
Lecture07
Lecture07Lecture07
Lecture07
 
Lecture-03 Introduction to UML
Lecture-03 Introduction to UMLLecture-03 Introduction to UML
Lecture-03 Introduction to UML
 
software engineering notes for cse/it fifth semester
software engineering notes for cse/it fifth semestersoftware engineering notes for cse/it fifth semester
software engineering notes for cse/it fifth semester
 
Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notes
 

Similar to Lecture08

state modeling In UML
state modeling In UMLstate modeling In UML
state modeling In UMLKumar
 
STATE DIAGRAM.pptx
STATE DIAGRAM.pptxSTATE DIAGRAM.pptx
STATE DIAGRAM.pptxssuser2d043c
 
Software Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramSoftware Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramAjit Nayak
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagramsartgreen
 
Free ebooks download ! Edhole
Free ebooks download ! EdholeFree ebooks download ! Edhole
Free ebooks download ! EdholeEdhole.com
 
Free ebooks download ! Edhole
Free ebooks download ! EdholeFree ebooks download ! Edhole
Free ebooks download ! EdholeEdhole.com
 
Software engineering.pptx
Software engineering.pptxSoftware engineering.pptx
Software engineering.pptxNourhanTarek23
 
Software engineering.pptx
Software engineering.pptxSoftware engineering.pptx
Software engineering.pptxNourhanTarek23
 
Real World State And Notification Broker
Real World State And Notification BrokerReal World State And Notification Broker
Real World State And Notification BrokerXeDotNet
 
Q6. In a UML state machine diagram, 1. What is an event How is it re.pdf
Q6. In a UML state machine diagram, 1. What is an event How is it re.pdfQ6. In a UML state machine diagram, 1. What is an event How is it re.pdf
Q6. In a UML state machine diagram, 1. What is an event How is it re.pdfarshadkhan4488
 
C:\documents and settings\student\desktop\swaroop uml
C:\documents and settings\student\desktop\swaroop umlC:\documents and settings\student\desktop\swaroop uml
C:\documents and settings\student\desktop\swaroop umlsatyaiswaroop
 
Software System Engineering - Chapter 14
Software System Engineering - Chapter 14Software System Engineering - Chapter 14
Software System Engineering - Chapter 14Fadhil Ismail
 
Unit 4- State Machine in mobile programming
Unit 4- State Machine in mobile programmingUnit 4- State Machine in mobile programming
Unit 4- State Machine in mobile programmingLeahRachael
 
5. state diagrams
5. state diagrams5. state diagrams
5. state diagramsAPU
 
5.state diagrams
5.state diagrams5.state diagrams
5.state diagramsAPU
 

Similar to Lecture08 (20)

Seminar State Chart1
Seminar State Chart1Seminar State Chart1
Seminar State Chart1
 
States machine
States machineStates machine
States machine
 
State modeling
State modelingState modeling
State modeling
 
state modeling In UML
state modeling In UMLstate modeling In UML
state modeling In UML
 
STATE DIAGRAM.pptx
STATE DIAGRAM.pptxSTATE DIAGRAM.pptx
STATE DIAGRAM.pptx
 
Software Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramSoftware Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagram
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagrams
 
Free ebooks download ! Edhole
Free ebooks download ! EdholeFree ebooks download ! Edhole
Free ebooks download ! Edhole
 
Free ebooks download ! Edhole
Free ebooks download ! EdholeFree ebooks download ! Edhole
Free ebooks download ! Edhole
 
Diagrams
DiagramsDiagrams
Diagrams
 
Software engineering.pptx
Software engineering.pptxSoftware engineering.pptx
Software engineering.pptx
 
Software engineering.pptx
Software engineering.pptxSoftware engineering.pptx
Software engineering.pptx
 
Real World State And Notification Broker
Real World State And Notification BrokerReal World State And Notification Broker
Real World State And Notification Broker
 
Q6. In a UML state machine diagram, 1. What is an event How is it re.pdf
Q6. In a UML state machine diagram, 1. What is an event How is it re.pdfQ6. In a UML state machine diagram, 1. What is an event How is it re.pdf
Q6. In a UML state machine diagram, 1. What is an event How is it re.pdf
 
C:\documents and settings\student\desktop\swaroop uml
C:\documents and settings\student\desktop\swaroop umlC:\documents and settings\student\desktop\swaroop uml
C:\documents and settings\student\desktop\swaroop uml
 
Software System Engineering - Chapter 14
Software System Engineering - Chapter 14Software System Engineering - Chapter 14
Software System Engineering - Chapter 14
 
Unit 4- State Machine in mobile programming
Unit 4- State Machine in mobile programmingUnit 4- State Machine in mobile programming
Unit 4- State Machine in mobile programming
 
5. state diagrams
5. state diagrams5. state diagrams
5. state diagrams
 
5.state diagrams
5.state diagrams5.state diagrams
5.state diagrams
 
State Diagrams
State DiagramsState Diagrams
State Diagrams
 

More from artgreen

Ce350 class project_spring2011_v1.5
Ce350 class project_spring2011_v1.5Ce350 class project_spring2011_v1.5
Ce350 class project_spring2011_v1.5artgreen
 

More from artgreen (6)

Lecture12
Lecture12Lecture12
Lecture12
 
Ce350 class project_spring2011_v1.5
Ce350 class project_spring2011_v1.5Ce350 class project_spring2011_v1.5
Ce350 class project_spring2011_v1.5
 
Lecture05
Lecture05Lecture05
Lecture05
 
Lecture05
Lecture05Lecture05
Lecture05
 
Lecture05
Lecture05Lecture05
Lecture05
 
Lecture01
Lecture01Lecture01
Lecture01
 

Lecture08