Re: UML statechart + parallel state
- From: Paul Herber <SubstituteMyFirstNameHere@xxxxxxxxxxx>
- Date: Mon, 11 Feb 2008 09:07:31 +0000
Not at all, I can't post any sort of diagram here but I'm just giving
you an example of how 2 process can communicate safely.
On Sat, 9 Feb 2008 13:22:00 -0800, raz <raz@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Hi Paul,
Apparently we are not on the same wavelength here.
You seem to be talking about some sort of code, and i'm talking about a
simple statechart diagram.
But thanks anyway, i some how worked around it.
Raz.
"Paul Herber" wrote:
Process1:
....
copy the data to be saved into save buffer
disable save
start timeout
send save message to process 2 with address of save buffer
continue with updating
....
on event "timeout"
flag a failed save to the user
enable save
on message "save failed"
flag a failed save to the user
enable save
on message "save finished"
enable save
Process 2
on message "save"
try
do whatever has to be done
send message "save finished"
exception
send message "save failed"
and keep track of which process owns the save buffer.
On Sat, 9 Feb 2008 04:51:01 -0800, raz <raz@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
I'm don't think it's a race condition.
I have an update state with consist of two inner states: text update and save.
I need to be able to continue updating while a prior update is being saved
(but not to be able to make another save untill the last one is over).
Is there a way to make a parallel state (using dashed lines, like a parallel
in sequence diagram is presented)?
Because i got a tutorial slide showing it, but i couldn't find out how it is
done in VISIO.
Thanks again.
"Paul Herber" wrote:
On Sat, 9 Feb 2008 02:16:01 -0800, raz <raz@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
How can i make a parallel state in statechart diagram,
so that two processes take place parallelly?
Do you want one process to track the other or for them to track each
other. You'll need to send a message from one to the other to indicate
a state transition.
However, if the states are really parallel then are they really the
same process?
Also, look up "race condition"
--
Regards, Paul Herber, Sandrila Ltd.
http://www.sdl.sandrila.co.uk/ SDL/MSC/TTCN/URN/UML2 for Visio
--
Regards, Paul Herber, Sandrila Ltd.
Electronics for Visio http://www.electronics.sandrila.co.uk/
--
Regards, Paul Herber, Sandrila Ltd.
Electronics for Visio http://www.electronics.sandrila.co.uk/
.
- References:
- Re: UML statechart + parallel state
- From: Paul Herber
- Re: UML statechart + parallel state
- From: Paul Herber
- Re: UML statechart + parallel state
- From: raz
- Re: UML statechart + parallel state
- Prev by Date: RE: actual location values amoung shapes
- Next by Date: Re: Creating Visio diagrams from .NET
- Previous by thread: Re: UML statechart + parallel state
- Next by thread: RE: actual location values amoung shapes
- Index(es):
Relevant Pages
|