Generating class contracts from UML protocol statemachines
Generating class contracts from UML protocol statemachines
复制标题
DOI:
10.1145/1656485.1656493
复制
发表时间:
2009-10
影响因子:
5.4
通讯作者:
Ivan Porres;I. Rauf
中科院分区:
文献类型:
--
作者:
Ivan Porres;I. Rauf
We present an approach to generate behavioral class interfaces in the form of class contracts from UML 2.0 protocol state machines. A generated class contract defines a pre- and post-condition for each operation that triggers a transition in the state machine. We consider the following protocol SM elements: state and state invariants, simple transitions, compound transitions, high-level transitions, complete transitions, self transitions also deal with the case of firing priorities. The generated contracts can be used as a behavioral interface, for documentation, run-time checking and test case generation.