Definition: Model
When is a model minimal?
Requ. for Models: Hierachy
Requ. for Models: Component-Based Design
Req. for Models: Timing (examples)
Req. for Models: Support for reactive Systems
Name 5-10 Requirements for Models
Define “Models of Computation”
Components + computation + communication
What can/should be contained in a dependance graph?
Communication Models (examples (pro, cons?))
Organization of Computation (examples)
Name and explain three early design phase modeling approaches.
Moore/Mealy automata: Output and Stateequation? For the same programm, does a Moore or a Mealy Machine need more states?
Input X, Output Y, internal State Z, next State Z*
Moore: Y=f(Z) and Z=f(X, Z)
Mealy: Y=f(X, Z) and Z=f(X, Z)
Moore and Mealy automata are finite state machines (FSMs). Both are capable of achieving the same programms, whereas Moore (“more”) needs generally more states than a Mealy machine.
What is stateCharts and why use it instead of Moore/Mealy
StateCharts is a better way of describing communication in finite state machines using hierachy. Moore/Mealy are not useful for complex systems.
StateChart Definitions:
StateCharts:
How is concurrency realised in StateCharts?
StateCharts: Timer
timers can be realised by a box with some “zigzag” on top. In this box the amount of waitingtime is specified.
From the timer state more than on arrow can continue depending on the things happening during timer (i.e. timout, lift off phone, closed door etc.)
StateCharts: Edge Labels
from one state to another the edges are labeled:
event [condition] / reaction
Events: exist only until next evaluation of model (internal or external)
Conditions: refer to values of variables
Reactions: assignment of variable or creation of event
Example: service-off [not in Lproc] / service :=0
Describe the three steps of StateCharts Simulation Phases. Is this determinate behavior?
The seperation into phase 2 and 3 enables determinate (unique) behavior
StateCharts: What is meant by “Broadcast Mechanism”?
Values of variables are visible to all parts of the StateChart model!
.. new variables become effective after phase 3 of current step and are obtained by all parts of the model in the next step
StateCharts models consist of a sequence of status and step pairs. What is happening in each of them?
Status: Values of all variable + set of events + current time
Step: Execution of three phases
Name an application where StateCharts is appropriate and not appropriate to use
Appropriate: local control systems
Not appropriate: applications for which updating variables take some time
Definition: “Determinate System”
(Kahn 1974) calls a system determinate if we will always obtain the same result for a fixed set (and timing) of inputs
StateCharts: Pros and cons
Pros:
Cons: