Re: UML statechart + parallel state

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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



Relevant Pages

  • Re: Lorenz Attractor
    ... outputs are labelled wrongly on the diagram. ... you gotta change the multiplier gain at the same time or you ... FLAG 448 80 0 ... SYMATTR InstName B1 ...
    (sci.electronics.design)
  • Re: Evaluation of caches
    ... what sort of cache misses (I mean the categorization in compulsory, ... This diagram separates misses according to type and associativity. ... The discussion of this diagram considers the sort of the miss. ...
    (comp.arch.embedded)
  • Re: Groups, Magmas, Cayley Tables and Venn Diagrams...
    ... "See the picture placing magmas, quasigroups, semigroups, loops, ... a venn diagram instead. ... must be some sort of venn diagram-esque nesting/intersection of ALL ... downright confusing for a beginner like myself that is just trying to ...
    (sci.math)
  • Re: Apple Safari: select box behaviour
    ... box for the diagram and one for the zoom level. ... Is it my code or is it some sort of Safari bug? ...
    (comp.sys.mac.apps)
  • Apple Safari: select box behaviour
    ... My page does not behave properly with Apple Safari ... box for the diagram and one for the zoom level. ... Is it my code or is it some sort of Safari bug? ...
    (comp.sys.mac.apps)