Class SimPredicate

java.lang.Object
simEngine.SimPredicate
Direct Known Subclasses:
SimAnyP, SimNoneP, SimTypeP

public abstract class SimPredicate extends Object
Predicates are used to select events from the deferred queue. This class is abstract and must be subclassed when writing new predicate.
  • Constructor Details

    • SimPredicate

      public SimPredicate()
  • Method Details

    • match

      public abstract boolean match(SimEvent event)
      The match function which must be overridden when writing a new predicate. The function is called with each event in the deferred queue as its parameter when a SimSystem.simSelect() call is made by the user.
      Parameters:
      event - The event to test for a match.
      Returns:
      The function should return true if the event matches and shoult be selected, of false if it does not