Submitted:
18 March 2025
Posted:
19 March 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Proposing an automated verification framework that systematically verifies structural elements of DEVS coupled models through comprehensive test scripts;
- Developing an innovative verification approach to enhance computational efficiency and reduce verification time in DEVS-Python simulation modeling.
2. Related Work
2.1. DEVS Formalism
2.2. Testing Methodology of Traditional DEVS Engines
3. Problem Statement
- While the existing DEVS engines can apply unit testing provided by JAVA, C++, etc., this requires changing the entire development process and takes considerable time to understand and implement. Particularly, the lack of automated tools for integrated testing of coupled models makes it difficult to verify model accuracy.
- Limitations of manual verification for structural elements (child models, coupling, priorities) of coupled models
- Lack of integrated test automation tools for coupled models
4. Proposed Verification Framework
4.1. Overview
- Coupled Model Test Design: Design test cases for the coupled model defined in the model design stage.
- Coupled Model Test Code Generation: Automatically generate test code based on the designed test cases.
- Test Result Verification: Execute the generated test code and verify its results.
4.2. Exeuction Procedure
4.1.1. Coupled Model Test Design
4.1.2. Coupled Model Test Code Generation
4.1.3. Coupled Model Test Design
5. Experimental Results
6. Conclusion and Future Work
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Zeigler, B.P. Hierarchical, modular discrete-event modelling in an object-oriented environment. Simulation 1987, 49, 219–230. [Google Scholar] [CrossRef]
- Zeigler, Bernard P., Tae H. Cho, and Jerzy W. Rozenblit., A knowledge-based simulation environment for hierarchical flexible manufacturing. IEEE Trans. Syst. Man Cybern. Part A 1996, 26.
- Kim, T.G.; Zeigler, B.P. The DEVS formalism: hierarchical, modular systems specification in an object oriented framework. In Proceedings of the 19th Conference on Winter Simulation, Atlanta, GA, USA, 1 December 1987; pp. 559–566. [Google Scholar]
- Kim, T.; Kim, H.-J. DEVS-based experimental framework for blockchain services. Simul. Model. Pract. Theory 2021, 108, 1–20. [Google Scholar] [CrossRef]
- Cho, T. ST-DEVS: A Methodology Using Time-Dependent-Variable-Based Spatiotemporal Computation. Symmetry 2022, 14, 912. [Google Scholar] [CrossRef]
- Kim, T.G.; et al. DEVSim++ Toolset for Defense Modeling and Simulation and Interoperation. J. Def. Model. Simul. 2010, 8, 129–142. [Google Scholar]
- Nam, S.M.; Cho, T.H. Context-Aware Architecture for Probabilistic Voting-based Filtering Scheme in Sensor Networks. IEEE Trans. Mob. Comput. 2017, 16, 2751–2763. [Google Scholar] [CrossRef]
- Wainer, G.; Glinsky, E.; Gutierrez-Alcaraz, M. Studying performance of DEVS modeling and simulation environments using the DEVStone benchmark. Simulation 2011, 87, 555–580. [Google Scholar] [CrossRef]
- Nam, S.M.; Kim, H.-J. WSN-SES/MB: System Entity Structure and Model Base Framework for Large-Scale Wireless Sensor Networks. Sensors 2021, 21, 430. [Google Scholar] [CrossRef] [PubMed]
- Nam, S.M.; Cho, T.H. Discrete event simulation–based energy efficient path determination scheme for probabilistic voting–based filtering scheme in sensor networks. Int. J. Distrib. Sens. Netw. 2020, 16. [Google Scholar] [CrossRef]
- Concepcion, A.I.; Zeigler, B.P. DEVS formalism: A framework for hierarchical model development. IEEE Trans. Softw. Eng. 1988, 14, 228–241. [Google Scholar] [CrossRef]
- Zeigler, B.P. DEVS-SCHEME: A LISP-based environment for hierarchical, modular discrete event models. Technical Report; Department of Electrical and Computer Engineering, University of Arizona: Tucson, AZ, USA, 1986. [Google Scholar]
- Aiken, M.W.; Hayes, G.J. A DEVS-Scheme simulation of an electronic meeting system. Appl. Syst. Simul. Dev. 1989, 20, 31–39. [Google Scholar] [CrossRef]
- Kim, T.G. Hierarchical development of model classes in the DEVS-scheme simulation environment. Expert Syst. Appl. 1991, 3, 343–351. [Google Scholar] [CrossRef]
- Sarjoughian, H.S.; Zeigler, B. DEVSJAVA: Basis for a DEVS-based collaborative M&S environment. Simul. Ser. 1998, 30, 29–36. [Google Scholar]
- Arizona Center for Integrative Modeling and Simulation. DEVSJAVA. 2001. Available online: https://acims.asu.edu/ (accessed on 8 March 2025).
- Nam, S.M. DEVS-Python. Available online: https://github.com/sumannam/DEVS-Python (accessed on 8 March 2025).
- Nam, S.-M. Script-based Test System for Rapid Verification of Atomic Models in Discrete Event System Specification Simulation. J. Korea Soc. Comput. Inf. 2022, 27, 101–107. [Google Scholar]
- Nutaro, J. ADEVS. Available online: https://web.ornl.gov/~nutarojj/adevs/ (accessed on 7 February 2022).
- Van Tendeloo, Y.; Vangheluwe, H. An evaluation of DEVS simulation tools. Simulation 2017, 93, 103–121. [Google Scholar] [CrossRef]
- McLaughlin, M.; Sarjoughian, H. Developing Test Frames for DEVS Models: Black-Box Testing with White-Box Debugging. Technical Report, 2020.
- McLaughlin, M.B.; Sarjoughian, H.S. DEVS-scripting: a black-box test frame for DEVS models. In Proceedings of the 2020 Winter Simulation Conference (WSC), Online, 14-18 December 2020; pp. 2196–2207. [Google Scholar]
- Thimothé, V.; Capocchi, L.; Santucci, J.F. DEVS models design and test using AGILE-based methods with DEVSimPy. In Proceedings of the 26th European Modeling and Simulation Symposium (Simulation in Industry)(EMSS), Bordeaux, France, 10-12 September 2014; pp. 563–569. [Google Scholar]
- Alshareef, A.; Sarjoughian, H.S. DEVS specification for modeling and simulation of the UML activities. In Proceedings of the Symposium on Model-driven Approaches for Simulation Engineering, Virginia Beach, VA, USA, 23-26 April 2017; pp. 1–12. [Google Scholar]
- Zeigler, B.P. Object-oriented simulation with hierarchical, modular models: intelligent agents and endomorphic systems; Academic Press: San Diego, CA, USA, 2014. [Google Scholar]
- Chow, Y.W.; Di Grazia, L.; Pradel, M. PyTy: Repairing Static Type Errors in Python. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering, Lisbon, Portugal, April 2024; pp. 1–13. [Google Scholar]
- Python Software Foundation. "difflib"—Helpers for computing deltas. 2018. Available online: https://docs.python.org/3/library/difflib.html#module-difflib (accessed on 8 March 2025).
- Python Software Foundation. unittest. Available online: https://docs.python.org/3/library/unittest.html (accessed on 8 March 2025).
- Krekel, H. pytest. Available online: https://docs.pytest.org/en/stable/index.html (accessed on 8 March 2025).







|
|
| 1: class EF(COUPLED_MODELS): 2: def __init__(self): 3: COUPLED_MODELS.__init__(self) 4: self.setName(self.__class__.__name__) 5: 6: self.addInPorts("in") 7: self.addOutPorts("out", "result") 8: 9: genr = GENR() 10: transd = TRANSD() 11: 12: self.addModel(genr) 13: self.addModel(transd) 14: 15: self.addCoupling(self, "in", transd, "solved") 16: self.addCoupling(genr, "out", self, "out") 17: self.addCoupling(transd, "out", self, "result") 18: self.addCoupling(transd, "out", genr, "stop") 19: self.addCoupling(genr, "out", transd, "arrived") 20: 21: self.priority_list([genr, transd]) |
| 1: { 2: "log": { 3: "author": "Su Man Nam", 4: "data": "Date", 5: "ver": "Coupling Information of EF Model" 6: }, 7: "EF": [ 9: {"model": "GENR, TRANSD"}, 10: {"select": "TRANSD, GENR"}, 11: {"EF:in": "TRANSD:solved"}, 12: {"GENR:out": "EF:out"}, 13: {"TRANSD:out": "EF:result"}, 14: {"TRANSD:out": "GENR:stop"}, 15: {"GENR:out": "TRANSD:arrived"} 16: ] 17: } |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).