public interface TimeDurationSignal
after events.| Modifier and Type | Method and Description |
|---|---|
Duration |
getValueAt(MoxieTime time)
Gets the value of the signal at the specified time.
|
EventSignal |
whenDurationHasElapsedFrom(MoxieTime referenceTime)
Returns an
EventSignal that contains an event whenever the value of this TimeDurationSignal matches the difference between the
TimeProvider.getCurrentTime() and the provided reference time. |
Duration getValueAt(MoxieTime time)
time - The time at which to produce the underlying value.@NotNull EventSignal whenDurationHasElapsedFrom(@NotNull MoxieTime referenceTime)
EventSignal that contains an event whenever the value of this TimeDurationSignal matches the difference between the
TimeProvider.getCurrentTime() and the provided reference time.referenceTime - The time from which to measure the current duration to determine when the next event will occur.EventSignal.