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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
MultiModelOfPayoff
public MultiModelOfPayoff()
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
-