Mike,

I confirm you have fixed the problems below.

Thanks,

//derek

Mike Stover wrote:

>I have just committed what I believe are fixes to the problems mentioned below.  
>Additionally, nested user-defined variables should now work, and user-defined 
>variables are now loaded from file correctly.
>
>-Mike
>
>On 17 Jul 2002 at 9:49, Derek Baum wrote:
>
>  
>
>>Mike,
>>
>>I'm writing some functions to generate sequential and random numbers 
>>with the ability to re-seed the random number generator, so that after 
>>the first sequential or random number the following random numbers will 
>>be repeatable. This allows me to generate repeatable pseudo-random data.
>>
>>Rather than making this one function with lots of arguments, I wanted to 
>>split it up into more frendly smaller functions, for example: 
>>${__seq(setSeed)}, ${__rand(max, setSeed)}.
>>
>>I have two minor problems:
>>
>>1. I wrote the functions as inner classes, since they are closely 
>>related and need to share data. However the call to 
>>ClassFinder.findClassesThatExtend() in CompoundFunction.java does not 
>>discover inner classes. This is easily fixed by adding a boolean "true" 
>>argument.
>>
>>2. My functions are being called twice for each variable substitution, 
>>which means that I only get every other sequential number in my test 
>>data. replaceValues() in TestCompiler.java is called twice from 
>>configureSampler() [directly from line 115 and indirectly via 
>>layeredElement() on line 123]. I have not found an easy way to stop the 
>>duplicate call in configureSampler(). Instead I am keeping a WeakHashMap 
>>in my function's execute() methods that detects if it is called with the 
>>same SampleResult, but this is a bit messy.
>>
>>//derek
>>
>>    
>>



________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to