art.cs
Class RuleMaster

java.lang.Object
  extended byart.cs.RuleMaster

public class RuleMaster
extends java.lang.Object

This class manage the short term learning of the classifier following the Environment-Rules-Agents (ERA) scheme introduced in Gilbert and Terna (2000).

"The Rule Masters, that can be interpreted as abstract representations of the cognition of the agent."

For more information on ERA http://web.econ.unito.it/terna/ct-era/ct-era.html.

This class is like a director that coordinate the operation performed by the CS (non learning) and is the owner of all the main lists used by the other classes. This class deals also with all the graphs specific for the CS. This class map one by one the operations performed by the user via the CsManager.

Author:
Marco Lamieri and Gianluigi Ferraris

Constructor Summary
RuleMaster(CsManager csm)
          Constructor of the class.
 
Method Summary
 void clearMsgList()
          Clear the message list, refer to CsManager.clearMsgList()
 Effector getEffector()
          Return a instance of the Effector, refer to CsManager.getEffector()
 int getMAWinners()
          Get the number of winner actions within the time lag specified by the parameter "movingAverageLag".
 void go()
          Perform CS computations, refer to CsManager.go()
 void printClassifierList()
          Print the classifers to terminal, refer to CsManager.printClassifierList()
 void saveClassifierList(java.lang.String fileName)
          Save the classifiers to file, refer to CsManager.saveClassifierList(String).
 void setReward(double reward)
          Set the reward for a specific action, refer to CsManager.setReward(double).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleMaster

public RuleMaster(CsManager csm)
Constructor of the class.

Parameters:
csm - The CsManager that create this class.
Method Detail

go

public void go()
Perform CS computations, refer to CsManager.go()


getEffector

public Effector getEffector()
Return a instance of the Effector, refer to CsManager.getEffector()

Returns:
the instance of Effector

clearMsgList

public void clearMsgList()
Clear the message list, refer to CsManager.clearMsgList()


setReward

public void setReward(double reward)
Set the reward for a specific action, refer to CsManager.setReward(double).

Parameters:
reward - Reward.

getMAWinners

public int getMAWinners()
Get the number of winner actions within the time lag specified by the parameter "movingAverageLag".

Returns:
winner actions.

printClassifierList

public void printClassifierList()
Print the classifers to terminal, refer to CsManager.printClassifierList()


saveClassifierList

public void saveClassifierList(java.lang.String fileName)
Save the classifiers to file, refer to CsManager.saveClassifierList(String).

Parameters:
fileName - Filename and path.