public class AlgorithmEventHistoryRecorder extends java.lang.Object implements AlgorithmEventListener
AlgorithmEventHistoryRecorder is responsible for recording AlgorithmEvents and storing them in the form of PropertyProcessedAlgorithmEvents. For doing so it requires a list of
AlgorithmEventPropertyComputers which can extract information from AlgorithmEvents which in turn is stored in the PropertyProcessedAlgorithmEvents.| Constructor and Description |
|---|
AlgorithmEventHistoryRecorder(java.util.List<AlgorithmEventPropertyComputer> eventPropertyComputers)
Creates a new
AlgorithmEventHistoryRecorder with the given AlgorithmEventPropertyComputers. |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmEventHistory |
getHistory()
Returns the
AlgorithmEventHistory which is produced up to this point by this AlgorithmEventHistoryRecorder. |
void |
handleAlgorithmEvent(ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent algorithmEvent) |
public AlgorithmEventHistoryRecorder(java.util.List<AlgorithmEventPropertyComputer> eventPropertyComputers)
AlgorithmEventHistoryRecorder with the given AlgorithmEventPropertyComputers.eventPropertyComputers - A list of AlgorithmEventPropertyComputers which can extract information from AlgorithmEvents which in turn is stored in the PropertyProcessedAlgorithmEvents.public void handleAlgorithmEvent(ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent algorithmEvent)
handleAlgorithmEvent in interface AlgorithmEventListenerpublic AlgorithmEventHistory getHistory()
AlgorithmEventHistory which is produced up to this point by this AlgorithmEventHistoryRecorder.AlgorithmEventHistory which is produced up to this point by this AlgorithmEventHistoryRecorder.