SlideShare a Scribd company logo
1 of 30
Prepared By:
Jesadiya shilpa
State Modeling & Interaction
Modeling
Introduction
• The State Model describes the sequence of
operations that occur in response to external
stimuli .
• The State Model consists of multiple state
diagrams, one for each class with temporal
behavior that is important to an application.
• The State Diagram is a graphical representation of
finite state machines that relates events and
states.
• Events represent external stimuli and state
represent values of objects.
Events, Conditions, and States
• Event: something that happens at a point in time
• Operator presses self-test button
• The alarm goes off
• Condition: something that has a duration
• The fuel level is high
• The alarm is on
• State : an abstraction of the attributes and links of an object (or entire
system)
• A state represent the current status of an object and it’s properties.
5
States
– At any given point in time, the system is in one state.
– It will remain in this state until an event occurs that
causes it to change state.
– A state is represented by a rounded rectangle
containing the name of the state.
– Special states:
• A black circle represents the start state
• A circle with a ring around it represents an end state
STATE MODELING : EVENT S
• Kinds of Events
• Signal Event: It is an explicit one-way transmission (sending or
receiving a signal) of information from one object to another.
• Change Event: It is an event that is caused by the satisfaction of a
boolean expression. When keyword is used followed by
parenthesized boolean expression.
Ex: when(room temperature < heating set point) ,
when(battery power < lower limit)
• Time Event: It is an event caused by the occurrence of an absolute
time or the elapse of a time interval. When or after keyword is used
followed by parenthesized expression involving time.
Ex: when(date=January 1, 2010) ,after(10 seconds)
7
Transitions
– A transition represents a change of state in
response to an event.
• It is considered to occur instantaneously.
– The label on each transition is the event that
causes the change of state.
8
State Diagrams
• A state diagram describes the behaviour of a
system, some part of a system, or an individual
object.
– At any given point in time, the system or object is in a
certain state.
• Being in a state means that it is will behave in a specific way
in response to any events that occur.
– Some events will cause the system to change state.
• In the new state, the system will behave in a different way to
events.
– A state diagram is a directed graph where the nodes
are states and the arcs are transitions.
State Diagram
• General form of state diagram.
A B
C
event-1
event-2event-2
STATE DIAGRAM: THREAD LIFE CYCLE
• The class model describes the class & objects in a
system and their relationship.
• The state model describes the life cycles of the
objects.
• The interaction model describes how the objects
interact.
• The interaction model starts with use cases that
are then elaborated with sequence and activity
diagrams
Interaction Models
• Use case: focuses on functionality of a system-
i.e, what a system does for users
• Sequence diagrams: shows the object that
interact and the time sequence of their
interactions
• Activity diagrams: elaborates important
processing steps
Interaction Models
Use Case Diagrams
• Use Case diagrams show the various activities
the users can perform on the system.
– System is something that performs a function.
• They model the dynamic aspects of the system.
• Provides a user’s perspective of the system.
Use Case Diagrams
• Use Case diagrams show the various activities the users
can perform on the system.
-System is something that performs a function.
• A use case is a model of the interaction between
External users of a software product (actors) and The
software product itself
• More precisely, an actor is a user playing a specific role
describing a set of user scenarios capturing user
requirements contract between end user and software
developers
Use Case Diagrams
Use-Case Diagrams
• Actors: A role that a user plays with respect to the system, including
human users and other systems. e.g., inanimate physical objects (e.g.
robot); an external system that needs some information from the
current system.
• Use case: A set of scenarios that describing an interaction between a
user and a system, including alternatives.
• System boundary: rectangle diagram representing the boundary
between the actors and the system.
• Association: Communication between an actor and a use case;
Represented by a solid line.
Actors
Actors
Could be human beings, other systems, timers
and clocks or hardware devices.
Actors that stimulate the system and are the
initiators of events are called primary actors
(active)
Actors that only receive stimuli from the system
are called secondary actors (passive)
Actors
Actors
Who/what will be interested in the system?
Who/what will want to change the data in the
system?
Who/what will want to interface with the system?
Who/what will want information from the
system?
• Use case is a particular activity a user can do
on the system.
• Is represented by an ellipse.
• Following are two use cases for a library
system.
Use Case Diagrams – Use Cases
ReserveBorrow
Construct Description Notation
Use-case A sequence of transactions performed
by a system that produces a measurable
result for a particular actor
Actor A coherent set of roles that users play
when interacting with these use cases
System
Boundary
The boundary between the physical
system and the actors who interact with
the physical system
23
Summary of Notations
2. Use Case Diagram
• General form of Use Case Diagram
Use-Case Diagram: Example
Actor
Association System boundary
Use-case
System name
Use Case Diagram – Example1 (Library)
A Library System.
client employee
supervisor
library system
borrw
reserve
Order title
Finepayment
Use Case Diagram for Student Assessment
Management System
Teacher
Student
Printing administrator
Grade system
Record
grades
View grades
Distribute
Report cards
Create
report card
Java

More Related Content

Viewers also liked

5 Things You'll Learn At Our Connected Enterprise Seminar
5 Things You'll Learn At Our Connected Enterprise Seminar5 Things You'll Learn At Our Connected Enterprise Seminar
5 Things You'll Learn At Our Connected Enterprise SeminarCBT Company
 
Physically-based Modeling of Motion Pattern for Scorpion Robot
Physically-based Modeling of Motion Pattern for Scorpion RobotPhysically-based Modeling of Motion Pattern for Scorpion Robot
Physically-based Modeling of Motion Pattern for Scorpion RobotDarin Rajan
 
tasmanhealth.co.nz | NOW Foods Lutein
tasmanhealth.co.nz | NOW Foods Luteintasmanhealth.co.nz | NOW Foods Lutein
tasmanhealth.co.nz | NOW Foods Luteindanneilvictory
 
Ahmed Naeim Kamel CV 5-2-2016
Ahmed Naeim Kamel  CV 5-2-2016Ahmed Naeim Kamel  CV 5-2-2016
Ahmed Naeim Kamel CV 5-2-2016AHMED NAEIM
 
Audience feedback
Audience feedbackAudience feedback
Audience feedbackcharlicarty
 
Основы продвижения в социальных сетях
Основы продвижения в социальных сетяхОсновы продвижения в социальных сетях
Основы продвижения в социальных сетяхorenpro_ru
 
Un mat 2014 5
Un mat 2014   5Un mat 2014   5
Un mat 2014 502031972
 
Oaaa 0
Oaaa 0Oaaa 0
Oaaa 0215174
 
Scott Selby PPP Final
Scott Selby PPP FinalScott Selby PPP Final
Scott Selby PPP FinalScott_Selby
 
Nuevas palabras magaly
Nuevas palabras magalyNuevas palabras magaly
Nuevas palabras magalyurion1111
 
MSc Extended Essay 2015
MSc Extended Essay 2015MSc Extended Essay 2015
MSc Extended Essay 2015Radhika Wadhwa
 
University of Florida - Design and Manufacturing Laboratory
University of Florida - Design and Manufacturing LaboratoryUniversity of Florida - Design and Manufacturing Laboratory
University of Florida - Design and Manufacturing LaboratoryAndres Flores
 

Viewers also liked (17)

5 Things You'll Learn At Our Connected Enterprise Seminar
5 Things You'll Learn At Our Connected Enterprise Seminar5 Things You'll Learn At Our Connected Enterprise Seminar
5 Things You'll Learn At Our Connected Enterprise Seminar
 
Physically-based Modeling of Motion Pattern for Scorpion Robot
Physically-based Modeling of Motion Pattern for Scorpion RobotPhysically-based Modeling of Motion Pattern for Scorpion Robot
Physically-based Modeling of Motion Pattern for Scorpion Robot
 
tasmanhealth.co.nz | NOW Foods Lutein
tasmanhealth.co.nz | NOW Foods Luteintasmanhealth.co.nz | NOW Foods Lutein
tasmanhealth.co.nz | NOW Foods Lutein
 
Hazteoir twitter - Blog
Hazteoir twitter - BlogHazteoir twitter - Blog
Hazteoir twitter - Blog
 
Ahmed Naeim Kamel CV 5-2-2016
Ahmed Naeim Kamel  CV 5-2-2016Ahmed Naeim Kamel  CV 5-2-2016
Ahmed Naeim Kamel CV 5-2-2016
 
Story board listening
Story board listening Story board listening
Story board listening
 
Audience feedback
Audience feedbackAudience feedback
Audience feedback
 
Основы продвижения в социальных сетях
Основы продвижения в социальных сетяхОсновы продвижения в социальных сетях
Основы продвижения в социальных сетях
 
My First Journey
My First Journey  My First Journey
My First Journey
 
Un mat 2014 5
Un mat 2014   5Un mat 2014   5
Un mat 2014 5
 
Oaaa 0
Oaaa 0Oaaa 0
Oaaa 0
 
Scott Selby PPP Final
Scott Selby PPP FinalScott Selby PPP Final
Scott Selby PPP Final
 
Mix mag
Mix magMix mag
Mix mag
 
ITBE_Teaser
ITBE_TeaserITBE_Teaser
ITBE_Teaser
 
Nuevas palabras magaly
Nuevas palabras magalyNuevas palabras magaly
Nuevas palabras magaly
 
MSc Extended Essay 2015
MSc Extended Essay 2015MSc Extended Essay 2015
MSc Extended Essay 2015
 
University of Florida - Design and Manufacturing Laboratory
University of Florida - Design and Manufacturing LaboratoryUniversity of Florida - Design and Manufacturing Laboratory
University of Florida - Design and Manufacturing Laboratory
 

Similar to Java

Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)Manoj Reddy
 
3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modelingMinal Maniar
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Object Modeling Techniques
Object Modeling TechniquesObject Modeling Techniques
Object Modeling TechniquesShilpa Wadhwani
 
Modeling&Simulation_Ch01_lecture 2.pptx
Modeling&Simulation_Ch01_lecture 2.pptxModeling&Simulation_Ch01_lecture 2.pptx
Modeling&Simulation_Ch01_lecture 2.pptxMaiGaafar
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral ModelingAMITJain879
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State ModellingDr Chetan Shelke
 
Object modeling techniques by savyasachi
Object modeling techniques by savyasachiObject modeling techniques by savyasachi
Object modeling techniques by savyasachiSavyasachi14
 
Slide 6 Activity Diagram
Slide 6 Activity DiagramSlide 6 Activity Diagram
Slide 6 Activity DiagramNiloy Rocker
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagramsbabak danyal
 
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsSE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsAmr E. Mohamed
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagramBaskarkncet
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptxNadir438180
 
Lecture 13 requirements modeling - flow & behavior (2)
Lecture 13   requirements modeling - flow &  behavior (2)Lecture 13   requirements modeling - flow &  behavior (2)
Lecture 13 requirements modeling - flow & behavior (2)IIUI
 
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
 

Similar to Java (20)

Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
 
3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modeling
 
Diagrams
DiagramsDiagrams
Diagrams
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3
 
Object Modeling Techniques
Object Modeling TechniquesObject Modeling Techniques
Object Modeling Techniques
 
Modeling&Simulation_Ch01_lecture 2.pptx
Modeling&Simulation_Ch01_lecture 2.pptxModeling&Simulation_Ch01_lecture 2.pptx
Modeling&Simulation_Ch01_lecture 2.pptx
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State Modelling
 
Object modeling techniques by savyasachi
Object modeling techniques by savyasachiObject modeling techniques by savyasachi
Object modeling techniques by savyasachi
 
Slide 6 Activity Diagram
Slide 6 Activity DiagramSlide 6 Activity Diagram
Slide 6 Activity Diagram
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
 
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsSE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour Diagrams
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptx
 
Lecture 13 requirements modeling - flow & behavior (2)
Lecture 13   requirements modeling - flow &  behavior (2)Lecture 13   requirements modeling - flow &  behavior (2)
Lecture 13 requirements modeling - flow & behavior (2)
 
Jar chapter 4, part 1
Jar chapter 4, part 1Jar chapter 4, part 1
Jar chapter 4, part 1
 
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
 
05 use case
05 use case05 use case
05 use case
 
Ooad 3
Ooad 3Ooad 3
Ooad 3
 

Recently uploaded

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

Java

  • 2. State Modeling & Interaction Modeling
  • 3. Introduction • The State Model describes the sequence of operations that occur in response to external stimuli . • The State Model consists of multiple state diagrams, one for each class with temporal behavior that is important to an application. • The State Diagram is a graphical representation of finite state machines that relates events and states. • Events represent external stimuli and state represent values of objects.
  • 4. Events, Conditions, and States • Event: something that happens at a point in time • Operator presses self-test button • The alarm goes off • Condition: something that has a duration • The fuel level is high • The alarm is on • State : an abstraction of the attributes and links of an object (or entire system) • A state represent the current status of an object and it’s properties.
  • 5. 5 States – At any given point in time, the system is in one state. – It will remain in this state until an event occurs that causes it to change state. – A state is represented by a rounded rectangle containing the name of the state. – Special states: • A black circle represents the start state • A circle with a ring around it represents an end state
  • 6. STATE MODELING : EVENT S • Kinds of Events • Signal Event: It is an explicit one-way transmission (sending or receiving a signal) of information from one object to another. • Change Event: It is an event that is caused by the satisfaction of a boolean expression. When keyword is used followed by parenthesized boolean expression. Ex: when(room temperature < heating set point) , when(battery power < lower limit) • Time Event: It is an event caused by the occurrence of an absolute time or the elapse of a time interval. When or after keyword is used followed by parenthesized expression involving time. Ex: when(date=January 1, 2010) ,after(10 seconds)
  • 7. 7 Transitions – A transition represents a change of state in response to an event. • It is considered to occur instantaneously. – The label on each transition is the event that causes the change of state.
  • 8. 8 State Diagrams • A state diagram describes the behaviour of a system, some part of a system, or an individual object. – At any given point in time, the system or object is in a certain state. • Being in a state means that it is will behave in a specific way in response to any events that occur. – Some events will cause the system to change state. • In the new state, the system will behave in a different way to events. – A state diagram is a directed graph where the nodes are states and the arcs are transitions.
  • 9. State Diagram • General form of state diagram. A B C event-1 event-2event-2
  • 10. STATE DIAGRAM: THREAD LIFE CYCLE
  • 11. • The class model describes the class & objects in a system and their relationship. • The state model describes the life cycles of the objects. • The interaction model describes how the objects interact. • The interaction model starts with use cases that are then elaborated with sequence and activity diagrams Interaction Models
  • 12. • Use case: focuses on functionality of a system- i.e, what a system does for users • Sequence diagrams: shows the object that interact and the time sequence of their interactions • Activity diagrams: elaborates important processing steps Interaction Models
  • 14.
  • 15. • Use Case diagrams show the various activities the users can perform on the system. – System is something that performs a function. • They model the dynamic aspects of the system. • Provides a user’s perspective of the system. Use Case Diagrams
  • 16. • Use Case diagrams show the various activities the users can perform on the system. -System is something that performs a function. • A use case is a model of the interaction between External users of a software product (actors) and The software product itself • More precisely, an actor is a user playing a specific role describing a set of user scenarios capturing user requirements contract between end user and software developers Use Case Diagrams
  • 17. Use-Case Diagrams • Actors: A role that a user plays with respect to the system, including human users and other systems. e.g., inanimate physical objects (e.g. robot); an external system that needs some information from the current system. • Use case: A set of scenarios that describing an interaction between a user and a system, including alternatives. • System boundary: rectangle diagram representing the boundary between the actors and the system. • Association: Communication between an actor and a use case; Represented by a solid line.
  • 18. Actors Actors Could be human beings, other systems, timers and clocks or hardware devices. Actors that stimulate the system and are the initiators of events are called primary actors (active) Actors that only receive stimuli from the system are called secondary actors (passive)
  • 19. Actors Actors Who/what will be interested in the system? Who/what will want to change the data in the system? Who/what will want to interface with the system? Who/what will want information from the system?
  • 20.
  • 21. • Use case is a particular activity a user can do on the system. • Is represented by an ellipse. • Following are two use cases for a library system. Use Case Diagrams – Use Cases ReserveBorrow
  • 22.
  • 23. Construct Description Notation Use-case A sequence of transactions performed by a system that produces a measurable result for a particular actor Actor A coherent set of roles that users play when interacting with these use cases System Boundary The boundary between the physical system and the actors who interact with the physical system 23 Summary of Notations
  • 24. 2. Use Case Diagram • General form of Use Case Diagram
  • 25.
  • 26.
  • 27. Use-Case Diagram: Example Actor Association System boundary Use-case System name
  • 28. Use Case Diagram – Example1 (Library) A Library System. client employee supervisor library system borrw reserve Order title Finepayment
  • 29. Use Case Diagram for Student Assessment Management System Teacher Student Printing administrator Grade system Record grades View grades Distribute Report cards Create report card