Modeling and Monitoring of Hierarchical State Machines in Scala

被引:2
|
作者
Havelund, Klaus [1 ]
Joshi, Rajeev [1 ]
机构
[1] CALTECH, Jet Prop Lab, Pasadena, CA 91125 USA
基金
美国国家航空航天局;
关键词
D O I
10.1007/978-3-319-65948-0_2
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Hierarchical State Machines (HSMs) are widely used in the design and implementation of spacecraft flight software. However, the traditional approach to using HSMs involves graphical languages (such as UML statecharts) from which implementation code is generated (e.g. in C or C++). This is driven by the fact that state transitions in an HSM can result in execution of action code, with associated side-effects, which is implemented by code in the target implementation language. Due to this indirection, early analysis of designs becomes difficult. We propose an internal Scala DSL for writing HSMs, which makes them short, readable and easy to work with during the design phase. Writing the HSM models in Scala also allows us to use an expressive monitoring framework (also in Scala) for checking temporal properties over the HSM behaviors. We show how our approach admits writing reactive monitors that send messages to the HSM when certain sequences of events have been observed, e.g., to inject faults under certain conditions, in order to check that the system continues to operate correctly. This work is part of a larger project exploring the use of a modern high-level programming language (Scala) for modeling and verification.
引用
下载
收藏
页码:21 / 36
页数:16
相关论文
共 50 条
  • [1] Formal Modeling and analysis of scientific workflows using hierarchical state machines
    Yang, Ping
    Yang, Zijiang
    Lu, Shiyong
    E-SCIENCE 2007: THIRD IEEE INTERNATIONAL CONFERENCE ON E-SCIENCE AND GRID COMPUTING, PROCEEDINGS, 2007, : 619 - +
  • [2] Concurrent hierarchical finite state machines for modeling pedestrian behavioral tendencies
    Kielar, Peter M.
    Handel, Oliver
    Biedermann, Daniel H.
    Borrmann, Andre
    CONFERENCE ON PEDESTRIAN AND EVACUATION DYNAMICS 2014 (PED 2014), 2014, 2 : 576 - 584
  • [3] Hierarchical featured state machines
    Fragal, Vanderson Hafemann
    Simao, Adenilso
    Mousavi, Mohammad Reza
    SCIENCE OF COMPUTER PROGRAMMING, 2019, 171 : 67 - 88
  • [4] Model checking of hierarchical state machines
    Alur, R
    Yannakakis, M
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2001, 23 (03): : 273 - 303
  • [5] Reduction and slicing of hierarchical state machines
    Heimdahl, MPE
    Whalen, MW
    SOFTWARE ENGINEERING - ESEC/FSE '97, 1997, 1301 : 450 - 467
  • [6] Complexity Metrics for Hierarchical State Machines
    Hall, Mathew
    SEARCH BASED SOFTWARE ENGINEERING, 2011, 6956 : 76 - 81
  • [7] Hierarchical Modeling and abstraction of discrete event systems using finite state machines with parameters
    Chen, YL
    Lin, F
    PROCEEDINGS OF THE 40TH IEEE CONFERENCE ON DECISION AND CONTROL, VOLS 1-5, 2001, : 4110 - 4115
  • [8] Hierarchical Modeling for Monitoring Defects
    Mastrangelo, Christina M.
    Kumar, Naveen
    Forrest, David
    FRONTIERS IN STATISTICAL QUALITY CONTROL 9, 2010, : 225 - +
  • [9] Synthesis of Parallel Hierarchical Finite State Machines
    Sklyarov, Valery
    Skliarova, Iouliia
    2013 21ST IRANIAN CONFERENCE ON ELECTRICAL ENGINEERING (ICEE), 2013,
  • [10] Hierarchical State Machines for Native Mobile Apps
    Prajapati, Dilip
    2012 ANNUAL IEEE INDIA CONFERENCE (INDICON), 2012, : 640 - 642