1. Trang chủ
  2. » Giáo Dục - Đào Tạo

Một số phương pháp mô hình hoá và kiểm chứng hình thức cho các hệ thống thời gian thực hướng thành phần luận án TS máy tính 94801

227 33 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 227
Dung lượng 747,4 KB

Nội dung

Đ„I HÅC QC GIA HÀ NËI TRƯÍNG Đ„I HÅC CƠNG NGH› Nguy¹n Trành Đơng MËT SÈ PHƯƠNG PHÁP MƠ HÌNH HĨA VÀ KIšM CHÙNG HÌNH THÙC CHO CÁC H› THÈNG THÍI GIAN THÜC HƯỴNG THÀNH PH†N LUŠN ÁN TI˜N SĨ NGÀNH CÔNG NGH› THÔNG TIN Hà Nëi - 2018 Đ„I HÅC QC GIA HÀ NËI TRƯÍNG Đ„I HÅC CƠNG NGH› Nguy¹n Trành Đơng MËT SÈ PHƯƠNG PHÁP MƠ HÌNH HĨA VÀ KIšM CHÙNG HÌNH THÙC CHO CÁC H› THÈNG THÍI GIAN THĩC HẻNG THNH PHN Chuyờn ngnh: K thuêt PhƯn m·m Mã sè: 9480103.01 LUŠN ÁN TI˜N SĨ NGÀNH CÔNG NGH› THƠNG TIN NGƯÍI HƯỴNG DˆN KHOA HÅC: TS Đ°ng Văn Hưng PGS TS Trương Anh Hoàng Hà Nëi - 2018 Möc löc Trang Möc löc i Danh mưc hình v³ v Danh möc b£ng vii Phö löc viii Tóm t-t xv Chương Giỵi thi»u 1.1 Đ°t v§n đ· 1.2 Các đóng góp cõa luªn án 1.3 Bè cöc cõa luªn án Chương Ki¸n thùc n·n t£ng 2.1 Phát triºn ph¦n m·m düa thành ph¦n 2.1.1 Kÿ ngh» ph¦n m·m düa thành ph¦n 2.1.2 Tính đ-n bði cách xây düng 10 2.1.3 Kián trỳc hằ thống phỏt trin phƯn mÃm düa thành ph¦n 11 2.2 Các phương pháp mơ hình hóa h» thèng thíi gian thüc 12 2.2.1 Ơtơmát thíi gian vùng thíi gian 13 2.2.2 Ơtơmát trång sè 19 i 2.2.3 Ơtơmát kho£ng 20 2.3 Bài toán kiºm chùng h» thèng thíi gian thüc 23 2.3.1 Đ°c t£ mơ hình hóa h» thèng 24 2.3.2 Đ°c t£ tính ch§t cõa h» thèng 24 2.3.3 Bài tốn kiºm tra tính réng 25 2.4 Têng k¸t chương 25 Chương Mơ hình thành ph¦n ph¦n m·m thíi gian thüc thº thùc tương tác 27 3.1 Giỵi thi»u 27 3.2 Các nghiên cùu liên quan 30 3.3 Mơ hình thành ph¦n ph¦n m·m thíi gian thüc 32 3.3.1 Mơ hình thành ph¦n ph¦n m·m 32 3.3.2 So sánh mơ hình thành ph¦n ph¦n m·m 34 3.4 Thº thùc tương tác tương tranh ràng buëc thíi gian 35 3.4.1 Thº thùc tương tác 35 3.4.2 Phép chi¸u 41 3.4.3 Thuªt tốn kiºm chùng tính c-m đưđc 42 3.5 Thº thùc tương tác thíi gian thüc ràng buëc tài nguyên 53 3.5.1 Thº thùc thíi gian - tài nguyên 53 3.5.2 Mơ hình hóa sü tn thõ thº thùc thíi gian - tài nguyên 58 3.6 Têng k¸t chương 66 Chương Đ°c t£ mơ hình hóa giao di»n thíi gian thüc 68 4.1 Giỵi thi»u 68 4.2 Các nghiên cùu liên quan 70 ii 4.3 Giao di»n thành ph¦n ph¦n m·m thíi gian thüc 72 4.4 Ghép giao di»n thành ph¦n 78 4.5 Sü làm giao di»n thành ph¦n 83 4.6 Mơ hình hóa hành vi cõa giao di»n 87 4.7 Têng k¸t chương 91 Chương c tÊ v kim chựng bơng hủp ỗng thới gian thüc vỵi ràng bc tài ngun 93 5.1 Giỵi thi»u 93 5.2 Các nghiên cùu liên quan 95 5.3 Hủp ỗng thới gian 96 5.3.1 Thi¸t k¸ thíi gian 97 5.3.2 Hủp ỗng 99 5.3.3 Ghộp hủp ỗng 100 5.3.4 H» thèng 104 5.4 Hủp ỗng thới gian-ti nguyờn 106 5.4.1 Thi¸t k¸ thíi gian - tài nguyên 107 5.4.2 Hủp ỗng thới gian - ti nguyờn 110 5.4.3 H» thèng thíi gian - tài nguyên 115 5.4.4 Ngụn ngỳ c tÊ thới gian thỹc mău 117 5.5 Têng k¸t chương 128 Chng Kát luên 130 6.1 Các k¸t qu£ Ôt ủc 130 6.2 Hợng phỏt trin tiáp theo 132 Danh mưc cơng trỡnh nghiờn cựu cừa tỏc giÊ liờn quan luên án iii 134 Tài li»u tham kh£o 135 iv Danh mưc hình v³ 1.1 Các đóng góp cõa luªn án 2.1 Minh håa giao di»n thành ph¦n ph¦n m·m 2.2 Minh håa phép ghép song song (a) phép ghép nèi ti¸p (b) 2.3 Minh håa ki¸n trúc chung h» thèng CB-RTS 11 2.4 Minh hồa mỏy bỏn hng bơng ụtụmỏt hỳu hÔn 15 2.5 Minh håa phép giao hai kho£ng (a) phép ghép nèi ti¸p hai kho£ng (b) 22 3.1 Minh håa mơ hình thành ph¦n ph¦n m·m 33 3.2 Minh håa h» thèng đi·u ti¸t khơng khí nhi»t đë 36 3.3 Minh håa chuéi hành đëng ω trưc thíi gian 39 3.4 Sü dàch chuyºn A A : a, b ∈ Σi, c < Σi 46 4.1 Minh håa sü thüc thi theo thíi gian cõa giao di»n 74 4.2 Minh håa phép song song (a) phép nèi ti¸p (b) 80 4.3 Minh håa ơtơmát kho£ng giao di»n mơi trưíng 89 5.1 Minh hồa phÔm cừa đành danh 117 5.2 Minh hồa phÔm cừa sè nguyên 117 5.3 Minh hồa phÔm cõa thuëc tính 118 5.4 Minh hồa phÔm cừa thành ph¦n tài nguyên thành ph¦n ph¦n m·m.118 v [42] P Bulychev, A David, K Guldstrand Larsen, A Legay, M Mikuˇcionis, and D Bøgsted Poulsen, Checking and Distributing Statistical Model Checking, pp 449–463 Berlin, Heidelberg: Springer Berlin Heidelberg, 2012 [43] M Kwiatkowska, G Norman, D Parker, and J Sproston, Performance analysis of probabilistic timed automata using digital clocks, Formal Methods in System Design, vol 29, no 1, pp 33–78, 2006 [44] J.-P Katoen, I S Zapreev, E M Hahn, H Hermanns, and D N Jansen, The ins and outs of the probabilistic model checker mrmc, Performance Evaluation, vol 68, no 2, pp 90 – 104, 2011 Advances in Quantitative Evaluation of Systems [45] N Shankar, Verification of real-time systems using pvs, in Proceedings of the 5th International Conference on Computer Aided Verification, CAV ’93, (London, UK, UK), pp 280–291, Springer-Verlag, 1993 [46] S Tripakis, B Lickly, T A Henzinger, and E A Lee, On relational interfaces, in EMSOFT (S Chakraborty and N Halbwachs, eds.), pp 67– 76, ACM, 2009 [47] L Doyen, T A Henzinger, B Jobstmann, and T Petrov, Interface the-ories with component reuse, in Proceedings of the 8th ACM International Conference on Embedded Software, EMSOFT ’08, (New York, NY, USA), pp 79–88, ACM, 2008 [48] L D Alfaro and T A Henzinger, Interface theories for component-based design, in EMSOFT (T A Henzinger and C M Kirsch, eds.), vol 2211 of Lecture Notes in Computer Science, pp 148–165, Springer, 2001 A Chakrabarti, L D Alfaro, T A Henzinger, M Jurdzinski, and F Y C Mang, Interface compatibility checking for software modules, in Brinksma and Larsen [115], pp 428–441 [49] [50] K G Larsen, U Nyman, and A Wasowski, Modal i/o automata for interface and product line theories., in ESOP (R D Nicola, ed.), vol 4421 of Lecture Notes in Computer Science, pp 64–79, Springer, 2007 139 [51] H Dang Van and H Truong, Modeling and specification of real-time interfaces with utp, in Theories of Programming and Formal Methods (Z Liu, J Woodcock, and H Zhu, eds.), vol 8051 of Lecture Notes in Computer Science, pp 136–150, Springer Berlin Heidelberg, 2013 [52] G Weiss and R Alur, Automata based interfaces for control and schedul-ing, in HSCC (A Bemporad, A Bicchi, and G C Buttazzo, eds.), vol 4416 of Lecture Notes in Computer Science, pp 601–613, Springer, 2007 [53] L D Alfaro and T A Henzinger, Interface automata, in Proceedings of the Joint 8th European Software Engeneering Conference and 9th ACM SIGSOFT Symposium on the Foundation of Software Engeneering (ESEC/FSE-01) (V Gruhn, ed.), vol 26, of SOFTWARE ENGINEER-ING NOTES, (New York), pp 109–120, ACM Press, Sept 10–14 2001 [54] K G Larsen, U Nyman, and A Wasowski, Interface input/output au-tomata., in FM (J Misra, T Nipkow, and E Sekerinski, eds.), vol 4085 of Lecture Notes in Computer Science, pp 82–97, Springer, 2006 [55] T A Henzinger and S Matic, An interface algebra for realtime com-ponents., in IEEE Real Time Technology and Applications Symposium, pp 253–266, IEEE Computer Society, 2006 [56] 2002 D Alfaro and T A Henzinger, Timed interfaces, May 10 [57] E Wandeler and L Thiele, Real-time interfaces for interfacebased de-sign of real-time systems with fixed priority scheduling., in EMSOFT (W Wolf, ed.), pp 80–89, ACM, 2005 [58] L Thiele, E Wandeler, and N Stoimenov, Real-time interfaces for com-posing real-time systems, in Proceedings of the 6th ACM & IEEE Inter-national conference on Embedded software, EMSOFT ’06, (New York, NY, USA), pp 34–43, ACM, 2006 [59] M Huth and M Ryan, Logic in Computer Science: Modelling and Reason-ing about Systems Synthesis Lectures on Computer Science, New York, NY, USA: Cambridge University Press, 2004 140 [60] E M Clarke and E A Emerson, Design and synthesis of synchronization skeletons using branching time temporal logic, pp 52–71 Berlin, Heidel-berg: Springer Berlin Heidelberg, 1982 [61] D Box, Essential COM Boston, MA, USA: Addison-Wesley Longman Publishing Co., Inc., 1st ed., 1997 [62] A Basu, M Bozga, and J Sifakis, Modeling heterogeneous real- time components in bip, in Proceedings of the Fourth IEEE International Con-ference on Software Engineering and Formal Methods, SEFM ’06, (Wash-ington, DC, USA), pp 3–12, IEEE Computer Society, 2006 [63] Z Stojanovic and A Dahanayake, Service-oriented Software System En-gineering Challenges And Practices Hershey, PA, USA: IGI Global, 2005 [64] T Genssler, A Christoph, B Schulz, M Winter, C M Stich, C Zei-dler, P Măuller, A Stelter, O Nierstrasz, S Ducasse, G Arevalo, Roel, R Wuyts, P Liang, B Schăonhage, and R V D Born, Pecos in a nut-shell, 2002 [65] K K Lau and C M Tran, X-man: An mde tool for componentbased system development, in 2012 38th Euromicro Conference on Software Engineering and Advanced Applications, pp 158–165, Sept 2012 [66] Z Liu, H Jifeng, and X Li, Contract Oriented Development of Component Software, pp 349–366 Boston, MA: Springer US, 2004 [67] H Jifeng, X Li, and Z Liu, rcos: A refinement calculus of object sys-tems, Theor Comput Sci., vol 365, pp 109–142, Nov 2006 [68] N Nostro, R Spalazzese, F D Giandomenico, and P Inverardi, Achiev-ing functional and non functional interoperability through synthesized con-nectors, Journal of Systems and Software, vol 111, pp 185–199, 2016 [69] R Chapman, Correctness by construction: A manifesto for high integrity software, in Proceedings of the 10th Australian Workshop on Safety Crit-ical Systems and Software - Volume 55, SCS ’05, (Darlinghurst, Australia, Australia), pp 43–46, Australian Computer Society, Inc., 2006 [70] B Meyer, Applying "design by contract", Computer, vol 25, pp 40–51, Oct 1992 141 [71] D V Hung and P H Thai, Towards a template language for component-based programming, in Proceedings of the 2007 International Conference on Software Engineering Research & Practice, SERP 2007, Volume II, June 25-28, 2007, Las Vegas Nevada, USA, pp 326–332, 2007 [72] D V Chieu and D V Hung, Timed traces and their applications in spec-ification and verification of distributed real-time systems, in Proceedings of the Third Symposium on Information and Communication Technology, SoICT ’12, (New York, NY, USA), pp 31–40, ACM, 2012 [73] F Arbab, Proper Protocol, pp 65–87 Cham: Springer International Pub-lishing, 2016 [74] G Behrmann, A Fehnker, T Hune, K Larsen, P Pettersson, J Romijn, and F Vaandrager, Minimum-Cost Reachability for Priced Time Automata, pp 147–161 Berlin, Heidelberg: Springer Berlin Heidelberg, 2001 [75] J Bengtsson, K Larsen, F Larsson, P Pettersson, and W Yi, UPPAAL — a tool suite for automatic verification of real-time systems, pp 232– 243 Berlin, Heidelberg: Springer Berlin Heidelberg, 1996 [76] G Behrmann, A David, K G Larsen, P Pettersson, and W Yi, Devel-oping uppaal over 15 years, Softw Pract Exper., vol 41, pp 133–142, Feb 2011 [77] A David, K G Larsen, A Legay, U Nyman, and A Wăasowski, ECDAR: An Environment for Compositional Design and Analysis of Real Time Sys-tems, pp 365–370 Berlin, Heidelberg: Springer Berlin Heidelberg, 2010 [78] S B Rayana, M Bozga, S Bensalem, and J Combaz, Rtdfinder: A tool for compositional verification of real-time componentbased systems, in TACAS, 2016 [79] H Ledang and D V Hung, Timing and concurrency specification in component-based real-time embedded systems development, in First Joint IEEE/IFIP Symposium on Theoretical Aspects of Software Engi-neering (TASE ’07), pp 293–304, June 2007 [80] N Medvidovic and R N Taylor, A classification and comparison frame-work for software architecture description languages, IEEE Transactions on Software Engineering, vol 26, pp 70–93, Jan 2000 142 [81] J Rumbaugh, I Jacobson, and G Booch, Unified Modeling Language Ref-erence Manual, The (2Nd Edition) Pearson Higher Education, 2004 [82] D Flanagan, J Farley, W Crawford, and K Magnusson, Java Enterprise in a Nutshell: A Desktop Quick Reference Sebastopol, CA, USA: O’Reilly & Associates, Inc., 1999 [83] D Rubio, Pro Spring Dynamic Modules for OSGi Service Platforms Berkely, CA, USA: Apress, 2009 [84] E Bruneton, T Coupaye, M Leclercq, V Quéma, and J Stefani, An open component model and its support in java, in Component-Based Soft-ware Engineering, 7th International Symposium, CBSE 2004, Edinburgh, UK, May 24-25, 2004, Proceedings, pp 7–22, 2004 [85] E Bruneton, T Coupaye, M Leclercq, V Quéma, and J Stefani, The FRACTAL component model and its support in java, Softw., Pract Ex-per., vol 36, no 11-12, pp 1257–1284, 2006 [86] D Box, Essential COM Boston, MA, USA: Addison-Wesley Longman Publishing Co., Inc., 1st ed., 1997 [87] D I Donaldson and J Magee, Distributed system design using CORBA components, in 30th Annual Hawaii International Conference on System Sciences (HICSS-30), 7-10 January 1997, Maui, Hawaii, USA, pp 4–13, 1997 [88] D Platt, Introducing Microsoft NET Developer Series, Microsoft Press, 2003 [89] B B Andrew Lee Rubinger, Enterprise JavaBeans 3.1: Developing En-terprise Java Components 1005 Gravenstein Highway North, Sebastopol, CA 95472: O’Reilly Media, Inc, 2010 [90] G Alonso, F Casati, H Kuno, and V Machiraju, Web Services: Concepts, Architectures and Applications Springer Publishing Company, Incorpo-rated, 1st ed., 2004 [91] I Crnkovic, Building Reliable Component-Based Software Systems Nor-wood, MA, USA: Artech House, Inc., 2002 143 [92] http://sofa.ow2.org, SOFA Website http://sofa.ow2.org, 2000 [93] J Marino and M Rowley, Understanding SCA (Service Component Ar-chitecture) Addison-Wesley Professional, 1st ed., 2009 [94] S Tripakis, B Lickly, T A Henzinger, and E A Lee, On relational interfaces, in Proceedings of the Seventh ACM International Conference on Embedded Software, EMSOFT ’09, (New York, NY, USA), pp 67–76, ACM, 2009 [95] R Hennicker and A Knapp, Moving from interface theories to assembly theories, Acta Informatica, vol 52, no 2, pp 235–268, 2015 A Chakrabarti, L D Alfaro, T A Henzinger, and F Y C Mang, Synchronous and bidirectional component interfaces, in [96] Brinksma and Larsen [115], pp 414–427 [97] L D Alfaro and T A Henzinger, Interface-based design, in In Engi-neering Theories of Software Intensive Systems, proceedings of the Mark-toberdorf Summer School, Kluwer, 2004 [98] S Tripakis, B Lickly, T A Henzinger, and E A Lee, A theory of syn-chronous relational interfaces, ACM Trans Program Lang Syst., vol 33, pp 14:1–14:41, July 2011 [99] J M Cobleigh, D Giannakopoulou, and C S PĂsĂreanu, Learning assumptions for compositional verification, in Tools and Algorithms for the Construction and Analysis of Systems (H Garavel and J Hatcliff, eds.), (Berlin, Heidelberg), pp 331–346, Springer Berlin Heidelberg, 2003 [100] D Giannakopoulou, C S Pasareanu, and H Barringer, Assumption gen-eration for software component verification, in Proceedings 17th IEEE International Conference on Automated Software Engineering,, pp 3–12, 2002 [101] 2001 L D Alfaro and T A Henzinger, Interface theories, Aug 09 [102] L D Alfaro, T A Henzinger, and M Stoelinga, Timed interfaces, in EMSOFT (A L Sangiovanni-Vincentelli and J Sifakis, eds.), vol 2491 of Lecture Notes in Computer Science, pp 108–122, Springer, 2002 144 [103] P Murthy, Reliability by construction using design by contract method-ology, in Proceedings of the 9th India Software Engineering Conference, ISEC ’16, (New York, NY, USA), pp 201–202, ACM, 2016 [104] Z Manna and A Pnueli, How to cook a temporal proof system for your pet language, in Proceedings of the 10th ACM SIGACTSIGPLAN Sym-posium on Principles of Programming Languages, POPL ’83, (New York, NY, USA), pp 141–154, ACM, 1983 [105] E Eskenazi, A Fioukov, D Hammer, and M Chaudron, Estimation of static memory consumption for systems built from source code com-ponents, in 9th IEEE Conference and Workshops on Engineering of Computer-Based Systems, 2002 [106] G Barthe, M Pavlova, and G Schneider, Precise analysis of memory consumption using program logics, in Software Engineering and Formal Methods, 2005 SEFM 2005 Third IEEE International Conference on, pp 86–95, Sept 2005 [107] J Muskens and M Chaudron, Prediction of run-time resource consump-tion in multitask component-based software systems, in Proceeding of the 7th International Symposium on Component-based Software Engineering (CBSE7), 2004 [108] M D Jonge, J Muskens, and M Chaudron, Scenario-based prediction of run-time resource consumption in component-based software systems, in In Proceedings of the 6th ICSE Workshop on Component-based Software Engineering (CBSE6, p pages, IEEE, 2003 [109] A V Fioukov, E M Eskenazi, D K Hammer, and M R V Chaudron, Evaluation of static properties for component-based architectures, in In Proceedings of 28th EUROMICRO conference, Component-based Software Engineering track IEEE Computer, pp 33–39, Society Press, 2002 [110] J I Rasmussen, K G Larsen, and K Subramani, ResourceOptimal Scheduling Using Priced Timed Automata, pp 220–235 Berlin, Heidel-berg: Springer Berlin Heidelberg, 2004 145 [111] M Casas and G Bronevetsky, Active measurement of memory resource consumption, in Parallel and Distributed Processing Symposium, 2014 IEEE 28th International, pp 995–1004, May 2014 [112] M Casas and G Bronevetsky, Evaluation of hpc applications #x2019; memory resource consumption via active measurement, IEEE Transac-tions on Parallel and Distributed Systems, vol 27, pp 2560–2573, Sept 2016 [113] R Madhavan, S Kulal, and V Kuncak, Contract-based resource ver-ification for higher-order functions with memoization, SIGPLAN Not., vol 52, pp 330–343, Jan 2017 [114] J Rushby, Trustworthy self-integrating systems, in 12th International Conference on Distributed Computing and Internet Technology, ICDCIT 2016 (N Bjørner, S Prasad, and L Parida, eds.), vol 9581 of Lecture Notes in Computer Science, (Bhubaneswar, India), pp 19–29, Springer-Verlag, Jan 2016 E Brinksma and K G Larsen, eds., Computer Aided Verification, 14th International Conference, CAV 2002,Copenhagen, Denmark, July 27-31, 2002, Proceedings, vol 2404 of Lecture Notes in Computer Science, Springer, 2002 [115] ... (pn|| pm) p = (p1 p2) (pn pm ) Đề xuất phương pháp đặc tả mơ hình hóa thành phần phần mềm hợp đồng thời gian hợp đồng thời gian ràng buộc tài ngun Hình 1.1: Các đóng góp cõa luªn ỏn Thự hai, luên... vợi yờu cƯu thiát ká c t Mó thc thi úng gúi Đề xuất mơ hình thành phần phần mềm thời gian thực, thể thức tương tác tương tranh thời gian thể thức tương tranh với ràng buộc tài nguyên = ( 1, 1) (... Nguy¹n Trành Đơng MËT SÈ PHƯƠNG PHÁP MƠ HÌNH HĨA VÀ KIšM CHÙNG HÌNH THÙC CHO CÁC H› THÈNG THI GIAN THĩC HẻNG THNH PHN Chuyờn ngnh: K thuêt Ph¦n m·m Mã sè: 948010 3.01 LUŠN ÁN TI˜N SĨ NGÀNH CƠNG NGH›

Ngày đăng: 09/11/2020, 09:07

w