|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.ai.geneticalgorithm.AbstractContext
public abstract class AbstractContext
Provides base functionality for a context in a genetic algorithm.
| Constructor Summary | |
|---|---|
AbstractContext()
|
|
| 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. |
String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractContext()
| Method Detail |
|---|
public void add(IFitnessCase fitnessCase)
add in interface IContextfitnessCase - Fitness case.public IFitnessCase getCurrentFitnessCase()
getCurrentFitnessCase in interface IContextpublic int getCurrentFitnessCaseIndex()
getCurrentFitnessCaseIndex in interface IContextpublic int getFitnessCaseCount()
getFitnessCaseCount in interface IContextpublic Object getStateVariable(String name)
getStateVariable in interface IContextname - State variable name.public void incrementCurrentFitnessCase()
incrementCurrentFitnessCase in interface IContextpublic void reset()
reset in interface IContext
public void setStateVariable(String name,
Object value)
setStateVariable in interface IContextname - State variable name.value - State variable value.public String toString()
toString in class Object
|
||||||||||
| 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 |