org.griphyn.cPlanner.parser.dax
Class DAX2LabelGraph

java.lang.Object
  extended byorg.griphyn.cPlanner.parser.dax.DAX2Graph
      extended byorg.griphyn.cPlanner.parser.dax.DAX2LabelGraph
All Implemented Interfaces:
Callback

public class DAX2LabelGraph
extends DAX2Graph

The callback, that ends up building a label graph. With each GraphNode a label is associated. The label can be associated via a profile in the VDS namespace with the jobs in the DAX. The key for the profile can either be set via the constructor, or a default key is used.

Version:
$Revision: 1.2 $
Author:
Karan Vahi

Field Summary
static String DEFAULT_LABEL_KEY
          The default key for the VDS namespace profile, that is used in case none is specified by the user.
static String DEFAULT_LABEL_VALUE
          The default label value that is to be applied, in case the profile is not associated with the job.
private  String mLabelKey
          The profile key that is used for the labelling.
 
Fields inherited from class org.griphyn.cPlanner.parser.dax.DAX2Graph
DUMMY_NODE_ID, mAbstractGraph, mDone, mLabel, mProps, mRoot
 
Constructor Summary
DAX2LabelGraph(PegasusProperties properties, String dax)
          The overloaded constructor.
 
Method Summary
 void cbDone()
          Callback to signal that traversal of the DAX is complete.
 void cbJob(SubInfo job)
          This constructs a graph node for the job and ends up storing it in the internal map.
static void setLabelKey(String value)
          Sets the default label value that is to be used if the profile is not associated with the job.
 
Methods inherited from class org.griphyn.cPlanner.parser.dax.DAX2Graph
cbDocument, cbParents, get, getConstructedObject, getNameOfDAX, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LABEL_KEY

public static final String DEFAULT_LABEL_KEY
The default key for the VDS namespace profile, that is used in case none is specified by the user.

See Also:
Constant Field Values

DEFAULT_LABEL_VALUE

public static String DEFAULT_LABEL_VALUE
The default label value that is to be applied, in case the profile is not associated with the job.


mLabelKey

private String mLabelKey
The profile key that is used for the labelling.

Constructor Detail

DAX2LabelGraph

public DAX2LabelGraph(PegasusProperties properties,
                      String dax)
The overloaded constructor.

Parameters:
properties - the properties passed to the planner.
dax - the path to the DAX file.
Method Detail

setLabelKey

public static void setLabelKey(String value)
Sets the default label value that is to be used if the profile is not associated with the job.

Parameters:
value - the value to be associated.

cbJob

public void cbJob(SubInfo job)
This constructs a graph node for the job and ends up storing it in the internal map. In addition assigns a label with the node. The label is is the value of a profile in the VDS namespace. The name of the profile can

Specified by:
cbJob in interface Callback
Overrides:
cbJob in class DAX2Graph
Parameters:
job - the job that was parsed.

cbDone

public void cbDone()
Callback to signal that traversal of the DAX is complete. At this point a dummy root node is added to the graph, that is the parents to all the root nodes in the existing DAX. This method in additions adds the default label to the root.

Specified by:
cbDone in interface Callback
Overrides:
cbDone in class DAX2Graph


Copyright © 2003 The University of Chicago and The University of Southern California. All Rights Reserved.