public class AlgorithmEventHistory
extends java.lang.Object
implements ai.libs.jaicore.basic.ILoggingCustomizable, java.io.Serializable
AlgorithmEventHistory stores AlgorithmEventHistoryEntrys constructed from PropertyProcessedAlgorithmEvents representing the recorded behavior of an IAlgorithm. Such an AlgorithmEventHistory can
be stored and loaded using an
AlgorithmEventHistorySerializer.| Constructor and Description |
|---|
AlgorithmEventHistory()
Creates a new
AlgorithmEventHistory. |
AlgorithmEventHistory(java.util.List<AlgorithmEventHistoryEntry> algorithmEventHistoryEntries)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(ai.libs.jaicore.basic.algorithm.events.serializable.PropertyProcessedAlgorithmEvent propertyProcessedAlgorithmEvent)
Adds the given
PropertyProcessedAlgorithmEvent to this AlgorithmEventHistoryEntry. |
boolean |
equals(java.lang.Object obj) |
AlgorithmEventHistoryEntry |
getEntryAtTimeStep(int timestep)
Returns the
AlgorithmEventHistoryEntry at the given timestep. |
long |
getLength() |
java.lang.String |
getLoggerName() |
int |
hashCode() |
void |
setLoggerName(java.lang.String name) |
java.lang.String |
toString() |
public AlgorithmEventHistory()
AlgorithmEventHistory.public AlgorithmEventHistory(java.util.List<AlgorithmEventHistoryEntry> algorithmEventHistoryEntries)
algorithmEventHistoryEntries - The list of AlgorithmEventHistoryEntrys to be stored in the history.public void addEvent(ai.libs.jaicore.basic.algorithm.events.serializable.PropertyProcessedAlgorithmEvent propertyProcessedAlgorithmEvent)
PropertyProcessedAlgorithmEvent to this AlgorithmEventHistoryEntry.propertyProcessedAlgorithmEvent - The PropertyProcessedAlgorithmEvent to be added to this history.public AlgorithmEventHistoryEntry getEntryAtTimeStep(int timestep)
AlgorithmEventHistoryEntry at the given timestep.timestep - The timestep for which the AlgorithmEventHistoryEntry has to be returned.AlgorithmEventHistoryEntry at the given timestep.public long getLength()
public java.lang.String getLoggerName()
getLoggerName in interface ai.libs.jaicore.basic.ILoggingCustomizablepublic void setLoggerName(java.lang.String name)
setLoggerName in interface ai.libs.jaicore.basic.ILoggingCustomizablepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object