Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Questions to Sequence Diagram
Questions to Sequence Diagram [message #469721] Tue, 30 January 2007 23:49 Go to next message
Eclipse UserFriend
Originally posted by: psentosa.yahoo.com

Hi all,

I tried to use the UML Editor to define a simple statemachine. Unfortunately
I can't confirm whether this is a correct usage of the different elements
If you have some time, could you please give a quick glance on the diagram
attached and its .uml file created with the UML Editor?

Many thanks in advance

Regards
Paul

ps: Unfortunately I still don't know how to define some methods within a
state. For the entry/.... statement I used an "entry activity"
I'll be thankful for every comments/correction




  • Attachment: mw.jpg
    (Size: 47.45KB, Downloaded 102 times)
  • Attachment: SM_MW.uml
    (Size: 4.51KB, Downloaded 147 times)
Re: Questions to Sequence Diagram [message #469722 is a reply to message #469721] Tue, 30 January 2007 23:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: psentosa.yahoo.com

I tried to attach the .uml file but it didn't work. The content:

<?xml version="1.0" encoding="UTF-8"?>

<uml:Model xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">

<packagedElement xmi:type="uml:Class" xmi:id="_hx9O8LClEduT5_CrhBdvpw"
name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">

<ownedBehavior xmi:type="uml:StateMachine" xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
name="States of MW">

<region xmi:id="_VXI98LCuEduT5_CrhBdvpw">

<subvertex xmi:type="uml:Pseudostate" xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>

<subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
_GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
_9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
name="turnOffLight1"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
name="turnOnLight2"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw _HrkJULCvEduT5_CrhBdvpw
_mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
_HHjdULCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
name="turnOnLight3"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
name="turnOffLight4"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
_HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
_mg4QoLCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
name="turnOffLight5"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
_IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
name="addOneMinuteToTimer"/>

</subvertex>

<transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>

<transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>

<transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>

<transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>

<transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>

<transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
source="_eerKMLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>

</region>

</ownedBehavior>

</packagedElement>

</uml:Model>


"Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
news:epoli9$b5p$2@utils.eclipse.org...
> Hi all,
>
> I tried to use the UML Editor to define a simple statemachine.
Unfortunately
> I can't confirm whether this is a correct usage of the different elements
> If you have some time, could you please give a quick glance on the diagram
> attached and its .uml file created with the UML Editor?
>
> Many thanks in advance
>
> Regards
> Paul
>
> ps: Unfortunately I still don't know how to define some methods within a
> state. For the entry/.... statement I used an "entry activity"
> I'll be thankful for every comments/correction
>
>
>
>


  • Attachment: SM_MW.uml
    (Size: 4.51KB, Downloaded 142 times)
Re: Questions to Sequence Diagram [message #469815 is a reply to message #469722] Wed, 31 January 2007 15:31 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Paul,

Just having a quick glance over this model, it looks like you are missing
Triggers and Events for the triggers on your transitions. Also, as you
mentioned, entry criteria is also missing.
Have a look at the superstructure spec for details
http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams. That
fully describes all the ins and outs of the UML metamodel. Watch out for
the constraints.

For situations like these, a good UML tool would come in handy :) If you
come across a good one for state charts let us know.

Also, try to run validation on your UML metamodel. Not all the validation
rules are implemented but it might be of some use.

Regards,

- James.


"Paul Sentosa" <psentosa@yahoo.com> wrote in message
news:epom1h$c7u$1@utils.eclipse.org...
> I tried to attach the .uml file but it didn't work. The content:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <uml:Model xmi:version="2.1"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
>
> <packagedElement xmi:type="uml:Class" xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
>
> <ownedBehavior xmi:type="uml:StateMachine"
xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> name="States of MW">
>
> <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
>
> <subvertex xmi:type="uml:Pseudostate" xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
>
> <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> name="turnOffLight1"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> name="turnOnLight2"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw _HrkJULCvEduT5_CrhBdvpw
> _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> _HHjdULCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> name="turnOnLight3"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> name="turnOffLight4"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> _mg4QoLCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> name="turnOffLight5"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> name="addOneMinuteToTimer"/>
>
> </subvertex>
>
> <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
> target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
> target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
> target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
> kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> source="_eerKMLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
> target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
> target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
>
> </region>
>
> </ownedBehavior>
>
> </packagedElement>
>
> </uml:Model>
>
>
> "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> news:epoli9$b5p$2@utils.eclipse.org...
> > Hi all,
> >
> > I tried to use the UML Editor to define a simple statemachine.
> Unfortunately
> > I can't confirm whether this is a correct usage of the different
elements
> > If you have some time, could you please give a quick glance on the
diagram
> > attached and its .uml file created with the UML Editor?
> >
> > Many thanks in advance
> >
> > Regards
> > Paul
> >
> > ps: Unfortunately I still don't know how to define some methods within a
> > state. For the entry/.... statement I used an "entry activity"
> > I'll be thankful for every comments/correction
> >
> >
> >
> >
>
>
>
Re: Questions to Sequence Diagram [message #469822 is a reply to message #469815] Wed, 31 January 2007 22:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: psentosa.yahoo.com

Hi James,

thanks again for the tip.
Yes, a UML tool would be very helpful in this case, unfortunately I haven't
found any either.
I tried to find the information I needed from the spec, but somehow I'm
still not sure with what I got.
Just want to confirm what I made (referring to your comment before):

For behavior on the entry : New Child (of State) > Entry Activity (I made
this already on the example I sent)
For behavior within a state: New Child (of State) > Do Activity Activity

I also define a trigger for each transition and each of these is connected
to an event (defined outside the StateMachine, on the same "level" as
Class).

Sorry for the repeated questions but it's quite difficult for me to find out
everything from the spec

Many thanks
Regards
Paul

"James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
news:epqcp9$c2o$2@utils.eclipse.org...
> Hi Paul,
>
> Just having a quick glance over this model, it looks like you are missing
> Triggers and Events for the triggers on your transitions. Also, as you
> mentioned, entry criteria is also missing.
> Have a look at the superstructure spec for details
> http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams. That
> fully describes all the ins and outs of the UML metamodel. Watch out for
> the constraints.
>
> For situations like these, a good UML tool would come in handy :) If you
> come across a good one for state charts let us know.
>
> Also, try to run validation on your UML metamodel. Not all the validation
> rules are implemented but it might be of some use.
>
> Regards,
>
> - James.
>
>
> "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> news:epom1h$c7u$1@utils.eclipse.org...
> > I tried to attach the .uml file but it didn't work. The content:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <uml:Model xmi:version="2.1"
> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> > xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> > xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
> >
> > <packagedElement xmi:type="uml:Class" xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> > name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
> >
> > <ownedBehavior xmi:type="uml:StateMachine"
> xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> > name="States of MW">
> >
> > <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
> >
> > <subvertex xmi:type="uml:Pseudostate" xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> > outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> > name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> > _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> > _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> > name="turnOffLight1"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> > name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> > incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> > name="turnOnLight2"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> > name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw
_HrkJULCvEduT5_CrhBdvpw
> > _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> > _HHjdULCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> > name="turnOnLight3"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> > name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> > incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> > name="turnOffLight4"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> > name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> > _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> > _mg4QoLCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> > name="turnOffLight5"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> > name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> > _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> > incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> > name="addOneMinuteToTimer"/>
> >
> > </subvertex>
> >
> > <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> > target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> > target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> > target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> > target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> > target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> > target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> > target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
> > target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
> > target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
> > target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
> > kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> > source="_eerKMLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
> > target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
> > target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> >
> > </region>
> >
> > </ownedBehavior>
> >
> > </packagedElement>
> >
> > </uml:Model>
> >
> >
> > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > news:epoli9$b5p$2@utils.eclipse.org...
> > > Hi all,
> > >
> > > I tried to use the UML Editor to define a simple statemachine.
> > Unfortunately
> > > I can't confirm whether this is a correct usage of the different
> elements
> > > If you have some time, could you please give a quick glance on the
> diagram
> > > attached and its .uml file created with the UML Editor?
> > >
> > > Many thanks in advance
> > >
> > > Regards
> > > Paul
> > >
> > > ps: Unfortunately I still don't know how to define some methods within
a
> > > state. For the entry/.... statement I used an "entry activity"
> > > I'll be thankful for every comments/correction
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
Re: Questions to Sequence Diagram [message #469829 is a reply to message #469822] Thu, 01 February 2007 21:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: psentosa.yahoo.com

Sorry...one more question please to this topic:
how can I define more than one activities within a state? (as seen in the
example, there are more than one methods to define within one state).
The option "Do Activity Activity can be used only once, and also according
to the spec : doActivity::Behavior[0..1].
Or do we have to use something else to define the methods?
Thanks

Paul

"Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
news:epr44q$hs4$1@utils.eclipse.org...
> Hi James,
>
> thanks again for the tip.
> Yes, a UML tool would be very helpful in this case, unfortunately I
haven't
> found any either.
> I tried to find the information I needed from the spec, but somehow I'm
> still not sure with what I got.
> Just want to confirm what I made (referring to your comment before):
>
> For behavior on the entry : New Child (of State) > Entry Activity (I made
> this already on the example I sent)
> For behavior within a state: New Child (of State) > Do Activity Activity
>
> I also define a trigger for each transition and each of these is connected
> to an event (defined outside the StateMachine, on the same "level" as
> Class).
>
> Sorry for the repeated questions but it's quite difficult for me to find
out
> everything from the spec
>
> Many thanks
> Regards
> Paul
>
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> news:epqcp9$c2o$2@utils.eclipse.org...
> > Hi Paul,
> >
> > Just having a quick glance over this model, it looks like you are
missing
> > Triggers and Events for the triggers on your transitions. Also, as you
> > mentioned, entry criteria is also missing.
> > Have a look at the superstructure spec for details
> > http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams.
That
> > fully describes all the ins and outs of the UML metamodel. Watch out
for
> > the constraints.
> >
> > For situations like these, a good UML tool would come in handy :) If
you
> > come across a good one for state charts let us know.
> >
> > Also, try to run validation on your UML metamodel. Not all the
validation
> > rules are implemented but it might be of some use.
> >
> > Regards,
> >
> > - James.
> >
> >
> > "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> > news:epom1h$c7u$1@utils.eclipse.org...
> > > I tried to attach the .uml file but it didn't work. The content:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <uml:Model xmi:version="2.1"
> > xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> > > xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> > > xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
> > >
> > > <packagedElement xmi:type="uml:Class" xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> > > name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
> > >
> > > <ownedBehavior xmi:type="uml:StateMachine"
> > xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> > > name="States of MW">
> > >
> > > <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
> > >
> > > <subvertex xmi:type="uml:Pseudostate" xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> > > outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> > > name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> > > _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> > > _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> > > name="turnOffLight1"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> > > name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> > > incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> > > name="turnOnLight2"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> > > name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw
> _HrkJULCvEduT5_CrhBdvpw
> > > _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> > > _HHjdULCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> > > name="turnOnLight3"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> > > name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> > > incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> > > name="turnOffLight4"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> > > name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> > > _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> > > _mg4QoLCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> > > name="turnOffLight5"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> > > name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> > > _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> > > incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> > > name="addOneMinuteToTimer"/>
> > >
> > > </subvertex>
> > >
> > > <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> > > target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> > > target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> > > target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> > > target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> > > target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> > > target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> > > target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
> > > target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
> > > target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
> > > target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
> > > kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> > > source="_eerKMLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
> > > target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
> > > target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > >
> > > </region>
> > >
> > > </ownedBehavior>
> > >
> > > </packagedElement>
> > >
> > > </uml:Model>
> > >
> > >
> > > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > > news:epoli9$b5p$2@utils.eclipse.org...
> > > > Hi all,
> > > >
> > > > I tried to use the UML Editor to define a simple statemachine.
> > > Unfortunately
> > > > I can't confirm whether this is a correct usage of the different
> > elements
> > > > If you have some time, could you please give a quick glance on the
> > diagram
> > > > attached and its .uml file created with the UML Editor?
> > > >
> > > > Many thanks in advance
> > > >
> > > > Regards
> > > > Paul
> > > >
> > > > ps: Unfortunately I still don't know how to define some methods
within
> a
> > > > state. For the entry/.... statement I used an "entry activity"
> > > > I'll be thankful for every comments/correction
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
>
Re: Questions to Sequence Diagram [message #470081 is a reply to message #469829] Mon, 05 February 2007 23:12 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Paul,

There are 3 special kinds of internal behavior. 'entry', 'do' and 'exit'.
The 'do' behavior is a behavior that is ongoing while the state is active.
The activity can make reference to BehavioralFeatures.... Operations are
Behavioral Features.

You might want to create an Activity Diagram to model the behavior of your
doActivity.

From the spec, there doesn't seem to be a way to add arbitrary number of
Activities to a State.

Hope this helps.

- James.


"Paul Sentosa" <psentosa@yahoo.com> wrote in message
news:eptlcg$u50$1@utils.eclipse.org...
> Sorry...one more question please to this topic:
> how can I define more than one activities within a state? (as seen in the
> example, there are more than one methods to define within one state).
> The option "Do Activity Activity can be used only once, and also according
> to the spec : doActivity::Behavior[0..1].
> Or do we have to use something else to define the methods?
> Thanks
>
> Paul
>
> "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> news:epr44q$hs4$1@utils.eclipse.org...
> > Hi James,
> >
> > thanks again for the tip.
> > Yes, a UML tool would be very helpful in this case, unfortunately I
> haven't
> > found any either.
> > I tried to find the information I needed from the spec, but somehow I'm
> > still not sure with what I got.
> > Just want to confirm what I made (referring to your comment before):
> >
> > For behavior on the entry : New Child (of State) > Entry Activity (I
made
> > this already on the example I sent)
> > For behavior within a state: New Child (of State) > Do Activity Activity
> >
> > I also define a trigger for each transition and each of these is
connected
> > to an event (defined outside the StateMachine, on the same "level" as
> > Class).
> >
> > Sorry for the repeated questions but it's quite difficult for me to find
> out
> > everything from the spec
> >
> > Many thanks
> > Regards
> > Paul
> >
> > "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> > news:epqcp9$c2o$2@utils.eclipse.org...
> > > Hi Paul,
> > >
> > > Just having a quick glance over this model, it looks like you are
> missing
> > > Triggers and Events for the triggers on your transitions. Also, as
you
> > > mentioned, entry criteria is also missing.
> > > Have a look at the superstructure spec for details
> > > http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams.
> That
> > > fully describes all the ins and outs of the UML metamodel. Watch out
> for
> > > the constraints.
> > >
> > > For situations like these, a good UML tool would come in handy :) If
> you
> > > come across a good one for state charts let us know.
> > >
> > > Also, try to run validation on your UML metamodel. Not all the
> validation
> > > rules are implemented but it might be of some use.
> > >
> > > Regards,
> > >
> > > - James.
> > >
> > >
> > > "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> > > news:epom1h$c7u$1@utils.eclipse.org...
> > > > I tried to attach the .uml file but it didn't work. The content:
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > >
> > > > <uml:Model xmi:version="2.1"
> > > xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> > > > xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> > > > xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
> > > >
> > > > <packagedElement xmi:type="uml:Class"
xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> > > > name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
> > > >
> > > > <ownedBehavior xmi:type="uml:StateMachine"
> > > xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> > > > name="States of MW">
> > > >
> > > > <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
> > > >
> > > > <subvertex xmi:type="uml:Pseudostate"
xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> > > > outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> > > > name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> > > > _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> > > > _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> > > > name="turnOffLight1"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> > > > name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> > > > incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> > > > name="turnOnLight2"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> > > > name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw
> > _HrkJULCvEduT5_CrhBdvpw
> > > > _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> > > > _HHjdULCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> > > > name="turnOnLight3"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> > > > name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> > > > incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> > > > name="turnOffLight4"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> > > > name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> > > > _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> > > > _mg4QoLCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> > > > name="turnOffLight5"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> > > > name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> > > > _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> > > > incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> > > > name="addOneMinuteToTimer"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> > > > target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> > > > target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> > > > target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> > > > target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> > > > target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> > > > target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> > > > target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
> > > > target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
> > > > target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
> > > > target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
> > > > kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> > > > source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
> > > > target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
> > > > target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > >
> > > > </region>
> > > >
> > > > </ownedBehavior>
> > > >
> > > > </packagedElement>
> > > >
> > > > </uml:Model>
> > > >
> > > >
> > > > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > > > news:epoli9$b5p$2@utils.eclipse.org...
> > > > > Hi all,
> > > > >
> > > > > I tried to use the UML Editor to define a simple statemachine.
> > > > Unfortunately
> > > > > I can't confirm whether this is a correct usage of the different
> > > elements
> > > > > If you have some time, could you please give a quick glance on the
> > > diagram
> > > > > attached and its .uml file created with the UML Editor?
> > > > >
> > > > > Many thanks in advance
> > > > >
> > > > > Regards
> > > > > Paul
> > > > >
> > > > > ps: Unfortunately I still don't know how to define some methods
> within
> > a
> > > > > state. For the entry/.... statement I used an "entry activity"
> > > > > I'll be thankful for every comments/correction
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Questions to Sequence Diagram [message #470143 is a reply to message #470081] Wed, 07 February 2007 17:31 Go to previous message
Eclipse UserFriend
Originally posted by: psentosa.yahoo.com

Once again, many thanks for the explanation.

Regards
Paul

"James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
news:eq8dkb$8u9$2@utils.eclipse.org...
> Hi Paul,
>
> There are 3 special kinds of internal behavior. 'entry', 'do' and
'exit'.
> The 'do' behavior is a behavior that is ongoing while the state is active.
> The activity can make reference to BehavioralFeatures.... Operations are
> Behavioral Features.
>
> You might want to create an Activity Diagram to model the behavior of your
> doActivity.
>
> From the spec, there doesn't seem to be a way to add arbitrary number of
> Activities to a State.
>
> Hope this helps.
>
> - James.
>
>
> "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> news:eptlcg$u50$1@utils.eclipse.org...
> > Sorry...one more question please to this topic:
> > how can I define more than one activities within a state? (as seen in
the
> > example, there are more than one methods to define within one state).
> > The option "Do Activity Activity can be used only once, and also
according
> > to the spec : doActivity::Behavior[0..1].
> > Or do we have to use something else to define the methods?
> > Thanks
> >
> > Paul
> >
> > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > news:epr44q$hs4$1@utils.eclipse.org...
> > > Hi James,
> > >
> > > thanks again for the tip.
> > > Yes, a UML tool would be very helpful in this case, unfortunately I
> > haven't
> > > found any either.
> > > I tried to find the information I needed from the spec, but somehow
I'm
> > > still not sure with what I got.
> > > Just want to confirm what I made (referring to your comment before):
> > >
> > > For behavior on the entry : New Child (of State) > Entry Activity (I
> made
> > > this already on the example I sent)
> > > For behavior within a state: New Child (of State) > Do Activity
Activity
> > >
> > > I also define a trigger for each transition and each of these is
> connected
> > > to an event (defined outside the StateMachine, on the same "level" as
> > > Class).
> > >
> > > Sorry for the repeated questions but it's quite difficult for me to
find
> > out
> > > everything from the spec
> > >
> > > Many thanks
> > > Regards
> > > Paul
> > >
> > > "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> > > news:epqcp9$c2o$2@utils.eclipse.org...
> > > > Hi Paul,
> > > >
> > > > Just having a quick glance over this model, it looks like you are
> > missing
> > > > Triggers and Events for the triggers on your transitions. Also, as
> you
> > > > mentioned, entry criteria is also missing.
> > > > Have a look at the superstructure spec for details
> > > > http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams.
> > That
> > > > fully describes all the ins and outs of the UML metamodel. Watch
out
> > for
> > > > the constraints.
> > > >
> > > > For situations like these, a good UML tool would come in handy :)
If
> > you
> > > > come across a good one for state charts let us know.
> > > >
> > > > Also, try to run validation on your UML metamodel. Not all the
> > validation
> > > > rules are implemented but it might be of some use.
> > > >
> > > > Regards,
> > > >
> > > > - James.
> > > >
> > > >
> > > > "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> > > > news:epom1h$c7u$1@utils.eclipse.org...
> > > > > I tried to attach the .uml file but it didn't work. The content:
> > > > >
> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > >
> > > > > <uml:Model xmi:version="2.1"
> > > > xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> > > > > xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> > > > > xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
> > > > >
> > > > > <packagedElement xmi:type="uml:Class"
> xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> > > > > name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
> > > > >
> > > > > <ownedBehavior xmi:type="uml:StateMachine"
> > > > xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> > > > > name="States of MW">
> > > > >
> > > > > <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
> > > > >
> > > > > <subvertex xmi:type="uml:Pseudostate"
> xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> > > > > outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> > > > > name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> > > > > _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> > > > > _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> > > > > name="turnOffLight1"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> > > > > name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> > > > > incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> > > > > name="turnOnLight2"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> > > > > name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw
> > > _HrkJULCvEduT5_CrhBdvpw
> > > > > _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> > > > > _HHjdULCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> > > > > name="turnOnLight3"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> > > > > name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> > > > > incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> > > > > name="turnOffLight4"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> > > > > name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> > > > > _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> > > > > _mg4QoLCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> > > > > name="turnOffLight5"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> > > > > name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> > > > > _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> > > > > incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> > > > > name="addOneMinuteToTimer"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> > > > > target="_bojRoLCuEduT5_CrhBdvpw"
source="_Z0mnwLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> > > > > target="_cQFywLCuEduT5_CrhBdvpw"
source="_bojRoLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> > > > > target="_bojRoLCuEduT5_CrhBdvpw"
source="_cQFywLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> > > > > target="_bojRoLCuEduT5_CrhBdvpw"
source="_dMctULCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> > > > > target="_cQFywLCuEduT5_CrhBdvpw"
source="_dt-GALCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> > > > > target="_dMctULCuEduT5_CrhBdvpw"
source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> > > > > target="_dMctULCuEduT5_CrhBdvpw"
source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw"
name="buttonPressed1_3"
> > > > > target="_cw8dELCuEduT5_CrhBdvpw"
source="_bojRoLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw"
name="buttonPressed5_3"
> > > > > target="_cw8dELCuEduT5_CrhBdvpw"
source="_dt-GALCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw"
name="buttonPressed3_6"
> > > > > target="_eerKMLCuEduT5_CrhBdvpw"
source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw"
name="buttonPressed6_6"
> > > > > kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> > > > > source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw"
name="timerTimesOut6_5"
> > > > > target="_dt-GALCuEduT5_CrhBdvpw"
source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw"
name="timerTimesOut3_5"
> > > > > target="_dt-GALCuEduT5_CrhBdvpw"
source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > </region>
> > > > >
> > > > > </ownedBehavior>
> > > > >
> > > > > </packagedElement>
> > > > >
> > > > > </uml:Model>
> > > > >
> > > > >
> > > > > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > > > > news:epoli9$b5p$2@utils.eclipse.org...
> > > > > > Hi all,
> > > > > >
> > > > > > I tried to use the UML Editor to define a simple statemachine.
> > > > > Unfortunately
> > > > > > I can't confirm whether this is a correct usage of the different
> > > > elements
> > > > > > If you have some time, could you please give a quick glance on
the
> > > > diagram
> > > > > > attached and its .uml file created with the UML Editor?
> > > > > >
> > > > > > Many thanks in advance
> > > > > >
> > > > > > Regards
> > > > > > Paul
> > > > > >
> > > > > > ps: Unfortunately I still don't know how to define some methods
> > within
> > > a
> > > > > > state. For the entry/.... statement I used an "entry activity"
> > > > > > I'll be thankful for every comments/correction
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Questions to Sequence Diagram [message #576917 is a reply to message #469721] Tue, 30 January 2007 23:57 Go to previous message
Eclipse UserFriend
Originally posted by: psentosa.yahoo.com

I tried to attach the .uml file but it didn't work. The content:

<?xml version="1.0" encoding="UTF-8"?>

<uml:Model xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">

<packagedElement xmi:type="uml:Class" xmi:id="_hx9O8LClEduT5_CrhBdvpw"
name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">

<ownedBehavior xmi:type="uml:StateMachine" xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
name="States of MW">

<region xmi:id="_VXI98LCuEduT5_CrhBdvpw">

<subvertex xmi:type="uml:Pseudostate" xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>

<subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
_GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
_9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
name="turnOffLight1"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
name="turnOnLight2"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw _HrkJULCvEduT5_CrhBdvpw
_mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
_HHjdULCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
name="turnOnLight3"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
name="turnOffLight4"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
_HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
_mg4QoLCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
name="turnOffLight5"/>

</subvertex>

<subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
_IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">

<entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
name="addOneMinuteToTimer"/>

</subvertex>

<transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>

<transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>

<transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>

<transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>

<transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>

<transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
source="_eerKMLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>

<transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>

</region>

</ownedBehavior>

</packagedElement>

</uml:Model>


"Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
news:epoli9$b5p$2@utils.eclipse.org...
> Hi all,
>
> I tried to use the UML Editor to define a simple statemachine.
Unfortunately
> I can't confirm whether this is a correct usage of the different elements
> If you have some time, could you please give a quick glance on the diagram
> attached and its .uml file created with the UML Editor?
>
> Many thanks in advance
>
> Regards
> Paul
>
> ps: Unfortunately I still don't know how to define some methods within a
> state. For the entry/.... statement I used an "entry activity"
> I'll be thankful for every comments/correction
>
>
>
>


  • Attachment: SM_MW.uml
    (Size: 4.51KB, Downloaded 115 times)
Re: Questions to Sequence Diagram [message #578832 is a reply to message #469722] Wed, 31 January 2007 15:31 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Paul,

Just having a quick glance over this model, it looks like you are missing
Triggers and Events for the triggers on your transitions. Also, as you
mentioned, entry criteria is also missing.
Have a look at the superstructure spec for details
http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams. That
fully describes all the ins and outs of the UML metamodel. Watch out for
the constraints.

For situations like these, a good UML tool would come in handy :) If you
come across a good one for state charts let us know.

Also, try to run validation on your UML metamodel. Not all the validation
rules are implemented but it might be of some use.

Regards,

- James.


"Paul Sentosa" <psentosa@yahoo.com> wrote in message
news:epom1h$c7u$1@utils.eclipse.org...
> I tried to attach the .uml file but it didn't work. The content:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <uml:Model xmi:version="2.1"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
>
> <packagedElement xmi:type="uml:Class" xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
>
> <ownedBehavior xmi:type="uml:StateMachine"
xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> name="States of MW">
>
> <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
>
> <subvertex xmi:type="uml:Pseudostate" xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
>
> <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> name="turnOffLight1"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> name="turnOnLight2"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw _HrkJULCvEduT5_CrhBdvpw
> _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> _HHjdULCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> name="turnOnLight3"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> name="turnOffLight4"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> _mg4QoLCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> name="turnOffLight5"/>
>
> </subvertex>
>
> <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
>
> <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> name="addOneMinuteToTimer"/>
>
> </subvertex>
>
> <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
> target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
> target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
> target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
> kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> source="_eerKMLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
> target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
>
> <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
> target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
>
> </region>
>
> </ownedBehavior>
>
> </packagedElement>
>
> </uml:Model>
>
>
> "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> news:epoli9$b5p$2@utils.eclipse.org...
> > Hi all,
> >
> > I tried to use the UML Editor to define a simple statemachine.
> Unfortunately
> > I can't confirm whether this is a correct usage of the different
elements
> > If you have some time, could you please give a quick glance on the
diagram
> > attached and its .uml file created with the UML Editor?
> >
> > Many thanks in advance
> >
> > Regards
> > Paul
> >
> > ps: Unfortunately I still don't know how to define some methods within a
> > state. For the entry/.... statement I used an "entry activity"
> > I'll be thankful for every comments/correction
> >
> >
> >
> >
>
>
>
Re: Questions to Sequence Diagram [message #579053 is a reply to message #469815] Wed, 31 January 2007 22:10 Go to previous message
Eclipse UserFriend
Originally posted by: psentosa.yahoo.com

Hi James,

thanks again for the tip.
Yes, a UML tool would be very helpful in this case, unfortunately I haven't
found any either.
I tried to find the information I needed from the spec, but somehow I'm
still not sure with what I got.
Just want to confirm what I made (referring to your comment before):

For behavior on the entry : New Child (of State) > Entry Activity (I made
this already on the example I sent)
For behavior within a state: New Child (of State) > Do Activity Activity

I also define a trigger for each transition and each of these is connected
to an event (defined outside the StateMachine, on the same "level" as
Class).

Sorry for the repeated questions but it's quite difficult for me to find out
everything from the spec

Many thanks
Regards
Paul

"James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
news:epqcp9$c2o$2@utils.eclipse.org...
> Hi Paul,
>
> Just having a quick glance over this model, it looks like you are missing
> Triggers and Events for the triggers on your transitions. Also, as you
> mentioned, entry criteria is also missing.
> Have a look at the superstructure spec for details
> http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams. That
> fully describes all the ins and outs of the UML metamodel. Watch out for
> the constraints.
>
> For situations like these, a good UML tool would come in handy :) If you
> come across a good one for state charts let us know.
>
> Also, try to run validation on your UML metamodel. Not all the validation
> rules are implemented but it might be of some use.
>
> Regards,
>
> - James.
>
>
> "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> news:epom1h$c7u$1@utils.eclipse.org...
> > I tried to attach the .uml file but it didn't work. The content:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <uml:Model xmi:version="2.1"
> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> > xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> > xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
> >
> > <packagedElement xmi:type="uml:Class" xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> > name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
> >
> > <ownedBehavior xmi:type="uml:StateMachine"
> xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> > name="States of MW">
> >
> > <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
> >
> > <subvertex xmi:type="uml:Pseudostate" xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> > outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> > name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> > _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> > _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> > name="turnOffLight1"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> > name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> > incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> > name="turnOnLight2"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> > name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw
_HrkJULCvEduT5_CrhBdvpw
> > _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> > _HHjdULCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> > name="turnOnLight3"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> > name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> > incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> > name="turnOffLight4"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> > name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> > _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> > _mg4QoLCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> > name="turnOffLight5"/>
> >
> > </subvertex>
> >
> > <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> > name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> > _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> > incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
> >
> > <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> > name="addOneMinuteToTimer"/>
> >
> > </subvertex>
> >
> > <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> > target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> > target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> > target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> > target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> > target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> > target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> > target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
> > target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
> > target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
> > target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
> > kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> > source="_eerKMLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
> > target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> >
> > <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
> > target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> >
> > </region>
> >
> > </ownedBehavior>
> >
> > </packagedElement>
> >
> > </uml:Model>
> >
> >
> > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > news:epoli9$b5p$2@utils.eclipse.org...
> > > Hi all,
> > >
> > > I tried to use the UML Editor to define a simple statemachine.
> > Unfortunately
> > > I can't confirm whether this is a correct usage of the different
> elements
> > > If you have some time, could you please give a quick glance on the
> diagram
> > > attached and its .uml file created with the UML Editor?
> > >
> > > Many thanks in advance
> > >
> > > Regards
> > > Paul
> > >
> > > ps: Unfortunately I still don't know how to define some methods within
a
> > > state. For the entry/.... statement I used an "entry activity"
> > > I'll be thankful for every comments/correction
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
Re: Questions to Sequence Diagram [message #579252 is a reply to message #469822] Thu, 01 February 2007 21:17 Go to previous message
Eclipse UserFriend
Originally posted by: psentosa.yahoo.com

Sorry...one more question please to this topic:
how can I define more than one activities within a state? (as seen in the
example, there are more than one methods to define within one state).
The option "Do Activity Activity can be used only once, and also according
to the spec : doActivity::Behavior[0..1].
Or do we have to use something else to define the methods?
Thanks

Paul

"Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
news:epr44q$hs4$1@utils.eclipse.org...
> Hi James,
>
> thanks again for the tip.
> Yes, a UML tool would be very helpful in this case, unfortunately I
haven't
> found any either.
> I tried to find the information I needed from the spec, but somehow I'm
> still not sure with what I got.
> Just want to confirm what I made (referring to your comment before):
>
> For behavior on the entry : New Child (of State) > Entry Activity (I made
> this already on the example I sent)
> For behavior within a state: New Child (of State) > Do Activity Activity
>
> I also define a trigger for each transition and each of these is connected
> to an event (defined outside the StateMachine, on the same "level" as
> Class).
>
> Sorry for the repeated questions but it's quite difficult for me to find
out
> everything from the spec
>
> Many thanks
> Regards
> Paul
>
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> news:epqcp9$c2o$2@utils.eclipse.org...
> > Hi Paul,
> >
> > Just having a quick glance over this model, it looks like you are
missing
> > Triggers and Events for the triggers on your transitions. Also, as you
> > mentioned, entry criteria is also missing.
> > Have a look at the superstructure spec for details
> > http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams.
That
> > fully describes all the ins and outs of the UML metamodel. Watch out
for
> > the constraints.
> >
> > For situations like these, a good UML tool would come in handy :) If
you
> > come across a good one for state charts let us know.
> >
> > Also, try to run validation on your UML metamodel. Not all the
validation
> > rules are implemented but it might be of some use.
> >
> > Regards,
> >
> > - James.
> >
> >
> > "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> > news:epom1h$c7u$1@utils.eclipse.org...
> > > I tried to attach the .uml file but it didn't work. The content:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <uml:Model xmi:version="2.1"
> > xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> > > xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> > > xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
> > >
> > > <packagedElement xmi:type="uml:Class" xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> > > name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
> > >
> > > <ownedBehavior xmi:type="uml:StateMachine"
> > xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> > > name="States of MW">
> > >
> > > <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
> > >
> > > <subvertex xmi:type="uml:Pseudostate" xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> > > outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> > > name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> > > _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> > > _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> > > name="turnOffLight1"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> > > name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> > > incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> > > name="turnOnLight2"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> > > name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw
> _HrkJULCvEduT5_CrhBdvpw
> > > _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> > > _HHjdULCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> > > name="turnOnLight3"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> > > name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> > > incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> > > name="turnOffLight4"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> > > name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> > > _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> > > _mg4QoLCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> > > name="turnOffLight5"/>
> > >
> > > </subvertex>
> > >
> > > <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> > > name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> > > _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> > > incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
> > >
> > > <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> > > name="addOneMinuteToTimer"/>
> > >
> > > </subvertex>
> > >
> > > <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> > > target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> > > target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> > > target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> > > target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> > > target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> > > target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> > > target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
> > > target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
> > > target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
> > > target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
> > > kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> > > source="_eerKMLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
> > > target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> > >
> > > <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
> > > target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > >
> > > </region>
> > >
> > > </ownedBehavior>
> > >
> > > </packagedElement>
> > >
> > > </uml:Model>
> > >
> > >
> > > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > > news:epoli9$b5p$2@utils.eclipse.org...
> > > > Hi all,
> > > >
> > > > I tried to use the UML Editor to define a simple statemachine.
> > > Unfortunately
> > > > I can't confirm whether this is a correct usage of the different
> > elements
> > > > If you have some time, could you please give a quick glance on the
> > diagram
> > > > attached and its .uml file created with the UML Editor?
> > > >
> > > > Many thanks in advance
> > > >
> > > > Regards
> > > > Paul
> > > >
> > > > ps: Unfortunately I still don't know how to define some methods
within
> a
> > > > state. For the entry/.... statement I used an "entry activity"
> > > > I'll be thankful for every comments/correction
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
>
Re: Questions to Sequence Diagram [message #582187 is a reply to message #469829] Mon, 05 February 2007 23:12 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Paul,

There are 3 special kinds of internal behavior. 'entry', 'do' and 'exit'.
The 'do' behavior is a behavior that is ongoing while the state is active.
The activity can make reference to BehavioralFeatures.... Operations are
Behavioral Features.

You might want to create an Activity Diagram to model the behavior of your
doActivity.

From the spec, there doesn't seem to be a way to add arbitrary number of
Activities to a State.

Hope this helps.

- James.


"Paul Sentosa" <psentosa@yahoo.com> wrote in message
news:eptlcg$u50$1@utils.eclipse.org...
> Sorry...one more question please to this topic:
> how can I define more than one activities within a state? (as seen in the
> example, there are more than one methods to define within one state).
> The option "Do Activity Activity can be used only once, and also according
> to the spec : doActivity::Behavior[0..1].
> Or do we have to use something else to define the methods?
> Thanks
>
> Paul
>
> "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> news:epr44q$hs4$1@utils.eclipse.org...
> > Hi James,
> >
> > thanks again for the tip.
> > Yes, a UML tool would be very helpful in this case, unfortunately I
> haven't
> > found any either.
> > I tried to find the information I needed from the spec, but somehow I'm
> > still not sure with what I got.
> > Just want to confirm what I made (referring to your comment before):
> >
> > For behavior on the entry : New Child (of State) > Entry Activity (I
made
> > this already on the example I sent)
> > For behavior within a state: New Child (of State) > Do Activity Activity
> >
> > I also define a trigger for each transition and each of these is
connected
> > to an event (defined outside the StateMachine, on the same "level" as
> > Class).
> >
> > Sorry for the repeated questions but it's quite difficult for me to find
> out
> > everything from the spec
> >
> > Many thanks
> > Regards
> > Paul
> >
> > "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> > news:epqcp9$c2o$2@utils.eclipse.org...
> > > Hi Paul,
> > >
> > > Just having a quick glance over this model, it looks like you are
> missing
> > > Triggers and Events for the triggers on your transitions. Also, as
you
> > > mentioned, entry criteria is also missing.
> > > Have a look at the superstructure spec for details
> > > http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams.
> That
> > > fully describes all the ins and outs of the UML metamodel. Watch out
> for
> > > the constraints.
> > >
> > > For situations like these, a good UML tool would come in handy :) If
> you
> > > come across a good one for state charts let us know.
> > >
> > > Also, try to run validation on your UML metamodel. Not all the
> validation
> > > rules are implemented but it might be of some use.
> > >
> > > Regards,
> > >
> > > - James.
> > >
> > >
> > > "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> > > news:epom1h$c7u$1@utils.eclipse.org...
> > > > I tried to attach the .uml file but it didn't work. The content:
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > >
> > > > <uml:Model xmi:version="2.1"
> > > xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> > > > xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> > > > xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
> > > >
> > > > <packagedElement xmi:type="uml:Class"
xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> > > > name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
> > > >
> > > > <ownedBehavior xmi:type="uml:StateMachine"
> > > xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> > > > name="States of MW">
> > > >
> > > > <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
> > > >
> > > > <subvertex xmi:type="uml:Pseudostate"
xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> > > > outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> > > > name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> > > > _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> > > > _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> > > > name="turnOffLight1"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> > > > name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> > > > incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> > > > name="turnOnLight2"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> > > > name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw
> > _HrkJULCvEduT5_CrhBdvpw
> > > > _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> > > > _HHjdULCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> > > > name="turnOnLight3"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> > > > name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> > > > incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> > > > name="turnOffLight4"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> > > > name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> > > > _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> > > > _mg4QoLCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> > > > name="turnOffLight5"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> > > > name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> > > > _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> > > > incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
> > > >
> > > > <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> > > > name="addOneMinuteToTimer"/>
> > > >
> > > > </subvertex>
> > > >
> > > > <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> > > > target="_bojRoLCuEduT5_CrhBdvpw" source="_Z0mnwLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> > > > target="_cQFywLCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> > > > target="_bojRoLCuEduT5_CrhBdvpw" source="_cQFywLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> > > > target="_bojRoLCuEduT5_CrhBdvpw" source="_dMctULCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> > > > target="_cQFywLCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> > > > target="_dMctULCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> > > > target="_dMctULCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw" name="buttonPressed1_3"
> > > > target="_cw8dELCuEduT5_CrhBdvpw" source="_bojRoLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw" name="buttonPressed5_3"
> > > > target="_cw8dELCuEduT5_CrhBdvpw" source="_dt-GALCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw" name="buttonPressed3_6"
> > > > target="_eerKMLCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw" name="buttonPressed6_6"
> > > > kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> > > > source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw" name="timerTimesOut6_5"
> > > > target="_dt-GALCuEduT5_CrhBdvpw" source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > >
> > > > <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw" name="timerTimesOut3_5"
> > > > target="_dt-GALCuEduT5_CrhBdvpw" source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > >
> > > > </region>
> > > >
> > > > </ownedBehavior>
> > > >
> > > > </packagedElement>
> > > >
> > > > </uml:Model>
> > > >
> > > >
> > > > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > > > news:epoli9$b5p$2@utils.eclipse.org...
> > > > > Hi all,
> > > > >
> > > > > I tried to use the UML Editor to define a simple statemachine.
> > > > Unfortunately
> > > > > I can't confirm whether this is a correct usage of the different
> > > elements
> > > > > If you have some time, could you please give a quick glance on the
> > > diagram
> > > > > attached and its .uml file created with the UML Editor?
> > > > >
> > > > > Many thanks in advance
> > > > >
> > > > > Regards
> > > > > Paul
> > > > >
> > > > > ps: Unfortunately I still don't know how to define some methods
> within
> > a
> > > > > state. For the entry/.... statement I used an "entry activity"
> > > > > I'll be thankful for every comments/correction
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Questions to Sequence Diagram [message #583094 is a reply to message #470081] Wed, 07 February 2007 17:31 Go to previous message
Eclipse UserFriend
Originally posted by: psentosa.yahoo.com

Once again, many thanks for the explanation.

Regards
Paul

"James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
news:eq8dkb$8u9$2@utils.eclipse.org...
> Hi Paul,
>
> There are 3 special kinds of internal behavior. 'entry', 'do' and
'exit'.
> The 'do' behavior is a behavior that is ongoing while the state is active.
> The activity can make reference to BehavioralFeatures.... Operations are
> Behavioral Features.
>
> You might want to create an Activity Diagram to model the behavior of your
> doActivity.
>
> From the spec, there doesn't seem to be a way to add arbitrary number of
> Activities to a State.
>
> Hope this helps.
>
> - James.
>
>
> "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> news:eptlcg$u50$1@utils.eclipse.org...
> > Sorry...one more question please to this topic:
> > how can I define more than one activities within a state? (as seen in
the
> > example, there are more than one methods to define within one state).
> > The option "Do Activity Activity can be used only once, and also
according
> > to the spec : doActivity::Behavior[0..1].
> > Or do we have to use something else to define the methods?
> > Thanks
> >
> > Paul
> >
> > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > news:epr44q$hs4$1@utils.eclipse.org...
> > > Hi James,
> > >
> > > thanks again for the tip.
> > > Yes, a UML tool would be very helpful in this case, unfortunately I
> > haven't
> > > found any either.
> > > I tried to find the information I needed from the spec, but somehow
I'm
> > > still not sure with what I got.
> > > Just want to confirm what I made (referring to your comment before):
> > >
> > > For behavior on the entry : New Child (of State) > Entry Activity (I
> made
> > > this already on the example I sent)
> > > For behavior within a state: New Child (of State) > Do Activity
Activity
> > >
> > > I also define a trigger for each transition and each of these is
> connected
> > > to an event (defined outside the StateMachine, on the same "level" as
> > > Class).
> > >
> > > Sorry for the repeated questions but it's quite difficult for me to
find
> > out
> > > everything from the spec
> > >
> > > Many thanks
> > > Regards
> > > Paul
> > >
> > > "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> > > news:epqcp9$c2o$2@utils.eclipse.org...
> > > > Hi Paul,
> > > >
> > > > Just having a quick glance over this model, it looks like you are
> > missing
> > > > Triggers and Events for the triggers on your transitions. Also, as
> you
> > > > mentioned, entry criteria is also missing.
> > > > Have a look at the superstructure spec for details
> > > > http://www.omg.org/docs/ptc/06-04-02.pdf of state chart diagrams.
> > That
> > > > fully describes all the ins and outs of the UML metamodel. Watch
out
> > for
> > > > the constraints.
> > > >
> > > > For situations like these, a good UML tool would come in handy :)
If
> > you
> > > > come across a good one for state charts let us know.
> > > >
> > > > Also, try to run validation on your UML metamodel. Not all the
> > validation
> > > > rules are implemented but it might be of some use.
> > > >
> > > > Regards,
> > > >
> > > > - James.
> > > >
> > > >
> > > > "Paul Sentosa" <psentosa@yahoo.com> wrote in message
> > > > news:epom1h$c7u$1@utils.eclipse.org...
> > > > > I tried to attach the .uml file but it didn't work. The content:
> > > > >
> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > >
> > > > > <uml:Model xmi:version="2.1"
> > > > xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> > > > > xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> > > > > xmi:id="_2EPR0LCkEduT5_CrhBdvpw" name="MW">
> > > > >
> > > > > <packagedElement xmi:type="uml:Class"
> xmi:id="_hx9O8LClEduT5_CrhBdvpw"
> > > > > name="MW" classifierBehavior="_PNqeQLCuEduT5_CrhBdvpw">
> > > > >
> > > > > <ownedBehavior xmi:type="uml:StateMachine"
> > > > xmi:id="_PNqeQLCuEduT5_CrhBdvpw"
> > > > > name="States of MW">
> > > > >
> > > > > <region xmi:id="_VXI98LCuEduT5_CrhBdvpw">
> > > > >
> > > > > <subvertex xmi:type="uml:Pseudostate"
> xmi:id="_Z0mnwLCuEduT5_CrhBdvpw"
> > > > > outgoing="_uU1xoLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_bojRoLCuEduT5_CrhBdvpw"
> > > > > name="1_Ready to Cook" outgoing="_9DYCoLCuEduT5_CrhBdvpw
> > > > > _GgxxMLCvEduT5_CrhBdvpw" incoming="_uU1xoLCuEduT5_CrhBdvpw
> > > > > _9n9WYLCuEduT5_CrhBdvpw _EWx-0LCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_P2Z1ELC1EduT5_CrhBdvpw"
> > > > > name="turnOffLight1"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_cQFywLCuEduT5_CrhBdvpw"
> > > > > name="2_Door Open" outgoing="_9n9WYLCuEduT5_CrhBdvpw"
> > > > > incoming="_9DYCoLCuEduT5_CrhBdvpw _E2xGcLCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_ZcyggLC1EduT5_CrhBdvpw"
> > > > > name="turnOnLight2"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_cw8dELCuEduT5_CrhBdvpw"
> > > > > name="3_Cooking" outgoing="_FSeLALCvEduT5_CrhBdvpw
> > > _HrkJULCvEduT5_CrhBdvpw
> > > > > _mg4QoLCvEduT5_CrhBdvpw" incoming="_GgxxMLCvEduT5_CrhBdvpw
> > > > > _HHjdULCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_exi-sLC1EduT5_CrhBdvpw"
> > > > > name="turnOnLight3"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_dMctULCuEduT5_CrhBdvpw"
> > > > > name="4_Cooking Interrupted" outgoing="_EWx-0LCvEduT5_CrhBdvpw"
> > > > > incoming="_FSeLALCvEduT5_CrhBdvpw _FxH14LCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_vm1g0LC1EduT5_CrhBdvpw"
> > > > > name="turnOffLight4"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_dt-GALCuEduT5_CrhBdvpw"
> > > > > name="5_Cooking Complete" outgoing="_E2xGcLCvEduT5_CrhBdvpw
> > > > > _HHjdULCvEduT5_CrhBdvpw" incoming="_IsyVwLCvEduT5_CrhBdvpw
> > > > > _mg4QoLCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_aFGBMLC2EduT5_CrhBdvpw"
> > > > > name="turnOffLight5"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <subvertex xmi:type="uml:State" xmi:id="_eerKMLCuEduT5_CrhBdvpw"
> > > > > name="6_Cooking Extended" outgoing="_FxH14LCvEduT5_CrhBdvpw
> > > > > _IKHtkLCvEduT5_CrhBdvpw _IsyVwLCvEduT5_CrhBdvpw"
> > > > > incoming="_HrkJULCvEduT5_CrhBdvpw _IKHtkLCvEduT5_CrhBdvpw">
> > > > >
> > > > > <entry xmi:type="uml:Activity" xmi:id="_duUKoLC2EduT5_CrhBdvpw"
> > > > > name="addOneMinuteToTimer"/>
> > > > >
> > > > > </subvertex>
> > > > >
> > > > > <transition xmi:id="_uU1xoLCuEduT5_CrhBdvpw" name="start"
> > > > > target="_bojRoLCuEduT5_CrhBdvpw"
source="_Z0mnwLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_9DYCoLCuEduT5_CrhBdvpw" name="doorOpened1_2"
> > > > > target="_cQFywLCuEduT5_CrhBdvpw"
source="_bojRoLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_9n9WYLCuEduT5_CrhBdvpw" name="doorClosed2_1"
> > > > > target="_bojRoLCuEduT5_CrhBdvpw"
source="_cQFywLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_EWx-0LCvEduT5_CrhBdvpw" name="doorClosed4_1"
> > > > > target="_bojRoLCuEduT5_CrhBdvpw"
source="_dMctULCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_E2xGcLCvEduT5_CrhBdvpw" name="doorOpened5_2"
> > > > > target="_cQFywLCuEduT5_CrhBdvpw"
source="_dt-GALCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_FSeLALCvEduT5_CrhBdvpw" name="doorOpened3_4"
> > > > > target="_dMctULCuEduT5_CrhBdvpw"
source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_FxH14LCvEduT5_CrhBdvpw" name="doorOpened6_4"
> > > > > target="_dMctULCuEduT5_CrhBdvpw"
source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_GgxxMLCvEduT5_CrhBdvpw"
name="buttonPressed1_3"
> > > > > target="_cw8dELCuEduT5_CrhBdvpw"
source="_bojRoLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_HHjdULCvEduT5_CrhBdvpw"
name="buttonPressed5_3"
> > > > > target="_cw8dELCuEduT5_CrhBdvpw"
source="_dt-GALCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_HrkJULCvEduT5_CrhBdvpw"
name="buttonPressed3_6"
> > > > > target="_eerKMLCuEduT5_CrhBdvpw"
source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_IKHtkLCvEduT5_CrhBdvpw"
name="buttonPressed6_6"
> > > > > kind="internal" target="_eerKMLCuEduT5_CrhBdvpw"
> > > > > source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_IsyVwLCvEduT5_CrhBdvpw"
name="timerTimesOut6_5"
> > > > > target="_dt-GALCuEduT5_CrhBdvpw"
source="_eerKMLCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > <transition xmi:id="_mg4QoLCvEduT5_CrhBdvpw"
name="timerTimesOut3_5"
> > > > > target="_dt-GALCuEduT5_CrhBdvpw"
source="_cw8dELCuEduT5_CrhBdvpw"/>
> > > > >
> > > > > </region>
> > > > >
> > > > > </ownedBehavior>
> > > > >
> > > > > </packagedElement>
> > > > >
> > > > > </uml:Model>
> > > > >
> > > > >
> > > > > "Paul Sentosa" <psentosa@yahoo.com> schrieb im Newsbeitrag
> > > > > news:epoli9$b5p$2@utils.eclipse.org...
> > > > > > Hi all,
> > > > > >
> > > > > > I tried to use the UML Editor to define a simple statemachine.
> > > > > Unfortunately
> > > > > > I can't confirm whether this is a correct usage of the different
> > > > elements
> > > > > > If you have some time, could you please give a quick glance on
the
> > > > diagram
> > > > > > attached and its .uml file created with the UML Editor?
> > > > > >
> > > > > > Many thanks in advance
> > > > > >
> > > > > > Regards
> > > > > > Paul
> > > > > >
> > > > > > ps: Unfortunately I still don't know how to define some methods
> > within
> > > a
> > > > > > state. For the entry/.... statement I used an "entry activity"
> > > > > > I'll be thankful for every comments/correction
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:UML Profile for extended metadata
Next Topic:A suggestion for user-friendly typing
Goto Forum:
  


Current Time: Tue Apr 07 04:55:15 GMT 2020

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

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

Back to the top