|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.griphyn.cPlanner.parser.dax.DAX2Graph
org.griphyn.cPlanner.parser.dax.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. |
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 |
public static final String DEFAULT_LABEL_KEY
public static String DEFAULT_LABEL_VALUE
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 static void setLabelKey(String value)
value - the value to be associated.public void cbJob(SubInfo 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 | ||||||||||