an object oriented modeling language for hybrid systems
play

An Object-Oriented Modeling Language for Hybrid Systems . Huixing - PowerPoint PPT Presentation

. An Object-Oriented Modeling Language for Hybrid Systems . Huixing Fang Huibiao Zhu Jianqi Shi East China Normal University fang.huixing@gmail.com . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . ..


  1. . An Object-Oriented Modeling Language for Hybrid Systems . Huixing Fang Huibiao Zhu Jianqi Shi East China Normal University fang.huixing@gmail.com . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  2. . Outline . . Introduction on Hybrid Systems 1 . . Motivation of Our Work 2 . . Object-Oriented Modeling Language 3 . . Conclusion and Future Work 4 . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  3. . Outline . . Introduction on Hybrid Systems 1 . . Motivation of Our Work 2 . . Object-Oriented Modeling Language 3 . . Conclusion and Future Work 4 . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  4. . Hybrid Systems . ⊕ . Hybrid systems consist of discrete control programs and continuous physical behaviour, such systems exhibit both continuous and discrete dynamic behaviour. . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  5. . Hybrid Automata . Figure : Hybrid automaton of a bouncing ball . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  6. . Outline . . Introduction on Hybrid Systems 1 . . Motivation of Our Work 2 . . Object-Oriented Modeling Language 3 . . Conclusion and Future Work 4 . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  7. . . . . . . . Motivation . . Automata-Based Languages/Notations . not the best choice for creating models from building blocks; the differential equations, invariants and difference equations are tightly coupled. . . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  8. . . . . Motivation . . Automata-Based Languages/Notations . not the best choice for creating models from building blocks; the differential equations, invariants and difference equations are tightly coupled. . . Process-Algebra-Based Languages/Notations . have solid theoretical foundation of formal analysis not accepted widely by designers and developers due to the complicated symbols, mathematical abstractions and various concept abbreviations. . . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  9. . Motivation . . Automata-Based Languages/Notations . not the best choice for creating models from building blocks; the differential equations, invariants and difference equations are tightly coupled. . . Process-Algebra-Based Languages/Notations . have solid theoretical foundation of formal analysis not accepted widely by designers and developers due to the complicated symbols, mathematical abstractions and various concept abbreviations. . . State-Chart-Based Languages/Notations . de facto approach for model-based development of embedded systems weak on model reuse as well, e.g., the continuous-time chart in Simulink/Stateflow cannot be reused . . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  10. . Outline . . Introduction on Hybrid Systems 1 . . Motivation of Our Work 2 . . Object-Oriented Modeling Language 3 . . Conclusion and Future Work 4 . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  11. . Apricot . . Syntax . ::= ( ∥ n i =1 Plant i ) ∥ ( ∥ m i =1 Controller i ); System ::= AtomComp | (AtomComp ∥ Controller ) | HierComp Plant | ( HierComp ∥ Controller ) ; ::= AtomComp ; Controller ::= Comp ( Condition + , Dynamic + , Assignment + ) ; AtomComp ::= Comp ( Condition + , Dynamic + , Assignment + , System ) ; HierComp ::= SequentialAssignment | ParallelAssignment . Assignment . Dynamic + represents a set of Dynamic objects used for continuous dynamics; Assignment + for Assignment objects denoting discrete behaviors; || denotes parallel composition. || n i =1 Plant i represents the parallel composition of n plants; Comp ( · ) represents the control switch composition relation under the condition in Condition + . . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  12. . The relationship of objects in Apricot . the weak include relationship, i.e., the object at starting point may not contain an object at the ending point, e.g., a plant may not contain a subsystem. . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  13. . Continuous Behavior . Differential Equations: 1 void Continuous () { 2 dot ( Var 1 , Nat 1 ) == MathExp 1 ; 3 · · · 4 dot ( Var n , Nat n ) == MathExp n ; 5 } where, Var i is a continuous variable, Nat i represents the derivative order of Var i , MathExp ::= Function ( Vars , ˙ V ars ) , a mathematical function, e.g., sine, cosine, log. . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  14. . Discrete Behavior . Discrete Assignments: 1 void Discrete () { 2 Variable 1 = MathExp 1 ; 3 · · · 4 Variable n = MathExp n ; 5 } ParallelAssignment: the parallel composition of the assignment statements; SequentialAssignment: sequential composition of assignment statements. if-statement, for-loop, and method-call, etc. . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  15. . Interfaces-System . 1 interface System { 2 Requires plants [1 .. ∗ ] : Plant ; 3 Requires controllers [1 .. ∗ ] : Controller ; 4 void Init (); 5 } Requires is a keyword for the declaration of variable-requirement, 1 .. ∗ denotes the amount of entities > = 1. method Init () indicates that the System has an initializer without any argument nor value return. . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . .. . . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

  16. . Interfaces-Plant . 1 interface Plant { 2 Requires dy [1 .. ∗ ] : Dynamic ; 3 Requires ass [1 .. ∗ ] : Assignment ; 4 Requires sy [0 .. 1] : System ; 5 Requires controller [0 .. 1] : Controller ; 6 void Composition () { 7 Requires coms [1 .. ∗ ](? | !)[0 .. 1] : ( dss [1 .. ∗ ] : Dynamic | System , 8 ass [0 .. 1] : Assignment , dsd [1 .. ∗ ] : Dynamic | System ) 9 { Condition {} ; Discrete {} ; } ; 10 } ; } ! and ? behind the composition name denote the asynchronous communication between different components. ! used for asynchronous message sending; It is the case of synchronous communication when ? and ! are absent; We can define the synchronization of two compositions A and B explicitly, as A || B ; and A ∼ B denotes asynchronous communication between A and B . . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . . .. . .. . .. .. . .. . .. . .. . .. . .. . .. . .. . .. . Huixing Fang, Huibiao Zhu, Jianqi Shi Apricot

Recommend


More recommend