| |
|
| java.lang.Object org.griphyn.cPlanner.parser.dax.DAX2NewGraph
DAX2NewGraph | public class DAX2NewGraph implements Callback(Code) | | An exploratory implementation that builds on the DAX2Graph.
There is a graph object created that is returned.
author: Karan Vahi version: $Revision: 50 $ |
Field Summary | |
protected boolean | mDone A flag to specify whether the graph has been generated for the partition
or not. | protected String | mLabel The label of the abstract dax. | protected PegasusProperties | mProps The handle to the properties object. | protected Graph | mWorkflow The Graph instance that stores the abstract workflow as a Graph. |
Method Summary | |
public void | cbDocument(Map attributes) Callback when the opening tag was parsed. | 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 | cbParents(String child, List parents) This updates the internal graph nodes of child with references to it's
parents referred to by the list of parents passed. | public GraphNode | get(String key) Returns the GraphNode of the corresponding id.
Parameters: id - the id of the node. | public Object | getConstructedObject() Returns the workflow represented in the Graph form. | public String | getNameOfDAX() Returns the name of the dax. |
mDone | protected boolean mDone(Code) | | A flag to specify whether the graph has been generated for the partition
or not.
|
mLabel | protected String mLabel(Code) | | The label of the abstract dax.
|
mWorkflow | protected Graph mWorkflow(Code) | | The Graph instance that stores the abstract workflow as a Graph.
|
DAX2NewGraph | public DAX2NewGraph(PegasusProperties properties, String dax)(Code) | | The overloaded constructor.
Parameters: properties - the properties passed to the planner. Parameters: dax - the path to the DAX file. |
cbDocument | public void cbDocument(Map attributes)(Code) | | Callback when the opening tag was parsed. This contains all
attributes and their raw values within a map. It ends up storing
the attributes with the adag element in the internal memory structure.
Parameters: attributes - is a map of attribute key to attribute value |
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.
|
cbJob | public void cbJob(SubInfo job)(Code) | | This constructs a graph node for the job and ends up storing it in the
internal map.
Parameters: job - the job that was parsed. |
cbParents | public void cbParents(String child, List parents)(Code) | | This updates the internal graph nodes of child with references to it's
parents referred to by the list of parents passed. It gets the handle
to the parents graph nodes from it's internal map.
Parameters: child - the logical id of the child node. Parameters: parents - list containing the logical id's of the parents of thechild nodes. |
get | public GraphNode get(String key)(Code) | | Returns the GraphNode of the corresponding id.
Parameters: id - the id of the node. GraphNode . |
getConstructedObject | public Object getConstructedObject()(Code) | | Returns the workflow represented in the Graph form.
Graph containing the abstract workflow referredin the dax. |
getNameOfDAX | public String getNameOfDAX()(Code) | | Returns the name of the dax.
|
|
|
|