|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.parser.dax.DAX2Graph
edu.isi.pegasus.planner.parser.dax.DAX2LabelGraph
public class DAX2LabelGraph
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.
| 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. |
private String |
mLabelKey
The profile key that is used for the labelling. |
| Fields inherited from class edu.isi.pegasus.planner.parser.dax.DAX2Graph |
|---|
DUMMY_NODE_ID, mAbstractGraph, mDone, mLabel, mLogger, mProps, mRoot |
| Fields inherited from interface edu.isi.pegasus.planner.parser.dax.Callback |
|---|
VERSION |
| 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(Job job)
This constructs a graph node for the job and ends up storing it in the internal map. |
void |
setLabelKey(String key)
Set the profile key that is to be used to pick up the labels. |
| Methods inherited from class edu.isi.pegasus.planner.parser.dax.DAX2Graph |
|---|
cbCompoundTransformation, cbDocument, cbExecutable, cbFile, cbParents, cbWfInvoke, get, getConstructedObject, getNameOfDAX, put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_LABEL_KEY
private String mLabelKey
| Constructor Detail |
|---|
public DAX2LabelGraph(PegasusProperties properties,
String dax)
properties - the properties passed to the planner.dax - the path to the DAX file.| Method Detail |
|---|
public void setLabelKey(String key)
key - the VDS profile key that is to be used.DEFAULT_LABEL_KEYpublic void cbJob(Job job)
cbJob in interface CallbackcbJob in class DAX2Graphjob - the job that was parsed.public void cbDone()
cbDone in interface CallbackcbDone in class DAX2Graph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||