SlideShare a Scribd company logo
ARCHITECTURAL MODELING
OBJECT ORIENTED ANALYSIS AND DESIGN PATTERNS
ASHISH KUMAR THAKUR
16951A0522
Events and Signals
Events
1. An event is the specification of a significant occurrence
that has a location in time and space
2. Anything that happens is modeled as an event in UML
3. In the context of state machines, an event is an
occurrence of a stimulus that can trigger a state
transition
4. Four kinds of events :–
-> signals, calls, the passing of time, and a change in
state.
5. Events may be external or internal and asynchronous or
synchronous
Objec oriented Analysis and design Pattern
kinds of events
Signal Event
A signal event represents a named object that is dispatched
(thrown) asynchronously by one object and then received
(caught) by another. Exceptions are an example of internal
signal
1. Signal events may have instances, generalization
relationships, attributes and operations. Attributes of a
signal serve as its parameters
Signal Event
A signal event may be sent
as the action of a state
transition in a state
machine or the sending of a
message in an interaction
A signal event is an
asynchronous event
SIGNAL EVENt
Call Event
1. A call event represents the
dispatch of an operation.
2. A call event is a synchronous
event
Time and Change Events
1. A time event is an event that represents the passage of
time
2. Modeled by using the keyword ‘after’ followed by some
expression that evaluates to a period of time which can
be simple or complex
3. A change event is an event that represents a change in
state or the satisfaction of some condition
4. Modeled by using the keyword ‘when’ followed by some
Boolean expression
Time and Change Events
Sending and Receiving Events
1. For synchronous events (Sending or Receiving) like call
event, the sender and the receiver are in a rendezvous
(the sender dispatches the signal and wait for a response
from the receiver) for the duration of the operation.
When an object calls an operation, the sender dispatches
the operation and then waits for the receiver
2. For asynchronous events (Sending or Receiving) like
signal event, the sender and receiver do not rendezvous
ie,the sender dispatches the signal but does not wait for
a response from the receiver. When an object sends a
signal, the sender dispatches the signal and then
continues along its flow of control, not waiting for any
return from the receiver
Signals and Active Classes
Signals
SIGNALS
1. Signals are model elements that are independent of the classifiers that
handle them. Signals specify one-way, asynchronous communications
between active objects.
2. Signals are often used in event-driven systems and distributed computing
environments
State Machine
State machine
1. A state machine is a behavior that specifies the
sequences of states an object goes through during its
lifetime in response to events.
2. Graphically, a state is rendered as a rectangle with
rounded corners. A transition is rendered as a solid
directed line
3. State machines are used to specify the behavior of
objects that must respond to asynchronous stimulus or
whose current behavior depends on their past
States
A state is a condition or situation during the life of an
object during which it satisfies some condition, performs
some activity, or waits for some event.
Processes and Threads
Processes and Threads
1. A process is a heavyweight flow that can execute
concurrently with other processes.
2. A thread is a lightweight flow that can execute
concurrently with other threads within the same process
3. An active object is an object that owns a process or
thread and can initiate control activity.
4. An active class is a class whose instances are active
objects
Time and Space

More Related Content

Similar to Objec oriented Analysis and design Pattern (20)

PPTX
Java
shilpa patel
 
PDF
Se2 lec 13 uml state machines
Amr E. Mohamed
 
PPTX
Ooad 3
Jitendra s Rathore
 
PPT
C:\documents and settings\student\desktop\swaroop uml
satyaiswaroop
 
PPT
5. state diagrams
APU
 
PPT
5.state diagrams
APU
 
PPT
Vldb 2010 event processing tutorial
Opher Etzion
 
DOC
T305 tutorial 4
hoooma
 
PDF
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
Amr E. Mohamed
 
PPT
State Diagrams
Vaidik Trivedi
 
PPT
Aaai 2011 event processing tutorial
Opher Etzion
 
PPTX
Event and Signal Driven Programming Zendcon 2012
Elizabeth Smith
 
PDF
An Executable Actor Model in Abstract State Machine Language
infopapers
 
PDF
Designing Events-first Microservices
Jonas Bonér
 
PPT
Chapter3 general principles of discrete event simulation
De La Salle University-Manila
 
PDF
CS8592-OOAD Lecture Notes Unit-3
Gobinath Subramaniam
 
PPTX
STATE DIAGRAM.pptx
ssuser2d043c
 
PPT
Unit 3(advanced state modeling & interaction meodelling)
Manoj Reddy
 
PPTX
Dynamic modeling
Preeti Mishra
 
PPTX
Event and signal driven programming
Elizabeth Smith
 
Se2 lec 13 uml state machines
Amr E. Mohamed
 
C:\documents and settings\student\desktop\swaroop uml
satyaiswaroop
 
5. state diagrams
APU
 
5.state diagrams
APU
 
Vldb 2010 event processing tutorial
Opher Etzion
 
T305 tutorial 4
hoooma
 
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
Amr E. Mohamed
 
State Diagrams
Vaidik Trivedi
 
Aaai 2011 event processing tutorial
Opher Etzion
 
Event and Signal Driven Programming Zendcon 2012
Elizabeth Smith
 
An Executable Actor Model in Abstract State Machine Language
infopapers
 
Designing Events-first Microservices
Jonas Bonér
 
Chapter3 general principles of discrete event simulation
De La Salle University-Manila
 
CS8592-OOAD Lecture Notes Unit-3
Gobinath Subramaniam
 
STATE DIAGRAM.pptx
ssuser2d043c
 
Unit 3(advanced state modeling & interaction meodelling)
Manoj Reddy
 
Dynamic modeling
Preeti Mishra
 
Event and signal driven programming
Elizabeth Smith
 

More from Ashish Kumar Thakur (13)

PPT
No sql databases
Ashish Kumar Thakur
 
PDF
Home automation using bluetooth - Aurdino BASED
Ashish Kumar Thakur
 
PDF
APRIORI Algorithm
Ashish Kumar Thakur
 
PDF
Digital logic degin, Number system
Ashish Kumar Thakur
 
DOC
Traveling salesman problem
Ashish Kumar Thakur
 
PPTX
Cse image processing ppt
Ashish Kumar Thakur
 
PPTX
A survey on artificial neural networks in cyber world
Ashish Kumar Thakur
 
PPTX
An event driven campus navigation system on andriod121
Ashish Kumar Thakur
 
PPTX
Ram ppt
Ashish Kumar Thakur
 
PDF
Number system
Ashish Kumar Thakur
 
PPTX
Data warehousing ppt
Ashish Kumar Thakur
 
PPTX
Dwd mdatamining intro-iep
Ashish Kumar Thakur
 
PPTX
Biomass conversion technologies
Ashish Kumar Thakur
 
No sql databases
Ashish Kumar Thakur
 
Home automation using bluetooth - Aurdino BASED
Ashish Kumar Thakur
 
APRIORI Algorithm
Ashish Kumar Thakur
 
Digital logic degin, Number system
Ashish Kumar Thakur
 
Traveling salesman problem
Ashish Kumar Thakur
 
Cse image processing ppt
Ashish Kumar Thakur
 
A survey on artificial neural networks in cyber world
Ashish Kumar Thakur
 
An event driven campus navigation system on andriod121
Ashish Kumar Thakur
 
Number system
Ashish Kumar Thakur
 
Data warehousing ppt
Ashish Kumar Thakur
 
Dwd mdatamining intro-iep
Ashish Kumar Thakur
 
Biomass conversion technologies
Ashish Kumar Thakur
 
Ad

Recently uploaded (20)

PPTX
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PDF
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PDF
Data structures notes for unit 2 in computer science.pdf
sshubhamsingh265
 
PPTX
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PDF
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
Knowledge Representation : Semantic Networks
Amity University, Patna
 
PPT
Testing and final inspection of a solar PV system
MuhammadSanni2
 
PPTX
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
PDF
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PDF
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
PPTX
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
PPTX
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
Data structures notes for unit 2 in computer science.pdf
sshubhamsingh265
 
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Knowledge Representation : Semantic Networks
Amity University, Patna
 
Testing and final inspection of a solar PV system
MuhammadSanni2
 
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
Ad

Objec oriented Analysis and design Pattern

  • 1. ARCHITECTURAL MODELING OBJECT ORIENTED ANALYSIS AND DESIGN PATTERNS ASHISH KUMAR THAKUR 16951A0522
  • 3. Events 1. An event is the specification of a significant occurrence that has a location in time and space 2. Anything that happens is modeled as an event in UML 3. In the context of state machines, an event is an occurrence of a stimulus that can trigger a state transition 4. Four kinds of events :– -> signals, calls, the passing of time, and a change in state. 5. Events may be external or internal and asynchronous or synchronous
  • 6. Signal Event A signal event represents a named object that is dispatched (thrown) asynchronously by one object and then received (caught) by another. Exceptions are an example of internal signal 1. Signal events may have instances, generalization relationships, attributes and operations. Attributes of a signal serve as its parameters
  • 7. Signal Event A signal event may be sent as the action of a state transition in a state machine or the sending of a message in an interaction A signal event is an asynchronous event
  • 9. Call Event 1. A call event represents the dispatch of an operation. 2. A call event is a synchronous event
  • 10. Time and Change Events 1. A time event is an event that represents the passage of time 2. Modeled by using the keyword ‘after’ followed by some expression that evaluates to a period of time which can be simple or complex 3. A change event is an event that represents a change in state or the satisfaction of some condition 4. Modeled by using the keyword ‘when’ followed by some Boolean expression
  • 11. Time and Change Events
  • 12. Sending and Receiving Events 1. For synchronous events (Sending or Receiving) like call event, the sender and the receiver are in a rendezvous (the sender dispatches the signal and wait for a response from the receiver) for the duration of the operation. When an object calls an operation, the sender dispatches the operation and then waits for the receiver 2. For asynchronous events (Sending or Receiving) like signal event, the sender and receiver do not rendezvous ie,the sender dispatches the signal but does not wait for a response from the receiver. When an object sends a signal, the sender dispatches the signal and then continues along its flow of control, not waiting for any return from the receiver
  • 15. SIGNALS 1. Signals are model elements that are independent of the classifiers that handle them. Signals specify one-way, asynchronous communications between active objects. 2. Signals are often used in event-driven systems and distributed computing environments
  • 17. State machine 1. A state machine is a behavior that specifies the sequences of states an object goes through during its lifetime in response to events. 2. Graphically, a state is rendered as a rectangle with rounded corners. A transition is rendered as a solid directed line 3. State machines are used to specify the behavior of objects that must respond to asynchronous stimulus or whose current behavior depends on their past
  • 18. States A state is a condition or situation during the life of an object during which it satisfies some condition, performs some activity, or waits for some event.
  • 20. Processes and Threads 1. A process is a heavyweight flow that can execute concurrently with other processes. 2. A thread is a lightweight flow that can execute concurrently with other threads within the same process 3. An active object is an object that owns a process or thread and can initiate control activity. 4. An active class is a class whose instances are active objects