Class Random
java.lang.Object
edu.isi.pegasus.planner.selector.TransformationSelector
edu.isi.pegasus.planner.selector.transformation.Random
This implemenation of the TCSelector selects a random TransformationCatalogEntry from a List of
entries.
- Version:
- $Revision$
- Author:
- Gaurang Mehta
-
Field Summary
Fields inherited from class edu.isi.pegasus.planner.selector.TransformationSelector
mLogger, PACKAGE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTCEntry
(List<edu.isi.pegasus.planner.catalog.transformation.TransformationCatalogEntry> tcEntries, String preferredSite) This method randomly selects one of the records from numerous valid Transformation Catalog Entries returned by the TCMapper.Methods inherited from class edu.isi.pegasus.planner.selector.TransformationSelector
loadTXSelector
-
Constructor Details
-
Random
public Random()
-
-
Method Details
-
getTCEntry
public List getTCEntry(List<edu.isi.pegasus.planner.catalog.transformation.TransformationCatalogEntry> tcEntries, String preferredSite) This method randomly selects one of the records from numerous valid Transformation Catalog Entries returned by the TCMapper.- Specified by:
getTCEntry
in classTransformationSelector
- Parameters:
tcEntries
- List TransformationCatalogEntry objects returned by the TCMapper.preferredSite
- the preferred site for selecting the TC entries- Returns:
- TransformationCatalogEntry Single TransformationCatalogEntry object
-