Title: PowerPointPrsentation
1Declarative Modeling
Modeling and Simulation of Computer Systems
Institute of Parallel and Distributed Systems,
University of Stuttgart
Author
Christian Hiesinger
Supervisor
Olga Saukh
February 21, 2005
1/22
2Declarative Modeling
Overview
Introduction
Declarative Modeling
- Hybrid State-Event Methods
Conclusion
2/22
3Declarative Modeling
Introduction
Definition of modeling
Replication of reality
Application areas
Computer science, space travel, architecture, etc.
Types of modeling
3/22
4Declarative Modeling
Declarative Modeling
General Information
State-Based Approach
- Nondeterministic Automata
Event-Based Approach
Hybrid State-Event Methods
4/22
5Declarative Modeling
General Information
What is it?
- Notions of states and events
When is it used?
- Time divided into discrete parts
- Space divided into discrete parts
Where is it used?
5/22
6Declarative Modeling
Declarative Modeling
General Information
State-Based Approach
- Nondeterministic Automata
Event-Based Approach
Hybrid State-Event Methods
6/22
7Declarative Modeling
State-Based Approach
Deterministic Automata
Properties
- Only one possibility to react on input
Features
- Easiely understandable models
Usage
7/22
8Declarative Modeling
State-Based Approach
Deterministic Automata
Example
Start transaction
Waiting
Transmitting
Start calculation
Wait
Start transaction
Calculating
Transmitting
Finite state machine of a server process
8/22
9Declarative Modeling
State-Based Approach
Nondeterministic Automata
Properties
- Extension of deterministic automata
- Transitions are labeled with probability values
Features
Usage
9/22
10Declarative Modeling
State-Based Approach
Nondeterministic Automata
Example
0,8
0,3
0,5
0,5
0,3
0,2
0,7
0,6
0,1
Markov model of a bug scrabbling trough waypoints
10/22
11Declarative Modeling
Declarative Modeling
General Information
State-Based Approach
- Nondeterministic Automata
Event-Based Approach
Hybrid State-Event Methods
11/22
12Declarative Modeling
Event-Based Approach
Finite Event Automata
Properties
- Resembles finite state automata
- Transitions are labeled with time tags
Features
- Easy understandable models
Usage
- Same areas as finite state automata
12/22
13Declarative Modeling
Event-Based Approach
Finite Event Automata
Example
5
Start transaction
Start calculation
25
500
5
Start transaction
Transmission finished
13/22
14Declarative Modeling
Event-Based Approach
Keyframe Animation
Properties
- Models the boundaries of a system
- Models look like film stripes
Features
- Motions can be modeled ostensible
Usage
14/22
15Declarative Modeling
Event-Based Approach
Keyframe Animation
Example
Keyframe animation of a simple screensaver
15/22
16Declarative Modeling
Declarative Modeling
General Information
State-Based Approach
- Nondeterministic Automata
Event-Based Approach
Hybrid State-Event Methods
16/22
17Declarative Modeling
Hybrid State-Event Methods
State-Event Graphs
Properties
- Can be described through message sequence charts
- Several processes are modeled
Features
- Ostensible modeling of interaction
Usage
- Physics (Space-time diagrams)
17/22
18Declarative Modeling
Hybrid State-Event Methods
State-Event Graphs
Example
P1
P2
C
Prepare
Prepare
Yes
Yes
Commit
Commit
Ack
Ack
18/22
19Declarative Modeling
Hybrid State-Event Methods
Petri Networks
Properties
- Transitions are dependent on places
Features
- Modeling of dynamic or concurrent behavior
Usage
- Modeling of manufacturing
- Human task coordination (Dining philosophers)
19/22
20Declarative Modeling
Hybrid State-Event Methods
Petri Networks
Example
Server
Free
Busy
Client1
Client2
Petri network of a client-server process
20/22
21Declarative Modeling
Conclusion
- Many different approaches for Declarative
Modeling
- Even more modeling techniques
- Used in many areas from liguistics to computer
science
21/22
22Declarative Modeling
Questions
? ? ?
22/22