为了对UML状态图进行形式化验证,将状态图中的语义分为静态语义和动态语义两部分,用描述逻辑知识库表示静态语义,用DL-Safe规则表示动态语义.研究了检查UML状态图一致性的算法,该算法能够用DL-Safe规则对知识库进行推理达到检查状态图一致性的目的,最后分析了算法的可行性.
The semantic information of UML-Statechart is divided into static aspect and dynamic aspect.The static aspect is expressed by a knowledge base of description logics,and the dynamic aspect is expressed by DLSafe rule.An algorithm is proposed for checking the consistency of UML-Statechart,which can use the DL-Safe rule to reason the knowledge base.Finally,the feasibility of the algorithm is analyzed theoretically.