![]() |
|
|
|||
|
Need help with simple statechart
I am new user of Visio and have some troubles to describe State Machine
States in Visio Statecharts. Can anyone give me hand to describe the following below state and send me resulting vsd file to wmk587 AT yahoo DOT com Thanks in advance. ************************************************** * State A: { if(condition1 ) { Go To State B } if(condition2 ) { Send Message1 to external device and remain in state A until external device responded. When responce to Message1 from external device received go to State C. If device failed to respond within X seconds go to State E. } Perform Action1 Send Message2 to external device and remain in state A until external device responded. When responce to Message2 from external device received go to State D. If device failed to respond within X seconds go to State E. } |
|
|||
|
RE: Need help with simple statechart
Would that not be something for Microsoft Robotics Studio ?
For the Visual programming. It is free. "Steve" wrote: > I am new user of Visio and have some troubles to describe State Machine > States in Visio Statecharts. Can anyone give me hand to describe the > following below state and send me resulting vsd file to wmk587 AT yahoo DOT > com > > Thanks in advance. > ************************************************** * > > State A: > { > if(condition1 ) > { > Go To State B > } > > if(condition2 ) > { > Send Message1 to external device and remain in state A > until external device responded. > > When responce to Message1 from external device received go to State C. > > If device failed to respond within X seconds go to State E. > } > > Perform Action1 > > Send Message2 to external device and remain in state A > until external device responded. > > When responce to Message2 from external device received go to State D. > > If device failed to respond within X seconds go to State E. > } > |
|
|||
|
Re: Need help with simple statechart
On Mon, 7 Jul 2008 07:48:03 -0700, Steve
<Steve@discussions.microsoft.com> wrote: >I am new user of Visio and have some troubles to describe State Machine >States in Visio Statecharts. Can anyone give me hand to describe the >following below state and send me resulting vsd file to wmk587 AT yahoo DOT >com > >Thanks in advance. >************************************************* ** > >State A: >{ > if(condition1 ) > { > Go To State B > } > > if(condition2 ) > { > Send Message1 to external device and remain in state A > until external device responded. > > When responce to Message1 from external device received go to State C. > > If device failed to respond within X seconds go to State E. > } > > Perform Action1 > > Send Message2 to external device and remain in state A > until external device responded. > > When responce to Message2 from external device received go to State D. > > If device failed to respond within X seconds go to State E. >} This looks like a homework question. However, don't start with a state diagram, you need to determine your event sources and messages flow. Start with a Sequence diagram. That will allow you to work out how to handle the "until" and the "failed to respond" bits. -- Regards, Paul Herber, Sandrila Ltd. http://www.sdl.sandrila.co.uk/ SDL/MSC//URN/UML2 for Visio |
|
|||
|
Re: Need help with simple statechart
This is not homework
The thing is that I have to describe pretty bigexisting system with statecharts. The example I presented is very simplified version of one state. Could you provide at least simple example of sequence diagram with event sources and messages flow ("until", "failed, etc) as well as transition from sequence diagram to statechart. Thanks "Paul Herber" wrote: > On Mon, 7 Jul 2008 07:48:03 -0700, Steve > <Steve@discussions.microsoft.com> wrote: > > >I am new user of Visio and have some troubles to describe State Machine > >States in Visio Statecharts. Can anyone give me hand to describe the > >following below state and send me resulting vsd file to wmk587 AT yahoo DOT > >com > > > >Thanks in advance. > >************************************************* ** > > > >State A: > >{ > > if(condition1 ) > > { > > Go To State B > > } > > > > if(condition2 ) > > { > > Send Message1 to external device and remain in state A > > until external device responded. > > > > When responce to Message1 from external device received go to State C. > > > > If device failed to respond within X seconds go to State E. > > } > > > > Perform Action1 > > > > Send Message2 to external device and remain in state A > > until external device responded. > > > > When responce to Message2 from external device received go to State D. > > > > If device failed to respond within X seconds go to State E. > >} > > This looks like a homework question. > However, don't start with a state diagram, you need to determine your > event sources and messages flow. Start with a Sequence diagram. That > will allow you to work out how to handle the "until" and the "failed > to respond" bits. > > > > > -- > Regards, Paul Herber, Sandrila Ltd. > http://www.sdl.sandrila.co.uk/ SDL/MSC//URN/UML2 for Visio > |
|
|||
|
Re: Need help with simple statechart
On Tue, 8 Jul 2008 01:19:01 -0700, Steve
<Steve@discussions.microsoft.com> wrote: >This is not homework The thing is that I have to describe pretty big>existing system with statecharts. The example I presented is very simplified >version of one state. > >Could you provide at least simple example of sequence diagram with event >sources and messages flow ("until", "failed, etc) as well as transition from >sequence diagram to statechart. here's an example, it's an SDL Message Sequence Chart but close enough for rock and roll: http://www.sdl.sandrila.co.uk/examples.php?e=msc It's a simplified telephone answering machine message record task. You could write this as do record message until (stop button pressed) (silence detected) and here is a sample UML sequence diagram. http://www.sdl.sandrila.co.uk/examples.php?e=umlsd -- Regards, Paul Herber, Sandrila Ltd. http://www.sdl.sandrila.co.uk/ SDL/MSC//URN/UML2 for Visio |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|