GridSim 5.0 beta

gridsim
Class Sim_from_port

Object
  extended by Sim_predicate
      extended by Sim_from_port

public class Sim_from_port
extends Sim_predicate

This class creates a new Sim_predicate to evaluate whether an event is coming through a specific port.

Since:
GridSim Toolkit 1.0
Author:
Manzur Murshed and Rajkumar Buyya
Invariant:
$none

Constructor Summary
Sim_from_port(Sim_port port)
          Finds an incoming event that passes through this port
 
Method Summary
 boolean match(Sim_event event)
          Checks whether an event comes through a given port 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
 

Constructor Detail

Sim_from_port

public Sim_from_port(Sim_port port)
Finds an incoming event that passes through this port

Parameters:
port - an object of Sim_port
See Also:
Sim_port
Pre Condition:
port != null
Post Condition:
$none
Method Detail

match

public boolean match(Sim_event event)
Checks whether an event comes through a given port 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:
event - an incoming event to compare with
Returns:
true if an event matches, false otherwise
Pre Condition:
event != null
Post Condition:
$none

GridSim 5.0 beta

The University of Melbourne, Australia, 2009