gridsim.net.flow
Class FilterFlow
Object
Sim_predicate
FilterFlow
public class FilterFlow
- extends Sim_predicate
Look for a specific incoming event that matches a given event tag name and a
flow id. Incoming events with a matching tag name must
contain a data object of type
Integer, where Integer stores the flow id.
This class is used by Sim_system
to select or filter an event already present in the entity's deferred queue
(incoming buffer), or used to selectively wait for a future event.
- Since:
- GridSim Toolkit 4.2
- Author:
- James Broberg
- Invariant:
- $none
Constructor Summary |
FilterFlow(int flowID,
int tag)
Finds an incoming events that matches with the given flow ID and
event tag name |
Method Summary |
boolean |
match(Sim_event ev)
Checks whether an event matches the required constraints or not.
NOTE: This method is not used directly by the user. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterFlow
public FilterFlow(int flowID,
int tag)
- Finds an incoming events that matches with the given flow ID and
event tag name
- Parameters:
flowID
- a unique flow ID to differentiate
itself among other events with the same tag nametag
- a matching event tag name- Pre Condition:
- $none
- Post Condition:
- $none
match
public boolean match(Sim_event ev)
- Checks whether an event matches the required constraints or not.
NOTE: This method is not used directly by the user. Instead, it is
called by Sim_system
.
- Specified by:
match
in class Sim_predicate
- Parameters:
ev
- an incoming event to compare with
- Returns:
- true if an event matches, false otherwise
- Pre Condition:
- ev != null
- Post Condition:
- $none
The University of Melbourne, Australia, 2009