+ All Categories
Home > Documents >  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and...

 · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and...

Date post: 23-Jun-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
46
TUM INSTITUT F ¨ UR INFORMATIK Modular and Visual Specification of Hybrid Systems – An Introduction to HyCharts – Radu Grosu and Thomas Stauner TUM-I9801 Dezember 98 TECHNISCHE UNIVERSIT ¨ ATM ¨ UNCHEN
Transcript
Page 1:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

T U MI N S T I T U T F U R I N F O R M A T I K

Modular and Visual Specification of HybridSystems

– An Introduction to HyCharts –

Radu Grosu and Thomas Stauner

ABCDEFGHIJKLMNO

TUM-I9801Dezember 98

T E C H N I S C H E U N I V E R S I TA T M U N C H E N

Page 2:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

TUM-INFO-12-I9801-80/1.-FIAlle Rechte vorbehaltenNachdruck auch auszugsweise verboten

c�1998

Druck: Institut fur Informatik derTechnischen Universitat Munchen

Page 3:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Modular and Visual Speci�cation of Hybrid

Systems

� An Introduction to HyCharts �

Radu Grosu and Thomas Stauner�

Institut f�ur Informatik� Technische Universit�at M�unchen

D������ M�unchen� Germany

http���www��informatik�tu�muenchen�de�

Email� fgrosu�staunerg�informatik�tu�muenchen�de

�The second author was supported with funds of the Deutsche Forschungsgemein�schaft under reference number Br ������� within the priority program Design and

design methodology of embedded systems�

Page 4:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...
Page 5:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Abstract

Visual description techniques are particularly important for the design of hybridsystems because speci�cations of such systems usually have to be discussed be�tween engineers from a number of di�erent disciplines Modularity is vital forhybrid systems not only because it allows to handle large systems� but also be�cause hybrid systems are naturally decomposed into the system itself and itsenvironment

Based on two di�erent interpretations for hierarchic graphs and on a clearhybrid computation model� we develop HyCharts HyCharts consist of two mod�ular visual formalisms� one for the speci�cation of the architecture and one forthe speci�cation of the behavior of hybrid systems The operators on hierarchicgraphs enable us to give a surprisingly simple denotational semantics for manyconcepts known from statechart�like formalisms Due to a very general composi�tion operator� HyCharts can easily be composed with description techniques fromother engineering disciplines Such heterogeneous system speci�cations seem tobe particularly appropriate for hybrid systems because of their interdisciplinarycharacter

Page 6:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...
Page 7:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Contents

� Introduction �

An Example

� Related Work �

� Overview �

� Hierarchic Graphs �

� Syntax

� Operators on Nodes

�� Connectors �

�� An Example �

�� The Additive Model �

�� Arrows �

��� Nodes and Operators �

�� The Multiplicative Model �

�� Arrows �

��� Nodes and Operators �

� The Hybrid Computation Model ��

� General Idea

�� The Combinational Part �

�� The Analog Part �

�� The Component ��

�� A Note on Semantics ��

� System Architecture Speci�cation � HyACharts ��

� Component Speci�cation � HySCharts ��

� The Combinational Part ��

�� The Analog Part �

Page 8:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

� Relation to Other Formalisms �� Heterogeneous Component Speci�cation �� � Timed Automata �� � A Typical Hybrid Component ��

� Conclusion ��

Page 9:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Chapter �

Introduction

Hybrid systems have been a very active area of research over the past few yearsand a number of speci�cation techniques have been developed for such systemsWhile they are all well suited for closed systems� the search for hybrid descriptiontechniques for open systems is relatively new

For open systems � as well as for any large system � modularity is essential Itis not only a means for decomposing a speci�cation into manageable small parts�but also a prerequisite for reasoning about the parts individually� without havingto consider the interior of other parts Thus� it greatly facilitates the designprocess and can help to push the limits of veri�cation tools� like model�checkers�further

With a collection of operators on hierarchic graphs as our tool�set� we followthe ideas in �GSB��� and de�ne a simple and powerful computation model for hy�brid systems Based on this model we introduce HyCharts� which consist of twodi�erent interpretations of hierarchic graphs Under one interpretation the graphsare called HySCharts under the other one they are called HyACharts HySChartsare a visual representation of hybrid� hierarchic state transition diagrams Hy�ACharts are a visual representation of hybrid data��ow graphs �or architecturegraphs� and allow the designer to compose hybrid components in a modular wayThe behavior of these components can be described by using HySCharts or byany technique from system theory that can be given a semantics in terms of denseinput�output relations This includes di�erential equations Dense input�outputrelations are a relational extension of hybrid Focus �MS��� Bro���

��� An Example

The following example illustrates the kinds of systems we target at It will beused throughout the paper to demonstrate the use of HyCharts

Example � An electronic height control system EHC� The purpose ofthis system� which was originally proposed by BMW� is to control the chassis level

Page 10:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

of an automobile by a pneumatic suspension The abstract model of this system�which considers only one wheel� was �rst presented in �SMF��� It basically worksas follows�

Whenever the chassis level is below a certain lower bound� a compressor isused to increase it If the level is too high� air is blown o� by opening an escapevalve The chassis level sHeight is measured by sensors and �ltered to eliminatenoise The �ltered value fHeight is read periodically by the controller � whichoperates the compressor and the escape valve and resets the �lter when necessaryA further sensor� inBend � tells the controller whether the car is going through acurve

The diagram in Figure � left� depicts the architecture of the EHC and itsinterconnection to the environment The environment� shaded in grey in the�gure� will not be regarded further in this paper Instead we concentrate onthe open system consisting of the �lter� the controller and a delay element thatensures that the feed�back is well�de�ned The escape valve and the compressorare modeled within the controller

[[

[

[

[

Df

)

[)

[)EHC

FilterfHeight

resetdReset

Control

ENVaHeight

inBend

sHeight

aHeight

fHeight

dReset

sHeight

time

[)

t"t t’

Figure � The EHC� Architecture and a typical evolution

Diagrams like the one in Figure � left� are called HyACharts Each com�ponent of such a chart can be de�ned again by a HyAChart or by a HySChartor some other compatible formalism The components only interact via clearlyde�ned interfaces� namely channels� which results in a modular speci�cation tech�nique

The behavior of a component is characterized� as intuitively shown in Figure� right� by periods where the values on the channels change smoothly and bytime instances at which there are discontinuities In our approach the smoothperiods result from the analog parts of the components The discontinuities arecaused by their combinational �or discrete� parts

�Note that periodical sampling can be avoided in a hybrid model� However� it was used inthe BMW implementation and it allows us to expose various features of our formalism� likeentry�exit actions and timeouts�

Page 11:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

We specify the behavior of both the combinational and the analog part of acomponent within a single HySChart� ie� by a hybrid� hierarchic state transitiondiagram� with nodes marked by activities and transitions marked by actions Thetransitions de�ne the discontinuities� ie� the instantaneous actions performed bythe combinational part The activities de�ne the smooth periods� ie� the timeconsuming behavior of the analog part while the combinational part is idle As

i2di2u

reset

n2b b2n

Control

b2n

reset

n2b

outTol

u2d

d2ud2i

reset

d2d

outTolu2i

i2d

i2ui2i

u2u

w_inct_o

t_ot_o

inTol

up down

a_const

a_inc a_deca_const

outBend

outBend

inBend

Figure �� The EHC�s Control component

an example� Figure � shows the HySChart for the EHC�s Control componentIt consists of three hierarchic levels Figure �� left� depicts the highest levelFigure �� top right� re�nes the state outBend and Figure �� bottom right�further re�nes the state outTol The states� transitions and activities �written initalics in the �gure� are explained in Chapter � �

��� Related Work

The basic motivation for this work were experiences we obtained when modelingthe EHC case study outlined above with hybrid automata �SMF��� A basicresult of the case study was that the lack of modularity of hybrid automatacomplicates speci�cation and analysis Furthermore� the lack of hierarchic statesturned out to be inconvenient for speci�cation In this work� we develop a formal�modular description technique for hybrid systems that is associated with a visualformalism and incorporates advanced state machine features such as hierarchicstates and preemption In contrast to hybrid automata �ACH����� HyCharts arefully modular and suitable for open systems

The rather new hybrid modules from Alur and Henzinger �AH��� are modular�but their utility su�ers from the fact that it is not obvious how to model feedback

Page 12:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

loops For theoretical reasons� loops pose a problem in our approach� too Wesolve it by explicitly allowing feedback loops� as long as they introduce a delayDemanding a delay is not unrealistic� as signals cannot be transmitted at in�nitespeed

Another modular model� hybrid I�O automata� is presented in �LSVW� �While this model is promising from the theoretical point of view� we think ithas some de�cits in practice In particular� there is no graphical representationfor hybrid I�O automata yet� there is no hierarchy concept for them and �nally�there is no visual formalism for the speci�cation of the architecture of a composedsystem The same applies for the hybrid modules mentioned above From thesystems engineering point of view our approach is therefore more convenient

A �rst approach towards a hybrid version of statecharts can be found in�KP��� The operational semantics given there� however� does not allow inter�level transitions and hierarchic speci�cation of continuous activities Therefore�this approach does not fully support hierarchy� unlike HyCharts� which permitboth

Except for HyCharts all the models mentioned above are based on some kindof trace semantics in which continuous trajectories are pasted together at dis�crete time instances At these instances� the preceding trajectory� the succeedingtrajectory and possibly some intermediate discrete actions determine the valuesfor the variables in the model As the end point of the preceding trajectory�the values determined by intermediate discrete actions and the start point of thesucceeding trajectory need not be equal we get situations in which one variable isassigned a sequence of values at the same physical time instant This means thatsuch a trace is not isomorphic to a function of time In our opinion this makesit di�cult to combine the above models with models for continuous systems� asthey evolved in the engineering disciplines� di�cult A decision must be madethat determines which value of the variable is to be �exported�� ie visible tothe outside world at a physical time instant For hybrid automata� for instance�intermediate values in a sequence of discrete actions can cause further actions inparallel components Thus� such a decision is hardly possible For HyCharts weuse a simpler form of traces Here� any variable has exactly one value at eachtime instant� the variable evaluation is a function of time

Commercial products for the design of embedded systems� like StateFlow�TMI���� take a di�erent approach to specifying hybrid systems In this approachthe system needs to be partitioned into purely discrete and purely continuouscomponents before speci�cation can begin While this method may be appropri�ate for many systems we think it enforces a too early partitioning into hardwareand software components and is highly inconvenient for specifying componentsthat are hybrid themselves� like some environment models� which� for example�contain phase transitions A formal model that uses a speci�cation approach sim�ilar to StateFlow can be found in �EH� � Interestingly there are some parallelsbetween our hybrid machine model �Chapter �� and the model presented there

Page 13:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

To end this journey through the literature we want to mention that HyChartslook largely similar to the description techniques used in the software engineeringmethod for real�time object�oriented systems ROOM �SGW��� and may thereforebe seen as a hybrid extension of them

��� Overview

The rest of the paper is organized as follows In Chapter � we present two abstractinterpretations of hierarchic graphs These interpretations provide the infrastruc�ture for de�ning a surprisingly simple denotational semantics for the key conceptsof statecharts �Har��� o�ered in HyCharts� like hierarchy and preemption Theyalso are the foundation for the denotational semantics of our hybrid computa�tion model� which is introduced in Chapter � Following the ideas developed inthis model� HyCharts are de�ned in Chapters � and � as a multiplicative andan additive interpretation of hierarchic graphs� respectively Both diagram kindsare introduced in an intuitive way by using the example above In Chapter webrie�y discuss how other techniques for component speci�cation can be integratedinto our approach and relate HySCharts to timed automata Furthermore� wediscuss the HyChart speci�cation of the �lter component from our example sys�tem and its importance for hybrid modeling Finally� in Chapter � we summarizeour results

Page 14:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Chapter �

Hierarchic Graphs

This chapter �rst introduces an algebra of hierarchic graphs �Section �� Thentwo models� an additive and a multiplicative model� for this algebra are givenThe additive model interprets the operators in a way that results in control��owgraphs �Section ���� the multiplicative model interprets them in a way that yieldsdata��ow graphs �Section ���

��� Syntax

A hierarchic graph consists of a set of nodes connected by a set of arcs� Foreach node� the incoming and the outgoing arcs de�ne the node�s interface� ie itstype Let A and B be the input and the output interfaces of a node n Then thecorresponding textual notation for n is n � A� B �Fig �� Interpreting A andB as sets �or types� n may be regarded as a mapping from elements of A intoelements of B

An

B

Figure �� A node n � A� B

����� Operators on Nodes

In order to obtain graphs� we put nodes next to one another and connect themby using the following operators on relations� sequential composition� visual at�tachment and feedback Their respective visual representation is given in Figure��

Sequential composition� One basic way to connect two nodes is by sequentialcomposition� ie� as shown in Figure ��� left� by connecting the output of one

Page 15:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

A B Cn2

B2

n2

Visual attachment FeedbackSequential composition

n1

A2A1

1B

n1

B

A

C

n

Figure ��� The composition operators

node to the input of the other node� if they have the same type Textually wedenote this operator by the semicolon � Given n� � A � B and n� � B � C wede�ne n��n� to be of type n��n� � A� C

Regarding the nodes as computation units� Figure ��� left� says that theoutput produced by n� is directed to the input of n� The connection between n�

and n� as well as the units n� and n� themselves� are internal to n��n� In otherwords� n��n� does not only de�ne a connection relation but also a containmentrelation

Visual attachment� By visual attachment we mean that nodes and corre�sponding arrows are put one near the other� as shown in Figure ��� middle Toobtain a textual representation for visual attachment� we need an attachmentoperator both on arrows and on nodes We denote this operator by � Giventwo arrows A and B their visual attachment is expressed by A � B Given twonodes n� � A� � B� and n� � A� � B� their visual attachment is expressed asn��n� � A��A� � B��B� Visual attachment also de�nes a containment relationWe say that n� and n� are contained in n� � n�

In order to deal with hiding it is convenient to explicitly introduce an arrowE denoting the absence of any information This arrow is neutral for attachment�ie A � E � E � A � A� because visually attaching nothing does not change theoriginal information

Feedback� Sequential composition allows us to connect the nodes of a graphin a causal way However� using only sequential composition to connect nodesis not expressive enough because it cannot deal with loops or with bidirectionalcommunication We therefore introduce a feedback operator� as shown in Figure��� right It allows us to connect the rightmost output of a node to the rightmostinput of the same node� if they have the same type Given n � A�C � B �C wede�ne n �CA�B� A� B Similar to sequential composition and visual attachment�feedback also introduces a containment relationship We say that n and thefeedback arrow are contained in n �CA�B

Nodes and arrows that are not built up from other nodes or arrows using theabove operators are called primitive

Page 16:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

����� Connectors�

Beside operators on nodes� we also need some operators on arcs �or prede�nednodes�� which we call connectors� We consider the following connectors� identity�identi�cation� rami�cation and transposition� Their visual representation is givenin Figure ��

A

A A A

A

identity identification ramification transposition

A

A

A A B

B A

Figure ��� The connectors

Identity� The identity connector IA simply copies its input to the output Ithas type A� A

Identi�cation� The identi�cation connector �kA joins k inputs together Its

type is Ak � A� where Ak � A � � � � � A stands for the k�fold attachment of AFor k � � we de�ne A� � E� ie the neutral arrow In Figure �� the binary caseis depicted

Rami�cation� The rami�cation connector �Ak copies the input information on

k outputs Hence �Ak has type A� Ak Figure �� shows the binary case

Transposition� Finally the transposition connector AXB exchanges the inputs

Its type is A � B � B � ATo be a precise formalization of our intuitive understanding of graphs� the

above abstract operators and connectors have to satisfy a set of laws� which in�tuitively express our visual understanding of graphs These laws correspond tostrict� symmetric� monoidal categories with feedback and bimonoid objects� seeeg �Ste��� �GSB��� shows that the additive and the multiplicative interpre�tations of the operators and connectors are particularly relevant for computerscience

����� An Example

As an example for a hierarchic graph and its corresponding textual respresenta�tion we consider the graph in Figure ��� left Using the above basic operatorsand connectors it de�nes a derived composition operator� the symmetric feed�back If n� � A� � A � B� � B and n� � B � A� � A � B� then n��� n� has typeA��A� � B��B� Its simpli�ed visual representation is given in Figure ��� rightThe textual respresentation corresponds one to one to the visual representationin Figure ��� left�

n��� n�����IA�� A�x

A�B���n� � n����IB�� B�A

xB����IB��B�

� BxA���B� ��

A�

Page 17:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

B A

B

n1 n2

B1

B1

A1

A1 2 A

A B2

2

A2

BA

A

B

B

A

A B

n1 n2

A1 A2

B2B1

B

Figure ��� The symmetric feedback

��� The Additive Model

The additive model is a model for hierarchic control��ow graphs The intuitionbehind these graphs is as follows At any moment of time� the control residesin exactly one node The node receives the control on one of its entry pointsand gives the control back on one of its exit points Entry and exit point aredisjoint� ie control can only be received or given by one of them The arcsof the graph forward the control to the other nodes of the graph The intendeddisjointness of nodes� entry�exit points and branches of the connectors is obtainedby interpreting visual attachment additively as disjoint sum �see below� and byde�ning the other operators and connectors consistently with this interpretation

����� Arrows

The control can be understood as a pair �k� s� consisting of the control�state�or program counter� k � N and the data�state s � S As a consequence� weconsider given a set S� the data�state space Each primitive arrow in a �ow�graph is interpreted as this set The control�state space N is not an arrow� butit appears in the de�nition of visual attachment We take the empty set as theinterpretation of the neutral arrow E Given the data�state space S we de�nethe program�state space n�S as follows�

��S � �� �S � S� n�S � f�k� s� j k � n � s � Sg� if n �

Now the disjoint sum of program�state spaces is de�ned by the following equation�m�S � n�S � �m � n��S From the left and right summands m�S and n�S thereare two canonical functions into the sum �m � n��S� called the left injection l�and the right injection r� They inject elements from the summands into the sumsuch that one can recover their original source Their de�nition is as follows�

l� � m�S � �m� n��S� l��k� s� � �k� s�r� � n�S � �m � n��S� r��k� s� � �k �m� s�

We interpret the visual attachment operator in control��ow graphs by the disjoint�sum operator It is easy to see that the sum is associative and the neutral element

Page 18:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

is ��S In the following we will often merely refer to the program�state as thestate

����� Nodes and Operators

A node n � A � B of a control��ow graph is interpreted as a relation n �I k�S� l�S between the current input� the current control and the nextcontrol Upon receiving the current control state� it determines the next controlstate� depending on the current input In addition� we consider an externalinput here� because the sequential machines de�ned by the relations are allowedto communicate with their environment They may receive inputs and produceoutputs The output space simply is a projection of the data�state space Wewrite I to denote the input space The de�nition of the operators below ensuresthat all nodes receive the same input Therefore� by convention no arrow isdrawn to denote the external input I to a node Note that in order to simplifynotation� we use the same name for the node� which is a syntactic entity� andits associated relation� which is a semantic entity In the following we denotearbitrary program�state spaces x � S and xi � S over data�state space S by X andXi for x � fa� b� cg

The Node Operators

Sequential composition� The sequential composition of two nodes

n� �I A� B� n� �I B� C

yields� a new node n� � n�� which is de�ned as expected�

n� � n� �I A� C

n� � n� � f�x� a� c� j �b � B� �x� a� b� � n� � �x� b� c� � n�g

Additive composition� The additive composition of two nodes

n� �I A�� B�� n� �I A�� B�

yields� as in statecharts� a new node n� � n�� such that control resides either inn� or in n� Note that the interface of the sum re�ects this fact

n� � n� �I �A� � A��� �B� �B��

n� � n� � f�x� l�a� l�b� j �x� a� b� � n�g � f�x� r�a� r�b� j �x� a� b� � n�g

The visual notation of n� � n� is given in Figure ��� left The meaning of�n� � n���x� l�a� is intuitively shown in Figure ��� right Receiving the tuple�x� l�a�� the sum uses the control information l to �demultiplex� the input andselect the corresponding relation n�� this relation is then applied to �x� a� to

Page 19:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

n2

l.b

l.a

n121n

l.a r.a

r.b

n

l.b

21

1 2

Figure ��� The additive interpretation

obtain the next state b� �nally� the output of the relation is �multiplexed� to l�b

Additive feedback� The additive feedback is more tricky and it allows theconstruction of loops As in programming� feedback has to be used with care inorder to ensure termination Given a relation

n �I �A � C�� �B � C�

we de�ne the relation n�C� as follows� The control is received on A and it is eithergiven directly on B or after an arbitrary number of times in which it loops alongC Formally�

n�C� �I A� B

n�C� � nl�l � nl�r � n�r�r � nr�l

where n� is the arbitrary but �nite iteration of n and ni�j is de�ned for i� j � fl� rgas below�

ni�j � f�x� s� s�� j �x� i�s� j�s�� � ng

In this de�nition l and r are the injections corresponding to A and C for theinput and to B and C for the output

The Connectors

Identity� The identity IA is de�ned as expected�

IA �I A� A� IA � f�x� a� a� j a � A � x � Ig

Additive identi�cation� The additive identi�cation k� A forgets the entrypoint on which it gets the control�

k� A �I k A� A�

k� A � f�x� i�a� a� j � � i � k � a � A � x � Ig

where k A � k �a � S� � �k � a� � S

Page 20:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Additive rami�cation� The additive rami�cation A �k gives the control onany of its exit points�

A �k �I A� k A�

A �k � f�x� a� i�a� j � � i � k � a � A � x � Ig

Additive transposition� The additive transposition BA�n commutes the entry

point information�

BA�n �I �A�B�� B � A�

BA�n � f�x� l�a� r�a� j a � A � x � Ig � f�x� r�b� l�b� j b � B � x � Ig

This means that control is passed on along the right exit point if it was receivedon the left entry point and vice versa

��� The Multiplicative Model

The multiplicative model is a model for hierarchic data��ow graphs The intuitionbehind these graphs is as follows At any moment of time� all nodes of the graphare active and computing the output data based on the input data A nodereceives the input data along a tuple of input channels and sends the computeddata along a tuple of output channels The arcs of the graph� ie� the channels�forward the data to the other nodes in the graph The intended parallelismof nodes� input�output channels and branches of the connectors is obtained byinterpreting the visual attachment � multiplicatively by the product and byde�ning the other operators and connectors consistently with this interpretation

����� Arrows

We assume given a set of channel types D � fDi j i � Ng� each de�ning the setof messages which is allowed to �ow along a channel The input and the outputinterface type of a component� respectively� is then a product A � A�� � �An

of channel types Ai � D� de�ned as follows�

A � f��g if n � �� A � A� if n � �A � f�x�� � � � � xn� j x� � A� � � � � � xn � Ang if n �

Given arbitrary interface types A � A� � � �Am and B � B� � � �Bn Weextend the above product de�nition as follows�

Af��g � f��gA � AAB � A� � � � Am B� � � � Bn

Page 21:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Hence� the empty interface f��g is the neutral arrow E The left and rightprojections p� and q� are given below�

p� � A�� � �AmB�� � �Bn � A�� � �Am�p��a�� � � �� am� b�� � � �� bn� � �a�� � � �� am�

q� � A�� � �AmB�� � �Bn � B�� � �Bn�q��a�� � � �� am� b�� � � �� bn� � �b�� � � �� bn�

The projections uniquely de�ne a pairing function ��� �� such that for any C�f � �f�� � � �� fm� � C � A and g � �g�� � � �� gn� � C � B it holds that� �f� g� ��f�� � � �� fm� g�� � � �� gn� By de�nition� the product is associative and has as neutralelement E The unique existence of projections is characteristic for data��owgraphs

In data��ow graphs the main concern is the data �ow To de�ne and analyzethis �ow� we need to observe the information exchanged along each channel overtime In a hybrid system this �ow may be continuous �think of analog devices��so we assume that time increases continuously� ie it is dense� and take the non�negative real numbers R� as abstract time axis In this case� the data exchangedalong a channel with type A over time de�nes a mapping a � AR� Motivatedby our hybrid computation model �Chapter �� we impose some restrictions onthis mapping in the next chapter We call such a restricted mapping a densecommunication history and its corresponding type a dense communication historytype The latter ones are used to interpret the primitive arrows of data��owgraphs

A reasonable assumption which leads to a model with very nice properties� isthat data��ows are time synchronous� ie� that time �ows in the same way for eachchannel and each component In this case� the history �and its associated pre�x�ordering� of a component�s interface �A�� � �Am�

R� is equal to the product

AR�� � � �AR�m of the histories of its channels

����� Nodes and Operators

The behavior of a component can be completely described by an input�outputrelation� ie� by a relation between the histories of its input channels and thehistories of its output channels The relation must be total in the input historiesWe assume that the relations are de�ned such that the data occurring in thehistories of the output channels at time t only depends on the input historyreceived up to �and including� t Formally� for all a�� a� and t�

a�����t� � a�����t� � n�a������t� � n�a������t�

where by a�� we denote the restriction of a to the time interval � Clearly� eachrealizable component behaves in this way We call these relations time guarded�

Page 22:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

They interpret the nodes of the data��ow graphs To simplify notation� we usethe same name �or symbol� for a node �or operator� and its associated relation �orrelational operator� Note� however� that the names and symbols are syntacticentities whereas the relations and relational operators are semantic entities

The Node Operators

Sequential composition� The interpretation of sequential composition is theusual sequential composition of relations It allows passing of the data from onecomponent to another component in a linear way Given two relations�

n� AR� BR�� n� BR� CR�

we de�ne their sequential composition n� � n� as follows�

n� � n� AR� CR�

n� � n� � f�a� c� j �b � BR�� �a� b� � n� � �b� c� � n�g

Parallel composition� As in statecharts� the parallel composition of two com�ponents yields a new component such that both constituents are active simul�taneously� ie each constituent has its own control� described for example by acontrol��ow graph The interface of the product has to re�ect this fact Giventwo relations

n� A�R� B�

R�� n� A�R� B�

R�

we de�ne their product n� n� as follows�

n� n� �A�R� A�

R�� �B�R� B�

R��

n� n� � f��a�� a��� �b�� b��� j �a�� b�� � n� � �a�� b�� � n�g

The visual notation for n� n� is given in Figure �

Y Y21

Multiplicative interpretation

n21

X1 2

n

X

Figure � � The multiplicative interpretation

Feedback� The multiplicative feedback allows the passing of the output of acomponent back to its input In the next chapter we will use this construct toadd the memory to our components Given a relation�

Page 23:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

n �AR� CR�� �BR� CR��

we de�ne the new relation n�C� as below�

n�C� AR� BR�

n�C� � f�a� b� j �c� �b� c� � n�a� c�g

n�C� is time guarded and guaranteed to be total in the input channel histories AR�

if n is time guarded and its output on channel C up to time t � � is completelydetermined by its input up to time t on input channel C and by the input on theother input channels up to time t� � �Bro��� Ie its output on C reacts with adelay � � � to input channel C We also say that n is strongly time guarded onfeedback channel C

The Connectors

Identity� We interpret the identity connector IA � A � A by the identity

relation IA which simply copies the input to the output�

IA AR� AR�� IA � f�a� a� j a � AR�g

Multiplicative identi�cation� The identi�cation connectors ��kA � Ak � A

are interpreted by the multiplicative identi�cation relations ��kA They allow to

identify k copies of elements a � AR��

��kA �Ak�R� AR�� ��

kA � f�ak� a� j � � k � a � AR�g

Note that �Ak�R� � �AR��k� as we are in a time synchronous setting

Multiplicative rami�cation� The rami�cation connectors ��Ak � A � Ak areinterpreted by the multiplicative rami�cation relations ��Ak They allow to makek copies of the input a�

��Ak AR� �Ak�R�� ��Ak � f�a� ak� j � � k � a � AR�g

Multiplicative transposition� The transposition connectors AXB � A�B

�B�A are interpreted by the multiplicative transposition relations AXB which

allow to commute the position of the elements in the input tuple

AXB �AR� BR�� �BR� AR���

AXB � f��a� b�� �b� a�� j �a� b� � AR� BR�g

Page 24:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Chapter �

The Hybrid Computation Model

We start this section by explaining informally how our hybrid computation modelworks After that the model�s constituents are introduced formally

��� General Idea

We model a hybrid system by a network of autonomous components that com�municate in a time synchronous way Time synchrony is achieved by letting time�ow uniformly for all components

Each component is modeled by a hybrid machine� as shown in Figure �� leftThis machine consists of �ve parts� a combinational �or discrete� part �Com�� ananalog �or continuous� part �Ana�� a feedback loop� an in�nitesimal delay �Lims��and a projection �Out� The feedback models the state of the machine Together

1Act

s

+

Lim

.σn

n.τ

Out+

Com

... Actn

Ana

1.σ

1.τ

3oo4

1o 2o

κ3 = 3

0

1

time

2

1t t2 t3

Ana

ο

κ.σ

κ.τ

ι

ιι

κ2 = 5κ1 = 2

Figure �� The hybrid�machine computation model

with Lims it allows the component to remember at each moment of time t theinput received and the output produced �just before� t

Page 25:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

The combinational part is concerned with the control of the analog part andhas no memory It instantaneously and nondeterministically maps the currentinput and the fed back state to the next state The next state is used by theanalog part to select an activity among a set of activities �or execution modes�and it is the starting state for this activity If the combinational part passes thefed back state without modi�cation� we say that it is idle� The combinationalpart can only select a new next state �di�erent from the fed back state� at distinctpoints in time During the intervals between these time instances it is idle andthe selection of the corresponding activity is stable for that interval� provided theinput does not change discretely during the interval

The analog part describes the input�output behavior of the component when�ever the combinational part is idle Hence� it adds to the component the temporaldimension It may select a new activity whenever there is a discrete change inthe input it receives from the environment or the combinational part

Example � Figure �� right� shows the exemplary behavior of a componentThe shaded boxes �i indicate the time periods where the combinational partidles in node i At time t� the discrete move of the environment triggers a dis�crete move of the combinational part According to the new next state receivedfrom the combinational part� the analog part selects a new activity The activ�ity�s start value at time t� is as determined by the combinational part At time t�there is a discrete move of the environment� but the combinational part remainsidle The analog part chooses a new trajectory for the variables whose start valueis the analog part�s output just before t�� because this is what it receives fromthe combinational part at time t� Thus� the output has a higher order discon�tinuity here At time t� the environment does not perform a discrete move� butthe combinational part does� eg because some threshold is reached Again theanalog part selects a new activity� which begins with the start value determinedby the combinational part During the intervals ��� t��� �t�� t�� and �t���� thecombinational part is idle �

Please note the structural similarity of our hybrid machine and discrete con�trollers of continuous systems in Control Theory There we also have a discreteand a continuous part that are interconnected with feedback

Feedback and state� Since the input received and the output produced maychange abruptly at any time t� as shown in Figure �� right� we consider that thestate of the component at moment t is the limit limx�t��x� of all the outputs��x� produced by the analog part when x approaches t In other words� thefeedback loop reproduces the analog part�s output with an in�nitesimal inertiaWe say that the output is latched The in�nitesimal inertia is realized by theLims part of the hybrid machine �Fig �� left� Its de�nition is�

Lims����t�def�

�s if t � �limx�t��x� if t � �

Page 26:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

where s is the initial state of the hybrid machine

The data�state of the machine consists of a mapping of latched �or controlled�variable names to values of corresponding type Let S denote the set of controlledvariable names with associated domains fv j v � Sg Then the set of all possibledata�states is given by S �

Qv�S v

The set of controlled variable names can be split in two disjoint sets� a setP of private variable names and a set O of output �or interface� variable namesWe write SP for

Qv�P v and SO for

Qv�O v Clearly� S � SP SO The latched

inputs are a subset of P

The input is a mapping of input variable names to values of correspondingtype Let I denote the set of input variable names with associated domainsfv j v � Ig Then the set of all possible inputs is given by I �

Qv�I v

��� The Combinational Part

The combinational part is a relation from the current inputs and the latched stateto the next state� formally�

Com � �I n � S� � P�n � S�

where n � S is the program�state space �see Section ��� and P�X� � fY X jY �� fgg The n is the number of leaf nodes in the hierarchic graph that de�nesCom �see Section ��� The computation of Com takes no time

An important property of the relation de�ning the combinational part is thatit is de�ned for all states and inputs� ie� it is total To emphasize totality�we wrote it in a functional style Furthermore� we want that the combinationalpart passes the next state to the analog part only if it �the combination part�cannot proceed further In other words� if s� � Com�i� s� is the next state� thenCom�i� s�� � fs�g� ie� no new state s� �� s� can be computed starting in s� withinput i We say that Com is idle for i and s� Finally� the set E I n � Sof inputs and states for which Com is not idle must be topologically closed�

Together with the preceding property this guarantees that the extension of Comover time can only make discrete moves at distinct points in time This factis needed in the following to ensure that the semantics of a hybrid machine iswell�de�ned

�Technically the output of Com is an element of a disjoint sum of some structure with n

summands S� Due to associativity of the disjoint some we abbreviate this as n � S��As topology we use the Tychono� topology on I � n � S which is induced by using the

discrete topologies on the variable domains di�erent from R and the Euclidean topology on Rfor the variable domains that are equal to R �Eng����

Page 27:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��� The Analog Part

Whenever the combinational part idles� the analog part performs an activity Wedescribe an activity by a relation Act with type�

Act � �I S�Rc� � P�SRc��

For any set M � the set MRc� stands for the set of functions from the non�negativereal numbers R� to M that are continuous and piecewise smooth� We say thata function f � R��M is piecewise smooth i� every �nite interval on the non�negative real line R� can be partitioned into �nitely many left closed and rightopen intervals such that on each interval f is in�nitely di�erentiable �ie� f is inC�� for M � R or f is constant for M �� R In�nite di�erentiability is requiredfor convenience It allows us to assume that all di�erentials of f are well de�nedA tuple of functions is in�nitely smooth i� all its components are We also callMRc� the set of �ows over M To model analog behavior in a �well behaved�way� activities must be total and time guarded Furthermore� we demand thatthe activities do not depend on absolute time �measured from system start� butmay be started anytime Using a relational notation for Act this formally meansthat for all time intervals �u� v� and for all histories � � � SRc� and � � IRc��

��� � ��j�u�v� � Actj�u�v� � �t � �u� ��t� t� �t�j�u�t�v�t� � Actj�u�t�v�t�

where t is the right shift of stream by t� t�x�def� t�x� t�

The complete behavior of the analog part is described by a relation Ana withtype�

Ana � �I n � S�R� � P��n � S�R��

where n � S is the program�state space� as in the type of Com� and for any setM � MR� denotes the set of piecewise smooth functions R��M Hence� the inputand output of the analog part is not necessarily continuous Instead� �nitelymany discrete moves by the combinational part and the environment during any�nite interval are allowed In the following we will see that this demands that thecombinational part is realizable We call MR� the set of dense communicationhistories

The relation Ana is obtained by pasting together the �ows of the activitiesassociated to the nodes where the combinational part Com idles Pasting is real�ized as shown in Figure �� middle� by extending the sum operation to activitiesGiven a set of activities ACT � fActj j j � ng� their sum is de�ned as below��

�nj��Actj

def� f ��� ��� �� ��� ��� j

���m� �j� � my � m � n � ��� � ��j� � �Actm�j�g

�Here we use for convenience the relational notation Act � IRc� � SRc� � SRc��

Page 28:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

where � is a left closed right open interval� my is the extension of m to a constantfunction over �� � � IR� and ��� �� ��� �� � �n � S�R� The tuple ��� � consists ofthe control�state �ow � which gives at each moment of time the node where thecombinational part idles �see Figure �� right� and the data�state �ow whichgives at each moment of time the data�state passed by the combinational partThe tuple ��� �� consists of the same control�state �ow � and the data�state �ow� computed by the sum For each interval � in which the combinational partidles� the sum uses the control information �j� to demultiplex the input ��� �j�to the appropriate activity and to multiplex the output � j� to ��� ��j� Section ��will show how Ana is constructed from the activities in a HySChart by using the� operator As the construction results in a �at structure over S� we need notuse injections l� and r� in the de�nition of �� but can directly use the summands�numbers in the n�fold disjoint sum n � S

Note that the type of Ana assures that ��� ��� �� is partitioned into pieces�where �� � and are simultaneously piecewise smooth The output histories ��� ��of Ana are again piecewise smooth� by the de�nition of Ana

As we demand that every activity is total and time guarded� the analog partalso is total and time�guarded Furthermore� for the analog part we demandthat it is resolvable� which means that it must have a �xed point for every states� � n � S and every input stream i � IRc� � ie�

� � �n � S�Rc� ���� � s� � � Ana��� �

Resolvability of the analog part is needed to prove that the semantics of a hybridmachine is well�de�ned �see below�

��� The Component

Given an initial state s�� the behavior of the hybrid machine is a relation Cmpbetween its input and output communication histories Writing the graph inFigure �� middle� as a relational expression with the multiplicative operatorsresults in the denotational semantics of Cmp�

Cmp � n � S � IR� � P�OR��

Cmp�s� � �����I� � �IComy� � Ana � ��� � �OutyLims�� �n�S�

where Ry trivially extends the combinational relation R in time� ie Ry���def�

fo j o�t� � R���t��g for any t � � Out selects the output variables from the statestream

By de�nition� Cmp is a time guarded relation� because Comy� Ana� Outy�Lims� I and ��� are time guarded To show that Cmp is total we outline the prooffor the existence of a �xed point of the above de�nition for arbitrary starting

Page 29:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

state and input As the composed relation under the feedback operator does notintroduce a delay � � �� the existence of a �xed point is not guaranteed a prioriInstead� it is a consequence of the properties of Com and Ana

Proof for the existence of a �xed point

First� we prove that some time t � � passes between two discrete moves bythe combinational part or the environment Above� we demanded that the setE I n � S on which Com is not idle is topologically closed Therefore� Eis also closed with respect to the induced subspace topology on �I n � S� �range���� �j�t��t��� �Eng��� Now suppose s� is an output of Com for the currentinput i and the latched state s at time t� �see Figure ��� From the restrictions

0t0t 0+δ 1

(i,s)

(i,s")

t

I

(ι,σ)(i,s’)E

Figure ��� Computing the minimal delay

we imposed on Com we know that it must be idle for s� and the current input�ie� �i� s�� �� E Com will remain idle as long as its inputs from the environmentand the feedback loop are not in E Hence� we must determine when E can bereached next As the input stream � is piecewise in�nitely smooth� there must bea time t� � t�� such that it evolves continuously from now up to t� Due to itsresolvability� the analog part must have a �xed point for this input and startingstate s� This �xed point also is a continuous function Constructing the inverseimage of E for the �xed point of Ana and the input stream up to t� yields a setI that is closed wrt dom���� �� � �t�� t��� since the input and the analog part�soutput are continuous functions up to t� As t� is not in this set and the setis closed wrt �t�� t��� we get that the next discrete move cannot be performedbefore t� � �� � minfminfIg� t�g � t� �minfIg exists� because I is boundedfrom below and closed�

On the interval �t�� t�� ��� the �xed point of Ana is a �xed point of Cmp� be�cause Com and Lims are the identity there Applying this argument inductivelywe get a �xed point for Cmp on the interval �����

n���n� for every initial state s�If ��

n���n diverges� we have a proper �xed point of Cmp Otherwise we have azeno execution� the combinational part performs in�nitely many discrete moveswithin a �nite interval Hence� it is not realizable A su�cient condition for real�izability is that there is a lower bound � on the �i for all inputs and initial statesIf the analog part is resolvable and the combinational part is realizable with re�spect to the analog part then the component delivers a reasonable� ie� in�nite

Page 30:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

and piecewise smooth� output for all reasonable inputs In other words� the com�ponent is total According to the principal idea given in �AH��� for receptiveness�we call a total component receptive�

��� A Note on Semantics

A very important characteristic of our semantic model is its uniform use of therelational framework Activities and the component itself are both total timeguarded relations This agrees with Abramski�s slogan that processes are rela�tions extended in time� Moreover� the combinational part is also a relation� buta relation without time and memory This uniformity has two important con�sequences First� it considerably simpli�es the semantic de�nition Second� itallows us to apply the operators on hierarchic graphs introduced in the precedingchapter to compose relations As we shall see in the following� these operatorscorrespond to hierarchic system architecture speci�cations for the componentsand to hierarchic state�based speci�cations for the discrete part The time ex�tension of the additive operators leads to activity speci�cations for the analogpart

Using dense piecewise smooth communication histories as the basis for com�ponent speci�cation allows to integrate hybrid machines with components thatare speci�ed in other formalisms In particular this includes well�established de�scription techniques from control theory� where a component usually is a functionfrom its inputs to its outputs� IR� � OR� without continuity restrictions in thiscase �Son���

Page 31:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Chapter �

System Architecture

Speci�cation � HyACharts

The system architecture speci�cation determines the interconnection of a system�scomponents

Graphical syntax� The architecture speci�cation is a hierarchic graph� a so�called HyAChart �Hybrid Architecture Chart�� whose nodes are labeled withcomponent names and whose arcs are labeled with channel names Each nodemay have subnodes The node names and channel names only serve for referenceWe use a graphical representation that is analogous to the structure speci�cationsin ROOM �SGW���

Semantics� As a HyAChart is a hierarchic graph� it is constructed with theoperators of Section � Writing the graph as the equivalent relational formulaand using the multiplicative model to interpret the operators in it directly givesthe HyAChart�s semantics

As � is interpreted as the product operation for sets in this model� visualattachment here corresponds to parallel composition Hence� each node in thegraph is a component acting in parallel with the other components and each arcin the graph is a channel describing the data��ow from the source component tothe destination component� as explained in Section ��

The component names in the graph refer to input�output behaviors speci�edin other HyACharts or with other formalisms �Chapters � and � The channelnames are the input and output variable names used in the speci�cation of thecomponents The variables� types must be speci�ed separately

We can now return to the HyAChart of our example system given in theintroduction in Figure � left� and develop its semantics

Example � HyAChart of the EHC� In Figure � left� the boolean�valuedchannel inBend signals the controller whether the car is in a curve The real�valued channel sHeight carries the chassis level measured by the sensors The real�valued channel fHeight carries the �ltered chassis level The real�valued channel

��

Page 32:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

aHeight carries the chassis level as proposed by the actuators� compressor andescape valve� without environmental disturbances The boolean�valued channelsreset and dReset �delayed reset� transfer the boolean reset signal to the �lterThe delay component Df ensures that the feedback is well�de�ned �see Section���

The types of the �lter� the control component and the delay component followfrom the channels� types�

Filter � �R B �R� � P�RR� �Control � �B R�R� � P��R B �R� �Df � B

R� � P�B R� �

The semantics of the whole system EHC is de�ned as below It is the relationalalgebra term corresponding to the HyAChart of Figure � left

EHC � �B R�R� � P�RR� �EHC � ��IFilter� � Control � �IDf �� �R�

Note that the user only has to draw the HyAChart and to de�ne the types of thechannels �

Page 33:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Chapter �

Component Speci�cation �

HySCharts

A HySChart �Hybrid StateChart� de�nes the combinational and the analog partof a hybrid machine The input�output behavior of the resulting componentfollows from these parts as explained in Chapter �

The Graphical Syntax of HySCharts� A HySChart is a hierarchic graph�where each node is of the form depicted in Figure �� left Each node may havesub�nodes It is labeled with a node name� which only serves for reference� anactivity name and possibly the symbols �� and �� to indicate the existenceof an entry or exit action� which is executed when the node is entered or leftThe outgoing edges of a node are labeled with action names The action namesstand for predicates on the input� the latched state and the next state Theyare structured into a guard and a body The activity names refer to systemsof ordinary di�erential �in�equations The speci�cation of actions and activitiesand their semantics is explained in detail in the following Transitions from com�posed nodes express preemption Except for activities� HySCharts look similarto ROOM�charts �SGW���

The Semantics of HySCharts� The semantics of a HySChart is dividedinto a combinational and an analog part The combinational part follows almostdirectly from the diagram The analog part is constructed from the chart withlittle e�ort

In the following we will �rst explain how the combinational part is derivedfrom a HySChart� then the analog part is covered We will also show how actionsand continuous activities are speci�ed

��� The Combinational Part

A HySChart is a hierarchic graph and therefore constructed from the operators inSection � As mentioned in Section ��� interpreting the graph in the additive

��

Page 34:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

model leads to a close correspondence to automata diagramsWe may view the graph as a network of autonomous computation units �the

nodes� that communicate with each other over directed control paths �the arcs�Due to the additive model� at each time point control resides in only one �prim�itive� computation unit �Section ���

In order to derive the combinational part from the HySChart we now give asemantics to its nodes� ie� to its computation units The semantics for hierarchyand actions follows

nodes

sub-

nexmen

ex1

Node

k

1en

Activity

menN

1en

1 N...

1ex

nex

action1

actionn

Semantics of a primitive node

wtwt

exit

wait

entry

entry

exitnaction

1action

wt 1

wt1

wtwt

j j

entry

entry

exit1action

naction exit

Semantics of a hierarchic node

Figure �� Syntax and semantics of a computation unit

Computation units� Each primitive node of the HySChart represents thegraph given in Fig �� top right It formally corresponds to the relationalexpression below�

CompUnitdef� ��m

i��entry � I� � m��� � �n�� � ���ni��actioni � exit� � wait�

According to the additive operators� it has the following intuitive meaning Acomputation unit gets the control along one of its entry points eni and gives thecontrol back along one of its exit points exj

After getting control along a regular entry point� ie� an entry point di�erentfrom wait wt� a computation unit �rst executes its entry action entry� if one isspeci�ed Then it evaluates a set of action guards� If one of the guards is true�then the corresponding action is said to be enabled and its body is executedAfter �nishing its execution� the computation unit executes its exit action exit�if present Finally� control is given to another computation unit along the exitpoint corresponding to the executed action

�An action actionk consists of a guard and a body�

Page 35:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

If more than one guard is true� then the computation unit nondeterministicallychooses one of them Guard wait in the diagram stands for the negation of thedisjunction of the guards of the actions actionk Hence� if none of the guardsis true� then the discrete computation is completed� and the control leaves thecombinational part along the designated wait exit point wt The next sectionshows that the analog part takes advantage of the information about the exitpoint to determine the activity to be executed and gives control back along thecorresponding wait entry point

Hierarchy� A composed or hierarchic node in the HySChart stands for the graphin Figure �� bottom right A principal di�erence to primitive nodes is that theentry points are not identi�ed� instead they are connected to the correspondingentry points of the sub�nodes Similarly� the exit points of the sub�nodes areconnected to the corresponding exit points of their enclosing hierarchic nodeFurthermore� the hierarchic node has a wait entry and wait exit point for everywait entry�exit point of the sub�nodes When it receives control on one of them�it is directly passed on to the wait entry point of the corresponding sub�nodeThus� the wait entry point identi�es a sub�node The hierarchic node is left alonga wait exit point� if a sub�node is left along its corresponding wait exit point

Actions� An action a is a relation between the current input� the latcheddata�state and the next data�state�

a �I S� S

For HySCharts� actions are speci�ed by their characteristic predicate They arethe conjunction of a precondition �the action guard� on the latched data�state andthe current input and a postcondition �the action body� that determines the nextdata�state The precondition implies that the postcondition is satis�able� hencethe action is enabled i� the precondition is true We use left�quoted variables v� todenote the current input� right�quoted variables v� to denote the next data�stateand plain variables to denote the latched data�state Moreover� we mention onlythe changed variables and always assume the necessary equalities stating thatthe other variables did not change To simplify notation further� we associate avariable c with each channel c For example� the action resetting the �lter in theEHC example is de�ned as follows�

dReset � �� dReset � dReset � � dReset � � fHeight � � �

It says that each time dReset is toggled� fHeight should be reset to �As mentioned in Chapter �� the combinational part may only perform discrete

state changes� on a topologically closed subset of I n � S This condition issatis�ed by a HySChart de�ning the combinational part� if the precondition ofevery action in the chart identi�es a topologically closed subset of I S Notethat in conjunction with hierarchy the action guards must be chosen with care

Page 36:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

in order to guarantee that the combinational part speci�ed by the HySChart istotal

Events� Latched variables allow us to model many di�erent communicationstyles Particularly interesting for our example are events which we model bytoggling boolean variables The occurrence of an event is detected by testing ifthe current input value for that variable is di�erent from the latched value ofthat variable� ie� e� �� e� where e � B signals the occurrence of the event e Wewrite e as abbreviation for e� �� e� e� � e� �The second part of the conjunctionupdates the latched value of e� Similarly� sending an event is given by thefollowing expression e� � �e which is abbreviated by e! With this notation� the�lter reset action can be rewritten as dReset � fHeight � � � Message passingcan be modeled equally easily �GSB���

Preemption� In HySCharts we use transitions originating from a hierarchicnode �and not from any of its subnodes� to express preemption The actionsassociated with such transitions are called preemptive actions As discussed in�GSB���� one can de�ne such a preemptive action to have higher priority thanany action inside the hierarchic node �strong preemption� or to have lower pri�ority than any action inside the node �weak preemption� Here� we use weakpreemption� because it is simpler and better suited for the re�nement of nodesIt allows that actions inside a hierarchic node overwrite the preemptive action

The corresponding graph for a node with preemption is obtained as followsReplacing a hierarchic node with preemptive actions pa�� � � � � pah �Fig ��� topleft� by its corresponding graph of Figure �� bottom right� yields a diagram ofthe form given in Figure ��� top right� To obtain the semantics of the originalnode with the preemptive transitions� this diagram is in turn replaced by thegraph in Figure ��� bottom

This graph basically expresses that whenever a subnode is left on a wait exitpoint wt and one of the preemption actions is enabled� it is executed and followedby the exit action exit of the enclosing hierarchic node The hierarchic nodeis then left along an exit point pex corresponding to the executed preemptiveaction If none of the preemptive actions is enabled �wait is the negation of thedisjunction of the guards of the pai actions� the hierarchic node is left along thewait exit point that corresponds to wt of the subnode

In our example of Figure �� left� the action n�b is a preemption action ofthe composed computation unit noBend

The additive interpretation of graphs also provides the infrastructure to eas�ily model history variables and other concepts known from statecharts�like for�malisms �GSB���

�The interior of the node is omitted here for clarity� It exactly is the graph of Figure ���bottom right�

Page 37:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

1en

enm

1wt

wtj

exn

1ex

wt1

wtj

Semantics of the hierarchic node

1pa hpa

naction

1action

1pa hpa

(hierarchic) NodeActivity

1en

enm

1wt

wtj

1en

enm

1wt

wtj

exn

wt1

wtj

1ex 1ex

exn

wt1

wtj

1pex1pa exit

exithpa pexh

Semantics of the hierarchic node

wait

wait

Figure ��� The semantics of preemption

Semantics� If each node in the HySChart is replaced by the correspondinggraph of Figure �� right� and ��� right� we obtain a hierarchic graph whosenodes merely are relations Writing the graph as the corresponding relationalexpression with the additive operators gives the denotational semantics of theHySChart�s discrete part� ie� the combinational part of a hybrid machine

At the highest level of hierarchy� the hierarchic graph resulting from theHySChart has one wait entry�exit point pair for every primitive �or leaf� node inthe chart On the semantic level there is exactly one summand in the n�fold sumn � S of the combinational part�s type �I n � S� � P�n � S� for every entry�exitpoint pair The analog part uses the entry�exit point information encoded inthis disjoint sum to select the right activity for every node in the HySChart�Section ���

To outline the utility of this approach for hybrid systems we now return tothe HySChart for the controller given in the introduction

Example � The EHC s Control component� We describe the states andtransitions in Figure � in a top�down manner The activities� written in italicsin the �gure� are explained in the next section

The computation unit Control� On the top level of the component Controlwe have two computation units� outBend and inBend When the controller sensesthat the car is in a curve� the computation unit inBend is entered It is left againwhen the controller senses that the car no longer is in a curve Sensing a curve

Page 38:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

is event�driven We use the boolean variable bend for this purpose The actionsn�b and b�n are identical and very simple� n�b � b�n � bend

The computation unit outBend � The computation unit outBend is re�ned toinTol and outTol as shown in Figure �� top right Control is in inTol as longas the �ltered chassis level is within a certain tolerance interval The compressorand the escape valve are o� then If fHeight is outside this interval at a samplingpoint� one of the sub�nodes of outTol is entered These sub�nodes are left again�when fHeight is inside the desired tolerance again and the �lter is reset Theactions originating from inTol are de�ned as follows�

t o � w � ts� i�i � lb � fHeight � ubi�u � fHeight � lb� i�d � fHeight � ub

An interesting aspect of inTol is the speci�cation of the composed action startedby the timeout t o� which semantically corresponds to the rami�cation operatorfor hierarchic graphs Of course� one could have used three separate transitionsinstead However� in this case the visual representation would have failed tohighlight the common enabling condition t o

Leaving the computation unit outTol along its exit point reset causes theexecution of the reset action This action is always enabled and de�ned byreset � reset ! Note that we used here the same name for the action and itsassociated event

The transition n�b originates from the composed node outBend �and fromnone of its sub�states� This expresses weak preemption� ie� this transition canbe taken from any sub�node of outBend � as long as it is not overwritten

The computation unit outTol� As shown in Figure �� bottom right� thecomputation unit outTol consists of the computation units up and down Whenthe �ltered chassis level is too low at a sampling point� node up is entered� wherethe compressor is on When the level is too high� down is entered� where theescape valve is open Control remains in these nodes until fHeight is inside thedesired tolerance again �actions u�i� d�i� These actions cause outTol to be leftalong the same exit point� reset The actions originating from up and down arevery similar to those of inTol �

u�u � fHeight � lb� u�i � lb � fHeight � ub� u�d � fHeight � ub�d�d � fHeight � ub� d�i � lb � fHeight � ub� d�u � fHeight � lb

Again� rami�cation is used in the chart to highlight the common enabling condi�tion t o for these actions

As indicated by the symbol �� the nodes inTol � up and down have an entryaction It is de�ned as entry � w� � � and resets w Together with action t o andthe activity w inc it models sampling in these nodes� ie all transitions directlyoriginating from these nodes can only be taken at the end of a sampling interval

Page 39:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Semantics� The combinational part follows directly from the HySChart byreplacing the nodes by their corresponding graphs of Figure �� right� and ���right As every wait entry�exit point pair at the highest level of the resultinggraph corresponds to a summand in the type of the combinational part� we getthat the combinational part of Control has type�

Com � �I � � S� � P�� � S� �

Note that the user only has to draw the HySChart and give the de�nitions of theactions The corresponding combinational part can be constructed automatically

��� The Analog Part

The second part of a HySChart�s semantics is the analog part it de�nes In thefollowing we explain how this analog part is derived from the chart

Activities� Each activity name in the HySChart refers to a system of ordinarydi�erential �in�equations over the variables of the component� We demand thatfor any tuple of initial values s � S and any continuous� in�nitely smooth inputstream i � IRc� � the resulting initial value problem is solvable

Example � The activities of Control� In our example from Figure � theactivity names written in italics stand for the following di�erential �in�equations�

w inc � "w � a inc � "c � �cp�� cp��a const � "c � � a dec � "c � �ev�� ev��

where cp�� cp� � � and ev�� ev� � � are constants For w this means that itevolves in pace with physical time Variable c either increases with a rate in�cp�� cp�� �activity a inc�� it decreases �a dec� or remains constant �a const�

Note that this is all the user has to provide to specify the analog part �

The activity Act � �I S�Rc� � P�SRc�� in every node is derived from thedi�erential �in�equations in the following way� For the input stream i and thestate stream s we take s��� as the initial value for the system of di�erential�in�equations The activity�s set of output streams then consists of the solutionsof the resulting initial value problem for input stream i For those controlledvariables v� whose evolution is not determined by the initial value problem� theactivity�s output is equal to s�v� ie� to the v component of the state stream theactivity received Hence� it remains unmodi�ed

�An adaption of HySCharts to a more application specic syntax for activities� e�g� suitedfor multimedia streams� is feasible�

Page 40:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

w_inc w_inc w_inc w_inc

wtinTol

wtup

wtdown

wtinTol

wtup

wtdown

wt

wt

inBend

inBend

a_const

a_const

a_inc a_dec

Figure ��� The Control component�s analog part

Composition of Activities� To re�ect the hierarchy in the HySChart theactivities speci�ed in the nodes are composed appropriately Therefore� we extendthe sequential composition operator � to �disjoint sums of� activities�

Act� � Act� � f�i� � �� j ��� �i� � �� � Act� � �i� �� �� � Act�g

A HySChart can be seen as a tree with the primitive nodes as its leaves TheHySCharts in Figure �� for example� has node Control as its root and the nodesinBend � inTol � up and down as leaves Starting from the tree�s root we derivethe composed activity de�ned by the HySChart as follows� �We write ActN forthe �primitive� activity of node N and CActN for the composed activity of nodeN � here�

if N is a primitive node� CActNdef�ActN

if N has sub�nodes M�� � � � �Mn which have composed activities CActMi�

�mi

j��ActMi�j� where each ActMi�j stands for a sequential composition of prim�itive activities� then

CActNdef� �n

i�� ��mi

j�� �ActN �ActMi�j��

The analog part is the composed activity of the root node of the HySChart�ie Ana � CActroot Figure �� and the following example explain this de�nition

Example � The analog part of Control� The HySChart in Figure � hasthe analog part�

Ana � �w inc � a const� � �w inc � I � a const���w inc � I � I � a inc� � �w inc � I � I � a dec�

where we applied associativity of � and � The activity names are used to referto the semantics of each activity� here Note that the expression is equivalent to

Page 41:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

�w inc � a const� � �w inc � a const� � �w inc � a inc� � �w inc � a dec�� becausethe identity connector is the neutral element for sequential composition Figure�� depicts the analog part as a graph �

The entry and exit point symbols in the �gure highlight that the analog part hasone path through the graph for every primitive node in the HySChart Whenwe construct the combinational part from the HySChart� we also get one waitentry and wait exit point at its highest level of hierarchy for each primitive nodeThis allows to sequentially compose the combinational part with the analog partas in the semantics of a hybrid machine in Chapter � The distinct wait pointsallow both the combinational part and the analog part to know which node inthe HySChart currently has control and to behave accordingly

In Chapter � we demanded that the analog part is resolvable If the activitiesare de�ned as the solutions of solvable initial value problems as above� this isautomatically ensured

As a further example� Section � contains the HySChart for the EHC�s �ltercomponent

Page 42:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Chapter �

Relation to Other Formalisms

��� Heterogeneous Component Speci�cation

The multiplicative interpretation of � not only allows to compose componentsspeci�ed under the additive interpretation �HySCharts�� but it enables us tocompose arbitrary components of type IR� � P�OR��� where I and O is a setof input and output channels� respectively

This means that any formalism can be used for component speci�cation whichde�nes a component as a total� time�guarded relation on piecewise smooth inputsand outputs In particular this allows us to use description techniques fromengineering disciplines� like eg block diagrams� which are widely used in controltheory

Example � A delay element� The delay element of the EHC reproduces itsinput with delay � � � It can be speci�ed directly as a relation as follows�

Df � BR� � P�B R� �

Df�i��t� � ffalseg if t � � and fi�t� ��g otherwise �

��� Timed Automata

An interesting side e�ect of HySCharts is that they can simulate the non�urgenttransitions of timed automata �AD���� although transitions in HySCharts aretaken as soon as they are enabled To explain this� Figure � left� shows a stateof a timed automaton that must be left during the time interval t � �a� b� Theequivalent node of a HySChart is given in Figure � right The actions arer � x� � � and g � x � and the activity is Act � "x � ��

b� �a� This means

that instead of non�deterministically choosing a time instant between a and b� wenon�deterministically choose a time scale between ��

b� �a� When the skewed clock

x equals the limit the transition is taken Eg for activity "x � �bwe get that

the transition is taken at t � b� because x�t� � �bt

��

Page 43:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

r

Act

g

t:=0

a<=t<=b

Figure � Translating timed automata into HySCharts

Reading the translation from Figure the other way round we get thata certain subclass of HySCharts� namely the one which only allows guards andactivities of a form like those in the �gure� can be translated into timed automataTherefore� this class has a decidable reachability problem �ACH���� This resultis comparable to the decidability of the simple multirate timed systems de�nedin �ACH����

��� A Typical Hybrid Component

Figure � shows the HySChart for the �lter of the EHC example Action nameset stands for dReset � fHeight � � �� and activity name f follow denotesddtfHeight � �

T�sHeight � fHeight�� where T is the �lter�s time constant� ie a

measure for its inertia

f_followFilter

set

Figure �� HySChart for the �lter

While both the discrete and the analog part of the �lter are very easy� the com�ponent is nevertheless interesting from a hybrid point of view� As there is avery close interaction of the discrete dynamics �the set action� and the continu�ous dynamics �the di�erential equation�� it is hardly possible to decompose the�lter into a purely discrete and a purely continuous part that cannot exhibitdiscontinuities Therefore� the �lter underlines the need for hybrid speci�cationtechniques

�Remember that dReset� is a shorthand for dReset � �� dReset � dReset � � dReset ��

Page 44:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Chapter �

Conclusion

Based on a clear hybrid computation model� we were able to show that the ideaspresented in �GSB��� can smoothly be carried over to hybrid systems and yieldmodular� visual description techniques for such systems Namely� the resultingtechniques are HyACharts and HySCharts for the speci�cation of hybrid systemarchitecture and hybrid component behavior� respectively

With an example we demonstrated the use of HyCharts and their featuresApart from many features known from statecharts�like formalisms� this in par�ticular includes the ability to compose HySCharts with components speci�edwith other formalisms In our opinion such heterogeneous speci�cations are akey property for designing hybrid systems� as it allows to integrate descriptiontechniques from di�erent engineering disciplines

Methodically we conceive a HySChart as a very abstract and precise mathe�matical model of a hybrid system Knowing exactly the behavior of the analogpart as given by a system of di�erential �in�equations allows us to develop moreconcrete models that can easily be implemented on discrete computers For suchmodels it is essential to choose a discretization which preserves the main proper�ties of the abstract description

Although this paper mainly aims at hybrid systems appearing in the con�text of disciplines like electrical and mechanical engineering� we think that thecontinuous activities in HySCharts also make them well suited for specifying mul�timedia systems� such as video on demand systems Basically HyCharts seem tobe appropriate for any mixed analog�digital system where the use of continuoustime is more natural than a discrete time model

In the future we intend to develop tool support and a requirement speci�cationlanguage for HyCharts For the veri�cation of HySCharts we believe that thetechniques known for linear hybrid automata �ACH���� can easily be adapted

Acknowledgment� We thank Ingolf Kr�uger� Olaf M�uller and Jan Philipps fortheir constructive criticism after reading draft versions of this paper

Page 45:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

Bibliography

�ACH���� R Alur� C Courcoubetis� N Halbwachs� TA Henzinger� P�H Ho�X Nicollin� A Olivero� J Sifakis� and S Yovine The algorithmicanalysis of hybrid systems Theoretical Computer Science� �����������

�AD��� R Alur and D L Dill A theory of timed automata Theoretical Com�puter Science� � �������� ���

�AH��� R Alur and TA Henzinger Modularity for timed and hybrid systemsIn CONCUR � Concurrency Theory� LNCS ��� Springer�Verlag����

�Bro��� M Broy Re�nement of time In ARTS��� LNCS �� Springer�Verlag� ���

�EH� � S Engell and I Ho�mann Modular hierarchical models of hybrid sys�tems In Proc� of the � th IEEE Conference on Decision and Control�CDC�� pages ������ Kobe� ��

�Eng��� R Engelking General Topology� volume of Sigma Series in PureMathematics Heldermann Verlag� Berlin� ���

�GSB��� R Grosu� Gh Stef#anescu� and M Broy Visual formalisms revisitedIn Proc� Int� Conf� on Application of Concurrency to System Design�CSD� IEEE� ���

�Har��� D Harel Statecharts� A visual formalism for complex systems Sci�ence of Computer Programming� �� ���

�KP��� Y Kesten and A Pnueli Timed and hybrid statecharts and theirtextual representation In J Vytopil� editor� Formal Techniques inReal�Time and Fault�Tolerant Systems �nd International Symposium�volume �� of LNCS� pages ��� �� Nijmegen� The Netherlands���� Springer�Verlag

��

Page 46:  · Mo dular and Visual Sp ecication of Hybrid Systems An In tro duction to HyCharts Radu Grosu and Thomas Stauner Institut f ur Informatik T ec hnisc he Univ ersit at M ...

��

�LSVW� � NA Lynch� R Segala� FW Vaandrager� and HB Weinberg HybridI�O automata In Hybrid Systems III� LNCS � Springer�Verlag���

�MS��� O M�uller and P Scholz Functional speci�cation of real�time and hy�brid systems In Proc� Hybrid and Real�Time Systems �HART�� LNCS�� Springer� ���

�SGW��� B Selic� G Gullekson� and P T Ward Real�Time Object�OrientedModeling John Wiley and Sons Ltd� Chichester� ���

�SMF��� T Stauner� O M�uller� and M Fuchs Using HyTech to verify anautomotive control system In Proc� Hybrid and Real�Time Systems�HART���� LNCS �� Springer�Verlag� ���

�Son��� E D Sontag Mathematical Control Theory Springer Verlag� ���

�Ste��� Gh Stef#anescu Algebra of �ownomials Technical Report TUM�I�����Technische Universit�at M�unchen� ���

�TMI��� The MathWorks Inc State�ow http���www�mathworks�com�

products�stateflow�� ���


Recommended