Behavioral Models: by Dr. Noman Hasany
Behavioral Models: by Dr. Noman Hasany
By
Dr. Noman Hasany
Behavioral models
Behavioral models are models of the dynamic behavior of a
system as it is executing.
Stimuli types and UML diagrams:
Data Some data arrives that has to be processed by the system.
• Modeled by activity models/sequence diagram
Events Some event happens that triggers system processing. Events may
have associated data, although this is not always the case.
• Modeled by state machine models
3
Data Flow Architectures
• The data flow software architecture style views the entire
software system as a series of transformations on successive sets
of data, where data and operations on it are independent of each
other.
• The software system is decomposed into data processing
elements where data directs and controls the order of data
computation processing.
• Examples are:
• Pipe-n-filter
• Batch Sequence
• Process control
Batch Sequential Architecture
• In batch sequential architecture, each data transformation
subsystem or module cannot start its process until its previous
subsystem completes its computation. Data flow carries a batch of
data as a whole from one subsystem to another. Figure 5.2 shows a
typical example of batch sequential style.
Batch Sequential Architecture
• In this example, the first subsystem validates the transaction requests
(insert, delete, and update) in their totality. The sort subsystem sorts all
transaction records in an ascending order on the primary key to speed up
the update on the master file since the master file is sorted by the primary
key. The transaction update module updates the master file with the sorted
transaction requests, and then the report module generates a new list.
• myShell.sh