摘要
基于XML设计了一种Petri网(SIPN)的交换格式。XML是具有数据描述功能、高度结构性及可验证性的语言,首先设计了SIPN的Schema文件,并根据该Schema文件将SIPN图形转化成XML格式文件,该文件包含了SIPN的图形和语义信息。利用DOM对该XML格式的SIPN模型进行解析,可以提取模型的关键信息,为应用程序提供一个接口,这可以推动基于Petri网的应用程序开发,实例证明该方法具有很好的实用性和可扩展性,可以用于其它扩展Petri网格式的设计。
This paper design the exchange format of a kind of Petri(SIPN) based on XML. XML is the language with the data description function, high degree of structure and validation, the paper design the schema document of SIPN, change the SIPN model to XML document format. The file contains graphics and semantic information of the SIPN mod- el. Pastering the XML format model using DOM can get the key information of the model, proving an interface for the application program, which can promote the development of applications based on Petri nets. Example shows the method has practicality and extensibility, which can be used in other extensible Petri Nets' exchange format design.
出处
《计算机与数字工程》
2009年第6期144-148,共5页
Computer & Digital Engineering