Specializations: OpaqueBehavior, Activity, StateMachine, Interaction For example, OpaqueBehavior for "i = i + 1;"
BehavioralFeature specification: Operation, reception For example, operation "void foo ()"
Combination . Behavior can be invoked directly, through a BehavioralFeature, which it implements as a method or as a classifierBehavior BehavioredClassifier.
For instance,
void foo() { i = i + 1; }
UML gives the developer flexibility that "assigns" an operation with different "behavior" to the call. For example, if there is another behavior of "MyStateMachine", you can simply assign the operation "foo" to call it.
void foo() { (new MyStateMachine(this)).run();
source share