java.lang.Object
io.github.romanhaendler.rbed.Conditions

public final class Conditions extends Object
Static factories for building Conditions; intended for static import.
  • Method Details

    • during

      public static Condition during(Rule rule)
      True while an Event of the given Rule is Confirmed and has not Ended.
    • after

      public static After after(Rule rule)
      True once an Event of the given Rule has Ended; see After for narrowing it.
    • count

      public static EventCount count(Rule rule)
      The number of Events of the given Rule Confirmed since the Detector started, History included; narrow it with EventCount.within(long).
    • totalDuration

      public static Expression totalDuration(Rule rule)
      The summed duration in milliseconds of all Events of the given Rule since the Detector started, History included: Ended ones in full, plus a Confirmed running one up to now.
    • latest

      public static LatestEvent latest(Rule rule)
      Values of the most recent Confirmed Event of the given Rule, running or Ended, such as latest(loadLifted).max(weight).