针对非形式化的描述可能导致的不明确和不一致问题,提出并设计实现了一种基于OCL的、能对UML模型中类之间的关联及约束进行分析与验证的OUVE,使得在编写代码之前就能很好地验证类之间的关联关系,以及约束条件是否与实际的要求相符合,降低了由于不明确和不一致导致的设计、编程的错误以及所要付出的修改代价。
Aiming at the problem of inaccurate and discordant arithmetic caused by informal software specification, this paper puts forward an OUVE (OCL-based UML verification environment) setting which is based on Object Constraint Language. OUVE can verify whether the constraints and relationship among classes correspond with practical requirements before coding. Comparing with traditional method, OUVE reduces the cost of modification caused by improper design and programming fault.