Class AlgorithmEventHistoryEntry
- java.lang.Object
-
- ai.libs.jaicore.graphvisualizer.events.recorder.AlgorithmEventHistoryEntry
-
public class AlgorithmEventHistoryEntry extends java.lang.ObjectAlgorithmEventHistoryEntrys are used to storeIPropertyProcessedAlgorithmEvents in anAlgorithmEventHistorycombined with additional meta information.
-
-
Constructor Summary
Constructors Constructor Description AlgorithmEventHistoryEntry(org.api4.java.algorithm.events.serializable.IPropertyProcessedAlgorithmEvent algorithmEvent, long timeEventWasReceived)Creates a newAlgorithmEventHistoryEntrystoring the givenIPropertyProcessedAlgorithmEventand the time at which the event was received.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)org.api4.java.algorithm.events.serializable.IPropertyProcessedAlgorithmEventgetAlgorithmEvent()Returns theIPropertyProcessedAlgorithmEventstored as part of this entry.longgetTimeEventWasReceived()Returns the time at which this event was received.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
AlgorithmEventHistoryEntry
public AlgorithmEventHistoryEntry(org.api4.java.algorithm.events.serializable.IPropertyProcessedAlgorithmEvent algorithmEvent, long timeEventWasReceived)Creates a newAlgorithmEventHistoryEntrystoring the givenIPropertyProcessedAlgorithmEventand the time at which the event was received.- Parameters:
algorithmEvent- TheIPropertyProcessedAlgorithmEventto be stored.timeEventWasReceived- The time at which the event was received.
-
-
Method Detail
-
getAlgorithmEvent
public org.api4.java.algorithm.events.serializable.IPropertyProcessedAlgorithmEvent getAlgorithmEvent()
Returns theIPropertyProcessedAlgorithmEventstored as part of this entry.- Returns:
- The
IPropertyProcessedAlgorithmEventstored as part of this entry.
-
getTimeEventWasReceived
public long getTimeEventWasReceived()
Returns the time at which this event was received.- Returns:
- The time at which this event was received.
-
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
-
-