[sv-ec] Re: SV-BC 211 (pre/post randomize calls)

From: Ryan, Ray <Ray_Ryan@mentorg.com>
Date: Sat Nov 20 2004 - 13:13:06 PST

In reviewing the example and text proposed in SB-BC 211, I now believe
the
described semantic for calling the pre_randomize() and post_randomize
methods
is incorrect.

At issue is whether the 'pre_randomize' and 'post_randomize' methods are
called
for every random class object - including those class objects added
because they
were contained in another random object (12.4.8).

In the example, it states that the 'pre_randomize' and 'post_randomize'
methods
are only called for object A when A.randomize() is called.

After further discussion, my understanding is that in a randomization
call (either
a class randomize method or the scope randomize function):
1) The random objects are determined according to 12.4.8.
2) For each random object that is a class instance, it's pre_randomize
method is called.
3) The constraints are solved.
4) If a solution was found, new values are assigned to the random
objects.
5) If a solution was found, for each random object that is a class
instance it's
   post_randomize method is called.

If this is the agreed behavior, I'll update the text of the example.

- Ray
Received on Sat Nov 20 13:13:22 2004

This archive was generated by hypermail 2.1.8 : Sat Nov 20 2004 - 13:13:25 PST