SimJava
v2.0

eduni.simjava
Class Sim_type_p

java.lang.Object
  |
  +--eduni.simjava.Sim_predicate
        |
        +--eduni.simjava.Sim_type_p

public class Sim_type_p
extends Sim_predicate

A predicate to select events with specific tags.

See Also:
Sim_not_type_p, Sim_predicate

Constructor Summary
Sim_type_p(int t1)
          Constructor used to select events with the tag value t1.
Sim_type_p(int[] tags)
          Constructor used to select events with a tag value equal to any of the specified tags.
Sim_type_p(int t1, int t2)
          Deprecated. This constructor is now replaced by the more flexible Sim_type_p(int[]). To use this predicate call Sim_type_p(new int[] {t1, t2}).
Sim_type_p(int t1, int t2, int t3)
          Deprecated. This constructor is now replaced by the more flexible Sim_type_p(int[]). To use this predicate call Sim_type_p(new int[] {t1, t2, t3}).
 
Method Summary
 boolean match(Sim_event ev)
          The match function called by Sim_system, not used directly by the user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sim_type_p

public Sim_type_p(int t1)
Constructor used to select events with the tag value t1.
Parameters:
t1 - An event tag value

Sim_type_p

public Sim_type_p(int t1,
                  int t2)
Deprecated. This constructor is now replaced by the more flexible Sim_type_p(int[]). To use this predicate call Sim_type_p(new int[] {t1, t2}).

Constructor used to select events with the tag values t1 or t2.
Parameters:
t1 - An event tag value
t2 - An event tag value

Sim_type_p

public Sim_type_p(int t1,
                  int t2,
                  int t3)
Deprecated. This constructor is now replaced by the more flexible Sim_type_p(int[]). To use this predicate call Sim_type_p(new int[] {t1, t2, t3}).

Constructor used to select events with the tag values t1, t2 or t3.
Parameters:
t1 - An event tag value
t2 - An event tag value
t3 - An event tag value

Sim_type_p

public Sim_type_p(int[] tags)
Constructor used to select events with a tag value equal to any of the specified tags.
Parameters:
tags - The list of tags
Method Detail

match

public boolean match(Sim_event ev)
The match function called by Sim_system, not used directly by the user
Overrides:
match in class Sim_predicate
Following copied from class: eduni.simjava.Sim_predicate
Parameters:
event - The event to test for a match.
Returns:
The function should return true if the event matches and should be selected, of false if it doesn't

SimJava
v2.0

The University of Edinburgh, 2002