Print

Print


On May 22, 2013, at 5:31 AM, Bojan Janisch wrote:

> Sorry for the late response. My work started late this week, because of holidays. 
> 
> So here is a sample code of my problem. I have a GPNode called Faktum that has a overridden setup method which looks like this:
> 
> @Override
> public void setup(final EvolutionState state, final Parameter base) {
> 	super.setup(state, base);
> 	setMethod(state.random[0].nextInt(c.getDeclaredMethods().length));
> }
> 
> also the setMethod:
> 
> public void setMethod(int i) {
> 	types = new ArrayList<Type>();
> 	method = c.getDeclaredMethods()[i];
> 	for (Type t : method.getGenericParameterTypes()) {
> 		types.add(t);
> 	}
> }

setup is only called a single time.  I think what you want to do is override the ADF facility.

Sean