edu.isi.pegasus.planner.partitioner
public class Label extends Partitioner
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION
A short description about the partitioner.
|
private LogManager |
mLogger
The handle to the Logging object.
|
private Map |
mPartitionMap
A map indexed by the label.
|
private LinkedList |
mQueue
The first in first out queue, that manages the set of gray vertices in a
breadth first search.
|
mGraph, mProps, mRoot, PACKAGE_NAME, VERSION| Constructor and Description |
|---|
Label(GraphNode root,
Map graph,
PegasusProperties properties)
The overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Returns a textual description of the transfer implementation.
|
void |
determinePartitions(Callback c)
Partitions the graph passed in the constructor, on the basis of the labels
associated with the nodes in the graph.
|
private String |
getLabel(GraphNode node)
Returns the label for the node.
|
private String |
getPartitionID(int id)
Constructs the id for the partition.
|
public static final String DESCRIPTION
private Map mPartitionMap
private LinkedList mQueue
private LogManager mLogger
public Label(GraphNode root, Map graph, PegasusProperties properties)
root - the dummy root node of the graph.graph - the map containing all the nodes of the graph keyed by
the logical id of the nodes.properties - the properties passed to the planner.public void determinePartitions(Callback c)
determinePartitions in class Partitionerc - the callback for the partitioner.public String description()
description in class Partitionerprivate String getLabel(GraphNode node)
node - the node for which the label is required.private String getPartitionID(int id)
id - the integer id.