GridSim 5.0 beta

gridsim.parallel.scheduler
Class RuntimePredicate

Object
  extended by RuntimePredicate
All Implemented Interfaces:
PartitionPredicate

public class RuntimePredicate
extends Object
implements PartitionPredicate

This predicate filters jobs according to their runtime

Since:
5.0
Author:
Marcos Dias de Assuncao

Constructor Summary
RuntimePredicate(int minRuntime, int maxRuntime, int rating)
          Default constructor
 
Method Summary
 boolean match(ScheduleItem item)
          Checks whether a given job meets the criteria of the partition or category
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimePredicate

public RuntimePredicate(int minRuntime,
                        int maxRuntime,
                        int rating)
Default constructor

Parameters:
minRuntime - jobs with smaller runtime are filtered out by this predicate
maxRuntime - jobs with greater runtime are filtered out by this predicate
rating - the rating in MIPS of the resource that uses this predicate
Method Detail

match

public boolean match(ScheduleItem item)
Checks whether a given job meets the criteria of the partition or category

Specified by:
match in interface PartitionPredicate
Parameters:
item - the job/reservation to be considered for scheduling.
Returns:
true if the job can be included in this partition; false otherwise.

GridSim 5.0 beta

The University of Melbourne, Australia, 2009