1 / 23

A Modular Visual Model for Hybrid Systems

A Modular Visual Model for Hybrid Systems. Radu Grosu CIS, UPenn, Philadelphia. joint work with M. Broy, Th. Stauner, Gh. Stefanescu, B. Selic. Motivation.

tod
Download Presentation

A Modular Visual Model for Hybrid Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Modular Visual Model for Hybrid Systems Radu Grosu CIS, UPenn, Philadelphia joint work with M. Broy, Th. Stauner, Gh. Stefanescu, B. Selic

  2. Motivation • The design of hybrid systems is a difficult task. One has to consider many different aspects like data, behavior, architecture and distribution. • Moreover it usuallyinvolves people from different engineering disciplines. • Many modern SE methods like UML, ROOM and SDL recommend the use of visual specifications. • A formal foundation is needed however, to prohibit ambiguities which may be fatal in this context.

  3. Overview • Anelectronic height control system (BMW). • Thecomputation model. • Hierarchic graphs andtheirassociatedmodels. • Conclusions.

  4. Electronic Height Control System • Whenever the chassis level is outside of a tolerance interval it has to be increased or decreased to get close to the center of the interval. • Very short deviations from the tolerance interval should not be compensated. • After a compensation, some time should pass before the actuatoris switched on again. • The chassis level may not be modified whenever thecar is going through a curve.

  5. Filter D EHC Architecture bend aHeight sHeight fHeight dReset reset EHC +

  6. EHC Architecture bend aHeight Control sHeight fHeight Filter D dReset reset EHC

  7. sHeight fHeight aHeight dReset time t t´ t´´ Typical Evolution of the EHC

  8. control b2o outBend b2o o2b inBend a_const Top Level of the Control Component

  9. outBend i2u i2u control inTol outTol i2d a_const outBend reset reset o2b b2o o2b b2o inBend a_const The State OutBend

  10. control outBend i2u inTol outBend outTol i2d a_const reset o2b b2o o2b b2o inBend a_const i2u i2d outTol up down a_inc a_dec u2i u2i d2i reset The State outTol

  11. Nodes and Arcs Graph = a set of nodes connected by a set of arcs Node interface = set of incoming/outgoing arcs a b N - arcsa denote types - nodesN denote relations

  12. A C n1 n2 n1 n2 n1 B1 B2 B A A A A B A A A B A identification ramification transposition Graph Construction Primitives Operators on nodes A1 A2 A B C visual attachment sequential composition feedback Connectors A A identity

  13. Role of Visual Attachment n2 n1 n2 n1 Operators on nodes A1 A2 A * C A B C n1 B1 B2 * B visual attachment sequential composition feedback Connectors A A A A A B A A A A B A identity identification ramification transposition

  14. Control-flow model Data-flow model n2 n1 n2 n2 n1 n1 n2 n1 Control- and Data-Flow Models

  15. Control-flow model Data-flow model A A C C n1 n1 B B Visual Attachment and Feedback

  16. Additive Interpretation • An additive graph describes control flow: • control resides in only one node • control rec/sent on only one interface point • control paths forward control between nodes • Intended disjointness of nodes and interfacepoints achieved by: • interpreting * by the disjoint sum +

  17. Multiplicative Interpretation • A multiplicative graph describes data flow: • control is in all nodes • data is sent/rec on all input/output ports • channels forward the data between nodes • Intended parallelism of nodes and ports is achieved by: • interpreting * by the product x

  18. Nxt Ana Out Lim The Hybrid Machine ... Act1 Actn Ana

  19. D Architecture Specification bend aHeight sHeight Ctrl fHeight Filter reset dReset EHC

  20. guard1 ex1 body1 exit action1 en1 entry LeafNode enm guardn exn entry exit bodyn action1 wt ~guard wt sub nodes N1..Nk guard1 ex1 body1 exit action1 en1 entry CompNode enm guardn exn entry exit bodyn wt1 wt1 action1 wtj wtj Leaf and Composed Nodes

  21. The Discrete Machine Nxt Nxt Register Ana Out Out Lim clock

  22. Tightening Sliding A A A m m A C C C B B = = m n n D D D n C n p p m D B E E B Two Feedback Laws

  23. Conclusions • HyACharts allow the hierarchical specification of the structure of a hybrid system. • Subsystemsmay be described with other formalisms. • HySCharts allow the hierarchical specification of the behavior of a hybrid system. • Both discreteand continuous aspects are integratedin a uniform way (activities, preemption, entry/exit actions). • HyACharts and HySCharts are dual models of hierarchic graphs. Theirformal theory allows their verification and optimization.

More Related