Class AlgorithmEventHistoryRecorder
- java.lang.Object
-
- ai.libs.jaicore.graphvisualizer.events.recorder.AlgorithmEventHistoryRecorder
-
- All Implemented Interfaces:
AlgorithmEventListener
public class AlgorithmEventHistoryRecorder extends java.lang.Object implements AlgorithmEventListener
AnAlgorithmEventHistoryRecorderis responsible for recordingAlgorithmEvents and storing them in the form ofPropertyProcessedAlgorithmEvents. For doing so it requires a list ofAlgorithmEventPropertyComputers which can extract information fromAlgorithmEvents which in turn is stored in thePropertyProcessedAlgorithmEvents.
-
-
Constructor Summary
Constructors Constructor Description AlgorithmEventHistoryRecorder(java.util.List<AlgorithmEventPropertyComputer> eventPropertyComputers)Creates a newAlgorithmEventHistoryRecorderwith the givenAlgorithmEventPropertyComputers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgorithmEventHistorygetHistory()Returns theAlgorithmEventHistorywhich is produced up to this point by thisAlgorithmEventHistoryRecorder.voidhandleAlgorithmEvent(ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent algorithmEvent)
-
-
-
Constructor Detail
-
AlgorithmEventHistoryRecorder
public AlgorithmEventHistoryRecorder(java.util.List<AlgorithmEventPropertyComputer> eventPropertyComputers)
Creates a newAlgorithmEventHistoryRecorderwith the givenAlgorithmEventPropertyComputers.- Parameters:
eventPropertyComputers- A list ofAlgorithmEventPropertyComputers which can extract information fromAlgorithmEvents which in turn is stored in thePropertyProcessedAlgorithmEvents.
-
-
Method Detail
-
handleAlgorithmEvent
public void handleAlgorithmEvent(ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent algorithmEvent)
- Specified by:
handleAlgorithmEventin interfaceAlgorithmEventListener
-
getHistory
public AlgorithmEventHistory getHistory()
Returns theAlgorithmEventHistorywhich is produced up to this point by thisAlgorithmEventHistoryRecorder.- Returns:
- The
AlgorithmEventHistorywhich is produced up to this point by thisAlgorithmEventHistoryRecorder.
-
-