• Sequence of Events v2

Document Actions
Replies: 1   Views: 4019
Up one level
You need to be a registered member to post to this forum. Register now.
Prev topic | Next topic

 • Sequence of Events v2

Posted by edwardotis at 2004-11-09 10:11
When an outpin of part1 is connected to part3's INPIN1 and part2's outpin is connected to part3's INPIN2, the sequence in which INPIN1 and INPIN2 will get events is not guaranteed.

So, let's say I have an ArrayPart. Inpin1 initializes an array, and Inpin2 sets a value in the array.
Two other parts use the ArrayPart.
PartA initializes the Array, and SSPart will start inserting somebody's Social Security number into the array.

How do I know that the array is initialized before SSPart starts trying to set values in the ArrayPart?

If the SynchronizationPart throws away values until the CONTROL pin is fired by PartA, then only part of the social security number would be inserted into the ArrayPart.

I looked closer into they Buildap synch java package. I don't think the package will support my proposed situation.

Ideas?
Anonymous
Posts: n/a

 • Re: Sequence of Events v2

Posted by amehrabyan at 2004-11-15 11:40
you rigth sequence of events not guaranteed, so it is responsibility of the part (in you'r example part3) which should check that all events are present and then process them
Manager
Posts: 2