Need help with simple statechart

S

Steve

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.
}
 
P

Philippe C.

Would that not be something for Microsoft Robotics Studio ?
For the Visual programming. It is free.
 
P

Paul Herber

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.
 
S

Steve

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
 
P

Paul Herber

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top