Class AttemptHistory
-
- All Implemented Interfaces:
-
com.embabel.common.core.types.Timed,com.embabel.common.core.types.Timestamped
public final class AttemptHistory<INPUT extends Object, RESULT extends Object, FEEDBACK extends Feedback> implements Timestamped, TimedMutable object. We only bind this once
-
-
Method Summary
Modifier and Type Method Description DurationgetRunningTime()final INPUTgetInput()InstantgetTimestamp()final IntegerattemptCount()final List<Attempt<RESULT, FEEDBACK>>attempts()final Attempt<RESULT, FEEDBACK>lastAttempt()final RESULTresultToEvaluate()Evaluator can use this to access the last result. final FEEDBACKlastFeedback()final Attempt<RESULT, FEEDBACK>bestSoFar()-
-
Method Detail
-
getRunningTime
Duration getRunningTime()
-
getTimestamp
Instant getTimestamp()
-
attemptCount
final Integer attemptCount()
-
lastAttempt
final Attempt<RESULT, FEEDBACK> lastAttempt()
-
resultToEvaluate
final RESULT resultToEvaluate()
Evaluator can use this to access the last result.
-
lastFeedback
final FEEDBACK lastFeedback()
-
-
-
-