| java.lang.Object org.griphyn.cPlanner.parser.dax.DAX2Graph org.griphyn.cPlanner.parser.dax.DAX2LabelGraph
DAX2LabelGraph | public class DAX2LabelGraph extends DAX2Graph (Code) | | 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.
author: Karan Vahi version: $Revision: 221 $ |
Field Summary | |
final public static String | DEFAULT_LABEL_KEY The default key for the VDS namespace profile, that is used in case none
is specified by the user. |
Method Summary | |
public void | cbDone() Callback to signal that traversal of the DAX is complete. | public void | cbJob(SubInfo job) This constructs a graph node for the job and ends up storing it in the
internal map. | public void | setLabelKey(String key) Set the profile key that is to be used to pick up the labels.
Sets the profile key to the value specified. |
DEFAULT_LABEL_KEY | final public static String DEFAULT_LABEL_KEY(Code) | | The default key for the VDS namespace profile, that is used in case none
is specified by the user.
|
DAX2LabelGraph | public DAX2LabelGraph(PegasusProperties properties, String dax)(Code) | | The overloaded constructor.
Parameters: properties - the properties passed to the planner. Parameters: dax - the path to the DAX file. |
cbDone | public void cbDone()(Code) | | 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.
|
cbJob | public void cbJob(SubInfo job)(Code) | | 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
Parameters: job - the job that was parsed. |
setLabelKey | public void setLabelKey(String key)(Code) | | Set the profile key that is to be used to pick up the labels.
Sets the profile key to the value specified. If value passed is
null, then is set to the default label key.
Parameters: key - the VDS profile key that is to be used. See Also: DAX2LabelGraph.DEFAULT_LABEL_KEY |
|
|