Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Submachine state instances and parameters
Submachine state instances and parameters [message #478146] Wed, 28 January 2009 19:15 Go to next message
Eclipse UserFriend
Originally posted by: regent.larcheveque.asc-csa.gc.ca

Hi all,

I modeled a state machine “A” that includes a parameter “p1”. In a
state machine “B”, I created two Submachine states “a1” and “a2” that
refers to the State Machine “A”. Now, I don't know how to specify in
the model an argument for p1 to the Submachine state “a1” and a
different argument to the Submachine state “a2”. I am digging in the
UML Superstructure specifications and I am unable to find a clear answer
to that simple question. Do I need to use an intermediate Activity
Diagram to model the argument->parameter interconnections?

Thanks in advance
Re: Submachine state instances and parameters [message #478151 is a reply to message #478146] Tue, 03 February 2009 15:39 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Regent,

The only things I could find in the spec related to this question were the
following:

Section 15.3.12 states the following:
As a kind of behavior, a state machine may have an associated behavioral
feature (specification) and be the method of this behavioral feature. In
this case the state machine specifies the behavior of this behavioral
feature. The parameters of the state machine in this case match the
parameters of the behavioral feature and provide the means for accessing
(within the state machine) the behavioral feature parameters.

and P. 570
The behavior-expression is executed if and when the transition fires. It may
be written in terms of operations, attributes, and links of the context
object and the parameters of the triggering event, or any other features
visible in its scope.


But to be honest, I'm still a bit puzzled how one can hook this all up and
represent this only on a Statemachine diagram. You may very well need to
resort to using an Activity diagram or Sequence diagram.

Do you perhaps have a more concrete example of what you are trying to model?
I'll let you know if I can dig anything else up.

Cheers,
- James.

"Regent L'Archeveque" <regent.larcheveque@asc-csa.gc.ca> wrote in message
news:glqas2$sjn$1@build.eclipse.org...
> Hi all,
>
> I modeled a state machine
Re: Submachine state instances and parameters [message #627356 is a reply to message #478146] Tue, 03 February 2009 15:39 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Regent,

The only things I could find in the spec related to this question were the
following:

Section 15.3.12 states the following:
As a kind of behavior, a state machine may have an associated behavioral
feature (specification) and be the method of this behavioral feature. In
this case the state machine specifies the behavior of this behavioral
feature. The parameters of the state machine in this case match the
parameters of the behavioral feature and provide the means for accessing
(within the state machine) the behavioral feature parameters.

and P. 570
The behavior-expression is executed if and when the transition fires. It may
be written in terms of operations, attributes, and links of the context
object and the parameters of the triggering event, or any other features
visible in its scope.


But to be honest, I'm still a bit puzzled how one can hook this all up and
represent this only on a Statemachine diagram. You may very well need to
resort to using an Activity diagram or Sequence diagram.

Do you perhaps have a more concrete example of what you are trying to model?
I'll let you know if I can dig anything else up.

Cheers,
- James.

"Regent L'Archeveque" <regent.larcheveque@asc-csa.gc.ca> wrote in message
news:glqas2$sjn$1@build.eclipse.org...
> Hi all,
>
> I modeled a state machine
Previous Topic:Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found
Next Topic:multiline copyright problem
Goto Forum:
  


Current Time: Wed Apr 24 15:53:33 GMT 2024

Powered by FUDForum. Page generated in 0.02872 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top