I tried you suggestion, but during the work with the Gui-Console I have
a question. When you just
keep pressing the play-Button for evaluating step by step, then the
Finisher ist just called after the first
Evaluation, right after population 1. This closes my server so that the
next evaluation step via play
tries to send over a closed socket. Shouldn't the Finisher get only
called after stopping the evaluation
or when it is completely done?
Sean Luke wrote:
> If you have a single server, set it up in a custom Initializer and
> shut it down in a custom Finisher.
> On Oct 5, 2006, at 3:55 PM, Serethos wrote:
>> I have finished defining my GP set for a problem. I use ECJ only for
>> creating and modifying
>> the individuals but the fitness is measured by a remote system which
>> I contact via TCP/IP
>> for evaluating. Now I am wondering where to put the code for setting
>> the server up or to
>> close it. First I thought the appropriate place was the class
>> implementing SimpleProblemForm
>> where my own code "starts" and the evaluation happens. So the server
>> startup would be
>> done in the constructor. But where to put the closing sequence?
>> I see only two ways: using finalize (which is quite unreliable) or to
>> modify the class which
>> calls the ProblemClass (evolver). Any better ways?