xcseco
Class XCSeco

java.lang.Object
  |
  +--xcseco.XCSeco
All Implemented Interfaces:
java.io.Serializable

public class XCSeco
extends java.lang.Object
implements java.io.Serializable

Titre : XCSeco.java
Description : Version of XCS (by Martin Butz) driven by other classes.
This class creates an interface for other classes in order for them to use
an XCS for solving their problems (a firm maximizing its profit,etc).
Copyright : Murat Yildizoglu Copyright (c) 2001

Version:
1.0
Author:
Murat Yildizoglu
See Also:
Serialized Form

Constructor Summary
XCSeco(int NBACTIONS)
           
 
Method Summary
 int chooseAction(java.lang.String STATE)
          Choses the best action given the state of the XCS and the environment.
 int getAction()
          Returns the last used action.
 void learn(double Reward)
          Provides the CS with a reward received from the environment and asks it to learn in consequence.
 void printSet()
          Prints the actual chromosome set (population) of the XCS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XCSeco

public XCSeco(int NBACTIONS)
Method Detail

chooseAction

public int chooseAction(java.lang.String STATE)
Choses the best action given the state of the XCS and the environment.
Returns:
actionWinner The action that should be used.

learn

public void learn(double Reward)
Provides the CS with a reward received from the environment and asks it to learn in consequence.
Parameters:
Reward - The reward given by the environment.
See Also:
XCSFirm

getAction

public int getAction()
Returns the last used action.
Returns:
actionWinner

printSet

public void printSet()
Prints the actual chromosome set (population) of the XCS.