Class AlgorithmEventHistory
- java.lang.Object
-
- ai.libs.jaicore.graphvisualizer.events.recorder.AlgorithmEventHistory
-
- All Implemented Interfaces:
ai.libs.jaicore.basic.ILoggingCustomizable,java.io.Serializable
public class AlgorithmEventHistory extends java.lang.Object implements ai.libs.jaicore.basic.ILoggingCustomizable, java.io.SerializableAnAlgorithmEventHistorystoresAlgorithmEventHistoryEntrys constructed fromPropertyProcessedAlgorithmEvents representing the recorded behavior of anIAlgorithm. Such anAlgorithmEventHistorycan be stored and loaded using anAlgorithmEventHistorySerializer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlgorithmEventHistory()Creates a newAlgorithmEventHistory.AlgorithmEventHistory(java.util.List<AlgorithmEventHistoryEntry> algorithmEventHistoryEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvent(ai.libs.jaicore.basic.algorithm.events.serializable.PropertyProcessedAlgorithmEvent propertyProcessedAlgorithmEvent)Adds the givenPropertyProcessedAlgorithmEventto thisAlgorithmEventHistoryEntry.booleanequals(java.lang.Object obj)AlgorithmEventHistoryEntrygetEntryAtTimeStep(int timestep)Returns theAlgorithmEventHistoryEntryat the given timestep.longgetLength()java.lang.StringgetLoggerName()inthashCode()voidsetLoggerName(java.lang.String name)java.lang.StringtoString()
-
-
-
Constructor Detail
-
AlgorithmEventHistory
public AlgorithmEventHistory()
Creates a newAlgorithmEventHistory.
-
AlgorithmEventHistory
public AlgorithmEventHistory(java.util.List<AlgorithmEventHistoryEntry> algorithmEventHistoryEntries)
- Parameters:
algorithmEventHistoryEntries- The list ofAlgorithmEventHistoryEntrys to be stored in the history.
-
-
Method Detail
-
addEvent
public void addEvent(ai.libs.jaicore.basic.algorithm.events.serializable.PropertyProcessedAlgorithmEvent propertyProcessedAlgorithmEvent)
Adds the givenPropertyProcessedAlgorithmEventto thisAlgorithmEventHistoryEntry.- Parameters:
propertyProcessedAlgorithmEvent- ThePropertyProcessedAlgorithmEventto be added to this history.
-
getEntryAtTimeStep
public AlgorithmEventHistoryEntry getEntryAtTimeStep(int timestep)
Returns theAlgorithmEventHistoryEntryat the given timestep.- Parameters:
timestep- The timestep for which theAlgorithmEventHistoryEntryhas to be returned.- Returns:
- The
AlgorithmEventHistoryEntryat the given timestep.
-
getLength
public long getLength()
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerNamein interfaceai.libs.jaicore.basic.ILoggingCustomizable
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerNamein interfaceai.libs.jaicore.basic.ILoggingCustomizable
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-