A lightweight implementation of finite-state general-purpose datagram matehers with linear matching cost is proposed. The given matcher provides plug-in-and-play function by exposing software object slots, as a result message classifying and data process are isolated and software scalability is ensured. After that, through aggregation technology, a multi-classifier is presented to automatically recognize kinds of message types and effectively help extract valid data. In the end, the C ++ programming language is used to implement the design, and it is used in LBS system for processing NMEA0183 datagram from GPS receivers.%提出了一个轻量级有限状态通用报文匹配器及其线性代价的匹配实现.该匹配器通过提供支持即插即用的软件插槽将数据分类和数据处理逻辑分开,实现数据向上层的传递和用户定制信息处理,从而实现高度的可扩展性.通过聚合匹配器,用一个轻量级有限状态自动报文分类器实现了对多种报文格式的自动识别和有效报文提取.用C++语言实现了相应的代码,并将其应用到LBS系统中用以处理GPS NMEA0183电文.
展开▼