MACS
Class ClassifierSystemTraceManager

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

public final class ClassifierSystemTraceManager
extends java.lang.Object

This class is used to trace the behavior of the LCS.

Author:
Olivier Sigaud and Pierre Gérard.

Field Summary
private  MACS.AnticipatoryClassifierList classifiersCorrectedByDefiningAnticipation
           
private  MACS.AnticipatoryClassifierList classifiersCreatedByAnticipationCovering
           
private  MACS.AnticipatoryClassifierList classifiersCreatedByGeneralization
           
private  MACS.AnticipatoryClassifierList classifiersCreatedByMutSpec
           
private  MACS.AnticipatoryClassifierList classifiersCreatedByPerceptionCovering
           
private  MACS.AnticipatoryClassifierList classifiersRemovedByAnticipationSelection
           
private  MACS.AnticipatoryClassifierList classifiersRemovedByGeneralization
           
private  MACS.AnticipatoryClassifierList classifiersRemovedByInutilityIdentification
           
private  MACS.AnticipatoryClassifierList classifiersRemovedByMutSpec
           
private  MACS.ClassifierSystem classifierSystem
           
private  java.lang.String coordsOfOrderedPerceptions
           
private  java.lang.String lastAction
           
private  java.lang.String lastPerception
           
private  java.lang.String orderedPerceptions
           
 
Constructor Summary
protected ClassifierSystemTraceManager(MACS.ClassifierSystem cs)
           
protected ClassifierSystemTraceManager(MACS.ClassifierSystemTraceManager cstm, MACS.ClassifierSystem cs)
          Warning: we only copy pointers.
 
Method Summary
 void addClassifierCreatedByGeneralization(Classifier.AnticipatoryClassifier acl, boolean val)
           
 void addClassifierRemovedByGeneralization(Classifier.AnticipatoryClassifier acl, boolean val)
           
protected  MACS.AnticipatoryClassifierList getClassifiersCorrectedByDefiningAnticipation()
           
protected  MACS.AnticipatoryClassifierList getClassifiersCreatedByAnticipationCovering()
           
protected  MACS.AnticipatoryClassifierList getClassifiersCreatedByGeneralization()
           
protected  MACS.AnticipatoryClassifierList getClassifiersCreatedByMutSpec()
           
protected  MACS.AnticipatoryClassifierList getClassifiersCreatedByPerceptionCovering()
           
protected  MACS.AnticipatoryClassifierList getClassifiersRemovedByAnticipationSelection()
           
protected  MACS.AnticipatoryClassifierList getClassifiersRemovedByGeneralization()
           
protected  MACS.AnticipatoryClassifierList getClassifiersRemovedByInutilityIdentification()
           
protected  MACS.AnticipatoryClassifierList getClassifiersRemovedByMutSpec()
           
protected  short getNbClassifiers()
           
protected  MACS.PerceptionList getPerceptionList()
           
protected  java.lang.String getStepInformation(long time)
           
protected  void prepareForNewStep()
           
 void setCoordsOfOrderedPerceptions(java.lang.String coordsOfOrderedPerc)
           
protected  void setFree()
           
 void setLastAction(java.lang.String la)
           
 void setLastPerception(java.lang.String lp)
           
 void setOrderedPerceptions(java.lang.String orderedPerc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orderedPerceptions

private java.lang.String orderedPerceptions

coordsOfOrderedPerceptions

private java.lang.String coordsOfOrderedPerceptions

lastPerception

private java.lang.String lastPerception

lastAction

private java.lang.String lastAction

classifierSystem

private MACS.ClassifierSystem classifierSystem

classifiersCreatedByAnticipationCovering

private MACS.AnticipatoryClassifierList classifiersCreatedByAnticipationCovering

classifiersCorrectedByDefiningAnticipation

private MACS.AnticipatoryClassifierList classifiersCorrectedByDefiningAnticipation

classifiersCreatedByPerceptionCovering

private MACS.AnticipatoryClassifierList classifiersCreatedByPerceptionCovering

classifiersCreatedByMutSpec

private MACS.AnticipatoryClassifierList classifiersCreatedByMutSpec

classifiersRemovedByAnticipationSelection

private MACS.AnticipatoryClassifierList classifiersRemovedByAnticipationSelection

classifiersRemovedByInutilityIdentification

private MACS.AnticipatoryClassifierList classifiersRemovedByInutilityIdentification

classifiersRemovedByMutSpec

private MACS.AnticipatoryClassifierList classifiersRemovedByMutSpec

classifiersCreatedByGeneralization

private MACS.AnticipatoryClassifierList classifiersCreatedByGeneralization

classifiersRemovedByGeneralization

private MACS.AnticipatoryClassifierList classifiersRemovedByGeneralization
Constructor Detail

ClassifierSystemTraceManager

protected ClassifierSystemTraceManager(MACS.ClassifierSystemTraceManager cstm,
                                       MACS.ClassifierSystem cs)
Warning: we only copy pointers.

Parameters:
cstm -
cs -

ClassifierSystemTraceManager

protected ClassifierSystemTraceManager(MACS.ClassifierSystem cs)
Parameters:
cs -
Method Detail

getPerceptionList

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

setFree

protected final void setFree()

prepareForNewStep

protected final void prepareForNewStep()

getClassifiersCreatedByGeneralization

protected final MACS.AnticipatoryClassifierList getClassifiersCreatedByGeneralization()
Returns:
MACS.AnticipatoryClassifierList

getClassifiersRemovedByGeneralization

protected final MACS.AnticipatoryClassifierList getClassifiersRemovedByGeneralization()
Returns:
MACS.AnticipatoryClassifierList

getClassifiersCreatedByAnticipationCovering

protected final MACS.AnticipatoryClassifierList getClassifiersCreatedByAnticipationCovering()
Returns:
MACS.AnticipatoryClassifierList

getClassifiersCorrectedByDefiningAnticipation

protected final MACS.AnticipatoryClassifierList getClassifiersCorrectedByDefiningAnticipation()
Returns:
MACS.AnticipatoryClassifierList

getClassifiersCreatedByPerceptionCovering

protected final MACS.AnticipatoryClassifierList getClassifiersCreatedByPerceptionCovering()
Returns:
MACS.AnticipatoryClassifierList

getClassifiersCreatedByMutSpec

protected final MACS.AnticipatoryClassifierList getClassifiersCreatedByMutSpec()
Returns:
MACS.AnticipatoryClassifierList

getClassifiersRemovedByAnticipationSelection

protected final MACS.AnticipatoryClassifierList getClassifiersRemovedByAnticipationSelection()
Returns:
MACS.AnticipatoryClassifierList

getClassifiersRemovedByInutilityIdentification

protected final MACS.AnticipatoryClassifierList getClassifiersRemovedByInutilityIdentification()
Returns:
MACS.AnticipatoryClassifierList

getClassifiersRemovedByMutSpec

protected final MACS.AnticipatoryClassifierList getClassifiersRemovedByMutSpec()
Returns:
MACS.AnticipatoryClassifierList

addClassifierRemovedByGeneralization

public final void addClassifierRemovedByGeneralization(Classifier.AnticipatoryClassifier acl,
                                                       boolean val)
Parameters:
acl -
val -

addClassifierCreatedByGeneralization

public final void addClassifierCreatedByGeneralization(Classifier.AnticipatoryClassifier acl,
                                                       boolean val)
Parameters:
acl -
val -

getNbClassifiers

protected final short getNbClassifiers()
Returns:
short

setOrderedPerceptions

public final void setOrderedPerceptions(java.lang.String orderedPerc)
Parameters:
orderedPerc -

setCoordsOfOrderedPerceptions

public final void setCoordsOfOrderedPerceptions(java.lang.String coordsOfOrderedPerc)
Parameters:
coordsOfOrderedPerc -

setLastAction

public final void setLastAction(java.lang.String la)
Parameters:
la -

setLastPerception

public final void setLastPerception(java.lang.String lp)
Parameters:
lp -

getStepInformation

protected final java.lang.String getStepInformation(long time)
Parameters:
time -
Returns:
String