|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface that must be implemented by all problems presented to the XCSJava implementation.
Method Summary | |
double |
computeDistance(java.lang.String state,
java.lang.String condition)
Compute the distance between the signal and the most remote classifier from the signal. |
boolean |
doReset()
Returns if the agent has reached the end of a problem. |
double |
executeAction(int action)
Executes an action in the environment. |
int |
getConditionLength()
Returns the length of the coded situations. |
java.lang.String |
getCurrentState()
Returns the current situation. |
int |
getMaxPayoff()
Returns the maximal payoff receivable in an environment. |
int |
getNrActions()
Returns the number of possible actions in the environment |
double |
getProblemSurface()
Returns the size of the problem space |
boolean |
isMultiStepProblem()
Returns true if the problem is a multi-step problem. |
java.lang.String |
resetState()
Resets the current state to a random instance of a problem. |
boolean |
wasCorrect()
Returns if this action was a good/correct action. |
Method Detail |
public java.lang.String resetState()
public java.lang.String getCurrentState()
public double executeAction(int action)
action
- An action can be an active action like a movement, grip...
or a simple classification (good/bad, correct/incorrect, class1/class2/class3, ...).public boolean wasCorrect()
public boolean doReset()
public int getConditionLength()
public int getMaxPayoff()
public boolean isMultiStepProblem()
public int getNrActions()
public double computeDistance(java.lang.String state, java.lang.String condition)
public double getProblemSurface()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |