edu.isi.pegasus.planner.ranking
Class Rank

java.lang.Object
  extended by edu.isi.pegasus.planner.ranking.Rank

public class Rank
extends Object

The Rank class that ranks the DAX'es

Version:
$Revision: 3778 $
Author:
Karan Vahi

Field Summary
private  PegasusBag mBag
          The pegasus bag.
private  Algorithm mHeft
          The handle to the ranking algorithm.
private  LogManager mLogger
          The handle to the logging object.
private  String mRequestID
          The optional request id.
private  List mSites
          The list of candidate grid sites.
 
Constructor Summary
Rank()
          The default constructor.
 
Method Summary
 void initialize(PegasusBag bag, List sites, String id)
          Initializes the rank client.
 Collection<Ranking> rank(Collection<String> daxes)
          Ranks the daxes, and returns a sort collection of Ranking objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mHeft

private Algorithm mHeft
The handle to the ranking algorithm.


mBag

private PegasusBag mBag
The pegasus bag.


mSites

private List mSites
The list of candidate grid sites.


mRequestID

private String mRequestID
The optional request id.


mLogger

private LogManager mLogger
The handle to the logging object.

Constructor Detail

Rank

public Rank()
The default constructor.

Method Detail

initialize

public void initialize(PegasusBag bag,
                       List sites,
                       String id)
Initializes the rank client.

Parameters:
bag - the PegasusBag.
sites - the sites where the wf can run potentially.
id - the request id

rank

public Collection<Ranking> rank(Collection<String> daxes)
Ranks the daxes, and returns a sort collection of Ranking objects.

Parameters:
daxes - Collection
Returns:
a sorted collection according to the ranks.


Copyright © 2011 The University of Southern California. All Rights Reserved.