Title :
Unit & dynamic typing in hybrid systems modeling with CHARON
Author :
Anand, Madhukar ; Lee, Insup ; Pappas, George ; Sokolsky, Oleg
Author_Institution :
Dept. of Comput. & Inf. Sci., Pennsylvania Univ., Philadelphia, PA
Abstract :
In scientific applications, dimensional analysis forms a basis for catching errors as it introduces a type-discipline into the equations and formulae. Dimensions in physical quantities are measured via their standard units. However, many programming and modeling tools provide limited support for incorporating these units into the variables. Thus, it is quite difficult for a programmer to ensure dimensional consistency in the code. Different existing standards for units further complicates this problem and an incautious use could cause inconsistencies, often with catastrophic results. In this paper, we propose an extension of the basic type system in CHARON, a language for modeling of hybrid systems, to include unit and dynamic data types. Through a combination of indirect user-guided annotations and type-inference, we address the problem of ensuring both dimensional consistency, and consistency with respect to different unit-systems. Further, we also introduce dynamic data typing, that allows programmers to specify entities that bind at runtime. Such abstractions are particularly useful to program controllers for dynamic environments. We illustrate these benefits with an example on mobile robots
Keywords :
programming languages; reasoning about programs; specification languages; type theory; CHARON; hybrid systems model; indirect user-guided annotations; type-inference; unit and dynamic data types; Application software; Control system synthesis; Equations; Error correction; Information analysis; Information science; Mobile robots; Modeling; Programming profession; Space vehicles;
Conference_Titel :
Computer Aided Control System Design, 2006 IEEE International Conference on Control Applications, 2006 IEEE International Symposium on Intelligent Control, 2006 IEEE
Conference_Location :
Munich
Print_ISBN :
0-7803-9797-5
Electronic_ISBN :
0-7803-9797-5
DOI :
10.1109/CACSD-CCA-ISIC.2006.4776624