|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CrossoverStatListener
CrossoverStatsListener uses the listener pattern to provide a flexible way of accessing statistics about crossover operations that occur. Models which require statistics about crossover operations throughout a run would typically implement this interface. GPAbstractModel already provides an implementation. There are 2 steps to using this interface to gain access to crossover statistics.
| Method Summary | |
|---|---|
void |
crossoverStats(java.lang.Object[] stats)
This method will be called after every crossover operation with an array containing the statistics requested with getCrossoverStatFields(). |
CrossoverStatField[] |
getCrossoverStatFields()
The implementing class must return an array of fields which the listening objects are interested in listening to. |
| Method Detail |
|---|
CrossoverStatField[] getCrossoverStatFields()
void crossoverStats(java.lang.Object[] stats)
stats - An array of statistics relating to the last crossover
operation completed. The order of the array will match the order that the
fields were requested in the return of getCrossoverStatFields() method.
The array is of type Object[] but the dynamic type of each element will
vary depending on the field. For information of types view the comments
on the stats fields.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||