Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Visio

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-07-2008, 02:48 PM
=?Utf-8?B?U3RldmU=?=
 
Posts: n/a
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.
}

Reply With Quote
  #2 (permalink)  
Old 07-07-2008, 02:57 PM
=?Utf-8?B?UGhpbGlwcGUgQy4=?=
 
Posts: n/a
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.
> }
>

Reply With Quote
  #3 (permalink)  
Old 07-07-2008, 10:00 PM
Paul Herber
 
Posts: n/a
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
Reply With Quote
  #4 (permalink)  
Old 07-08-2008, 08:19 AM
=?Utf-8?B?U3RldmU=?=
 
Posts: n/a
Re: Need help with simple statechart

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.

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
>

Reply With Quote
  #5 (permalink)  
Old 07-08-2008, 12:17 PM
Paul Herber
 
Posts: n/a
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
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Visio


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:10 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Personal Car Finance | Credit Cards | Compare | Mortgage Loans | Problem Mortgage



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109