实时数据库系统及其在有轨电车弱电集成系统中的应用
Real-time database system applied to weak current integrated system of tram
-
摘要: 由于传统关系型数据库无法满足基于组态软件的有轨电车弱电集成系统对于实时性的要求,提出利用内存数据库技术、面向对象模块化设计方法实现实时数据库系统的设计思路。通过分析有轨电车弱电集成系统实际数据特点,建立实时数据库数据模型,采用基于优先级2PL算法的锁式事务并发控制技术解决了实时数据库系统中实时事务冲突问题,利用面向对象的模块化设计方法以及动态链接库技术提供实时数据库的部分接口函数,并以有轨电车弱电集成系统子系统之一的电力监控系统为例,对实时数据库系统进行验证。结果表明,该实时数据库系统能够满足实时性要求,目前已成功应用在深圳龙华线有轨电车弱电集成系统项目。Abstract: As the traditional relational database can not meet the requirement of the weak current integrated system which is developed by using configuration software for real-time. A design method of RTDB applied to the weak current integrated system of trame was put forward by using main memory database technology and object-oriented modular design method. By analyzing the actual data characteristics, the data model of the RTDB was built. The lock transaction concurrency control technology based on priority two-phase lock algorithm was used to solve the real-time transaction conflict problem in RTDB. By using object-oriented modular design method and dynamic link library technology, some interface functions of the RTDB were provided. Taking the power supervisory system of one of the subsystems of the weak current integrated system as an example, it is proved that the RTDB meets the real-time requirements and has been successfully applied to the tram weak current integrated system in Shenzhen Longhua Line tram project for the moment.