Class AlgorithmEventHistory
- java.lang.Object
-
- ai.libs.jaicore.graphvisualizer.events.recorder.AlgorithmEventHistory
-
- All Implemented Interfaces:
java.io.Serializable,org.api4.java.common.control.ILoggingCustomizable
public class AlgorithmEventHistory extends java.lang.Object implements org.api4.java.common.control.ILoggingCustomizable, java.io.SerializableAnAlgorithmEventHistorystoresAlgorithmEventHistoryEntrys constructed fromIPropertyProcessedAlgorithmEvents 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(org.api4.java.algorithm.events.serializable.IPropertyProcessedAlgorithmEvent propertyProcessedAlgorithmEvent)Adds the givenIPropertyProcessedAlgorithmEventto 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(org.api4.java.algorithm.events.serializable.IPropertyProcessedAlgorithmEvent propertyProcessedAlgorithmEvent)
Adds the givenIPropertyProcessedAlgorithmEventto thisAlgorithmEventHistoryEntry.- Parameters:
propertyProcessedAlgorithmEvent- TheIPropertyProcessedAlgorithmEventto 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 interfaceorg.api4.java.common.control.ILoggingCustomizable
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerNamein interfaceorg.api4.java.common.control.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
-
-