All Packages Class Hierarchy This Package Previous Next Index
Class eduni.simjava.Sim_predicate
java.lang.Object
|
+----eduni.simjava.Sim_predicate
- public abstract class Sim_predicate
- extends Object
Predicates are used to select events from the deferred queue.
This class is abstract and must be subclassed when writing new
predicate. Some standard predicates are provided, see below:
- See Also:
- Sim_type_p, Sim_from_p, Sim_any_p, Sim_none_p, Sim_system
-
Sim_predicate()
-
-
match(Sim_event)
- The match function which must be overidden when writing a new
predicate.
Sim_predicate
public Sim_predicate()
match
public abstract boolean match(Sim_event event)
- The match function which must be overidden when writing a new
predicate. The function is called with each event in the deferred
queue as its parameter when a Sim_system.sim_select()
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 doesn't
All Packages Class Hierarchy This Package Previous Next Index