Home » Modeling » UML2 » UML State Machine and its context
UML State Machine and its context [message #477460] |
Fri, 30 May 2008 10:40 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Hi,
I want to combine a StateMachine with a Class that is already modeled in
another package as the state machine. I browse the UML Superstructure and
there is the attribute context::BehavioredClassifier, which is an
specialization of Classifier.
But how to connect the StateMachine to the Class. IMHO, i need the class,
for that the state machine defines a possible behavior, because i need
access to the operations that are specified in the class. The transitions
are, of course, only allowed to call existing, valid operations. My problem
is, that i can't specify the StateMachines context attribute. Can anyone
help me with this problem or even correct my understanding of StateMachines,
if this is problem!
Thanks a lot
Timothy
|
|
|
Re: UML State Machine and its context [message #477465 is a reply to message #477460] |
Mon, 02 June 2008 15:28 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Timothy,
The Behavior::context:BehavioredClassifier that you have come across is a
derived property. That means that it cannot directly be set, rather, it
calculates its value based on other values. As a side note, this property
subsets RedefinableElement:redefinitionContext.
See section 13.3.2 for the definition of Behavior::context. From the
spec:
The classifier that is the context for the execution of the behavior. If the
behavior is owned by a BehavioredClassifier, that classifier is the context.
Otherwise, the context is the first BehavioredClassifier reached by
following the chain of owner relationships. For example, following this
algorithm, the context of an entry action in a state machine is the
classifier that owns the state machine. The features of the context
classifier as well as the elements visible to the context classifier are
visible to the behavior.
Cheers,
- James.
"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g1olit$4dl$1@build.eclipse.org...
> Hi,
>
> I want to combine a StateMachine with a Class that is already modeled in
> another package as the state machine. I browse the UML Superstructure and
> there is the attribute context::BehavioredClassifier, which is an
> specialization of Classifier.
>
> But how to connect the StateMachine to the Class. IMHO, i need the class,
> for that the state machine defines a possible behavior, because i need
> access to the operations that are specified in the class. The transitions
> are, of course, only allowed to call existing, valid operations. My
> problem is, that i can't specify the StateMachines context attribute. Can
> anyone help me with this problem or even correct my understanding of
> StateMachines, if this is problem!
>
> Thanks a lot
> Timothy
>
|
|
|
Re: UML State Machine and its context [message #626647 is a reply to message #477460] |
Mon, 02 June 2008 15:28 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Timothy,
The Behavior::context:BehavioredClassifier that you have come across is a
derived property. That means that it cannot directly be set, rather, it
calculates its value based on other values. As a side note, this property
subsets RedefinableElement:redefinitionContext.
See section 13.3.2 for the definition of Behavior::context. From the
spec:
The classifier that is the context for the execution of the behavior. If the
behavior is owned by a BehavioredClassifier, that classifier is the context.
Otherwise, the context is the first BehavioredClassifier reached by
following the chain of owner relationships. For example, following this
algorithm, the context of an entry action in a state machine is the
classifier that owns the state machine. The features of the context
classifier as well as the elements visible to the context classifier are
visible to the behavior.
Cheers,
- James.
"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:g1olit$4dl$1@build.eclipse.org...
> Hi,
>
> I want to combine a StateMachine with a Class that is already modeled in
> another package as the state machine. I browse the UML Superstructure and
> there is the attribute context::BehavioredClassifier, which is an
> specialization of Classifier.
>
> But how to connect the StateMachine to the Class. IMHO, i need the class,
> for that the state machine defines a possible behavior, because i need
> access to the operations that are specified in the class. The transitions
> are, of course, only allowed to call existing, valid operations. My
> problem is, that i can't specify the StateMachines context attribute. Can
> anyone help me with this problem or even correct my understanding of
> StateMachines, if this is problem!
>
> Thanks a lot
> Timothy
>
|
|
|
Goto Forum:
Current Time: Fri Apr 26 03:18:04 GMT 2024
Powered by FUDForum. Page generated in 0.02727 seconds
|