MACS
Class MultiModelOfPayoff

java.lang.Object
  |
  +--MACS.MultiModelOfPayoff

final class MultiModelOfPayoff
extends java.lang.Object

This class takes care of the three models of payoff used by MACS. NB: This class does not need the model of transitions, everything is in the ActionSelector...

Author:
Olivier Sigaud and Pierre Gérard.

Field Summary
private static boolean DEBUG
           
protected  MACS.FinalStateModel fsModel
           
protected  MACS.PerceptionList knownPerceptions
           
private  MACS.PayoffModel[] models
           
private  int nbModels
           
 
Constructor Summary
MultiModelOfPayoff()
           
 
Method Summary
 boolean containsNotFinalMatching(Classifier.Perception perception)
           
 MACS.FinalStateModel getFsModel()
           
 MACS.PayoffModel getModel(int index)
           
 MACS.PerceptionList getPerceptionList()
           
 boolean isFinal(Classifier.Perception p)
           
 java.lang.String toString()
           
 void updateImmediateValues(Classifier.Transition trans, boolean lastStep, MACS.ExploMemory explo)
          update the immediate values in the models of rewards
 void updateListOfPerceptions(Classifier.Transition trans, boolean lastStep)
          add the new perception just received to the models of payoff
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

models

private MACS.PayoffModel[] models

fsModel

protected MACS.FinalStateModel fsModel

knownPerceptions

protected MACS.PerceptionList knownPerceptions

nbModels

private int nbModels
Constructor Detail

MultiModelOfPayoff

public MultiModelOfPayoff()
Method Detail

getPerceptionList

public MACS.PerceptionList getPerceptionList()
Returns:
MACS.PerceptionList

getModel

public MACS.PayoffModel getModel(int index)
Returns:
MACS.PayoffModel

isFinal

public final boolean isFinal(Classifier.Perception p)
Parameters:
p -
Returns:
boolean

getFsModel

public MACS.FinalStateModel getFsModel()
Returns:
MACS.FinalStateModel

containsNotFinalMatching

public final boolean containsNotFinalMatching(Classifier.Perception perception)
Parameters:
perception -
Returns:
boolean

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
String

updateListOfPerceptions

public final void updateListOfPerceptions(Classifier.Transition trans,
                                          boolean lastStep)
add the new perception just received to the models of payoff

Parameters:
trans -
lastStep -

updateImmediateValues

public final void updateImmediateValues(Classifier.Transition trans,
                                        boolean lastStep,
                                        MACS.ExploMemory explo)
update the immediate values in the models of rewards

Parameters:
trans -
lastStep -
explo -