Subject: | |
From: | |
Reply To: | |
Date: | Wed, 27 Jul 2005 10:57:00 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Dear list,
Believe it or not, I have question.
I'm using alphanumeric ERC. My thought was to have ERC#resetNode() do
something like this:
public void resetNode( final EvolutionState state, final int
thread) {
Parameter p = new Parameter( "alphabet");
String alphabet = state.parameters.getStringWithDefault
( p, "aAbBcCdDeEfFgG");
value = "" + alphabet.charAt( state.random
[ thread].nextInt( alphabet.length()));
}
public String value;
However, when MyProblem goes to access the alphabet parameter, it's
going to want to access it as "eval.problem.alphabet", isn't it? So
can I just name the parameter "eval.problem.alphabet" in the 1st line
of resetNode() or is there a better way to do this?
Cheers,
Steve
|
|
|