|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IContext
Defines methods required by a context in a genetic algorithm. The context provides the environment surrounding the evaluation of a chromosome.
| Method Summary | |
|---|---|
void |
add(IFitnessCase fitnessCase)
Add the given fitness case. |
IFitnessCase |
getCurrentFitnessCase()
Return the current fitness case. |
int |
getCurrentFitnessCaseIndex()
Return the index of the current fitness case. |
int |
getFitnessCaseCount()
Return the fitness case count. |
Object |
getStateVariable(String name)
Return the state variable with the given name. |
void |
incrementCurrentFitnessCase()
Move to the next fitness case. |
void |
reset()
Reset to the initial settings. |
void |
setStateVariable(String name,
Object value)
Set the state variable with the given name to the given value. |
| Method Detail |
|---|
void add(IFitnessCase fitnessCase)
fitnessCase - Fitness case.IFitnessCase getCurrentFitnessCase()
int getCurrentFitnessCaseIndex()
int getFitnessCaseCount()
Object getStateVariable(String name)
name - State variable name.void incrementCurrentFitnessCase()
void reset()
void setStateVariable(String name,
Object value)
name - State variable name.value - State variable value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |