【发布时间】:2013-10-20 13:18:29
【问题描述】:
我是 OCL 的新手,我对前置条件和后置条件的工作方式有些疑问。
后置条件可以放在 if then 语句中吗?
例如,下面这段代码是有效的还是我只是在混合概念?
Context [some context here]
if (
... some conditions...
) then (
result = 1
post: self.isComplete() -- for example
)
endif
非常感谢您的帮助
【问题讨论】:
标签: ocl post-conditions