Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要检查元素是否是不透明的行为。我怎么能这样做?
谢谢
如果“不透明行为”是一种类型,则可以使用普通 OCL:
element.oclIsKindOf(OpaqueBehavior)
我很好奇是否可以a<b<c在不使用标准的情况下将其用作条件a<b and b<c。所以我试了一下,我的测试结果通过了。
a<b<c
a<b and b<c
a = 1 b = 2 c = 3 assert(a<b<c) # In bounds test assert(not(b<a<c)) # Ou