Usage of StateMachine or ProtocolStateMachine [message #626725] |
Wed, 18 June 2008 08:51 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Hello,
i'm not a native english speaker, and sometimes, the similiar sounding
descriptions in the UML Superstructure confusing me. Yesterday, i explored
the differences between StateMachines and ProtocolStateMachines, but i
think, i don't get it at all. It would be nice, if someone could explain
respectively correct me with a not so formalistic kind of speech, if my
following opinion is wrong.
StateMachines are used to describe the behavior of an Classifier. Therefore,
the transitions can be connect with an event (Function Behavior), that is
specificate by any Behavior, that was defined for this Cassifier. Due to the
fact, that an StateMachine is the specialization of Behavior, it is possible
to activate another StateMachine, precisly an included StateMachine, from
within an Transition. StateMachines allows to define very complex scenarios.
But a StateMachine didn't requires to be specified inside of an Classifier.
It is also allowed to define them on their own.
However, ProtocolStateMachines are used for concrete operation calls, and
they forces to be defined in the context of a Classifier, contarty to
StateMachines. So, if opne would model the dynamic behavior for an Class,
for instance, he should use a ProtocalStateMachine, because with it, it is
possible to connect the transition directly to an Operation of the
Classifier instead of with an generic behavior, which could be any
specialization of an Behavior.
Am i right?
Thanks a lot
--Timothy
|
|
|
Powered by
FUDForum. Page generated in 0.02777 seconds