About this task
Unlike events, operations are not independent
entities; they are part of a class definition and, therefore, operations
are not organized in hierarchies.
The
usage of operations corresponds to invocation of class methods in
C++. There are three reasons why operations have been integrated with
the statechart framework:
- They allow use of statecharts in architectures
that are not event-driven to specify behaviors of objects in the programming
sense of operations and object state.
- They provide for late design decisions to optimize
execution time and sequencing by converting event communication into
direct operation invocations.
- They allow the description of behaviors of (primitive)
"passive" classes using statecharts.