GridSim 5.0 beta

gridsim.datagrid.filter
Class Filter

Object
  extended by Filter
Direct Known Subclasses:
FileNameFilter

public abstract class Filter
extends Object

An abstract class for filtering a file from the Replica Catalogue list based on its attributes, such as file name, size, etc. All you need to do is the following:

  1. creates a child class that extends this class
  2. the child class' constructor should contain a list of attributes to compare
  3. implement the match(FileAttribute) method for comparison

Since:
GridSim Toolkit 4.0
Author:
Uros Cibej and Anthony Sulistio
See Also:
FileNameFilter

Constructor Summary
Filter()
           
 
Method Summary
abstract  boolean match(FileAttribute attr)
          For each file in the Replica Catalogue list, check whether it contains a FileAttribute object with the given matching attribute(s)
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter()
Method Detail

match

public abstract boolean match(FileAttribute attr)
For each file in the Replica Catalogue list, check whether it contains a FileAttribute object with the given matching attribute(s)

Parameters:
attr - a FileAttribute object to compare to
Returns:
true if matching, false otherwise

GridSim 5.0 beta

The University of Melbourne, Australia, 2009