SimJava
v2.0

eduni.simjava
Class Sim_from_p

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

public class Sim_from_p
extends Sim_predicate

A predicate which selects events from specific entities.

See Also:
Sim_not_from_p, Sim_predicate

Constructor Summary
Sim_from_p(int source_id)
          Constructor used to select events that were sent by a specific entity.
Sim_from_p(int[] source_ids)
          Constructor used to select events that were sent by any entity from a given set.
 
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_from_p

public Sim_from_p(int source_id)
Constructor used to select events that were sent by a specific entity.
Parameters:
source_id - The id number of the source entity

Sim_from_p

public Sim_from_p(int[] source_ids)
Constructor used to select events that were sent by any entity from a given set.
Parameters:
source_ids - The set of id numbers of the source entities
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
Parameters:
The - event to check
Returns:
true if the event matches the predicate, false otherwise

SimJava
v2.0

The University of Edinburgh, 2002