gridsim
Class Sim_from_port

Object
  |
  +--eduni.simjava.Sim_predicate
        |
        +--gridsim.Sim_from_port

public class Sim_from_port
extends eduni.simjava.Sim_predicate

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

Version:
2.1, June 2003
Author:
Manzur Murshed and Rajkumar Buyya
Invariant:
$none

Constructor Summary
Sim_from_port(eduni.simjava.Sim_port port)
          Allocates a new Sim_from_port object
 
Method Summary
 boolean match(eduni.simjava.Sim_event event)
          Matches a given Sim_event object with the one from the port.
 
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(eduni.simjava.Sim_port port)
Allocates a new Sim_from_port object

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

match

public boolean match(eduni.simjava.Sim_event event)
Matches a given Sim_event object with the one from the port.

Specified by:
match in class eduni.simjava.Sim_predicate
Parameters:
event - an object of Sim_event
Returns:
true if the event was scheduled through the port
See Also:
Sim_event
Pre Condition:
event != null
Post Condition:
$result == true || $result == false