Class SimTypeP


public class SimTypeP extends SimPredicate
A predicate to select events with specific tags from the deferred event queue. See also eduni.simjava.Sim_predicate.
Version:
1.0, 4 September 1996
Author:
Ross McNab
  • Constructor Details

    • SimTypeP

      public SimTypeP(int t1)
      Constructor.
      Parameters:
      t1 - An event tag value
    • SimTypeP

      public SimTypeP(int t1, int t2)
      Constructor.
      Parameters:
      t1 - An event tag value
      t2 - An event tag value
    • SimTypeP

      public SimTypeP(int t1, int t2, int t3)
      Constructor.
      Parameters:
      t1 - An event tag value
      t2 - An event tag value
      t3 - An event tag value
  • Method Details

    • match

      public boolean match(SimEvent ev)
      The match function called by SimSystem.simSelect(), not used directly by the user
      Specified by:
      match in class SimPredicate
      Parameters:
      ev - 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