| |
|
| java.lang.Object org.griphyn.cPlanner.parser.dax.DAX2Graph
All known Subclasses: org.griphyn.cPlanner.parser.dax.DAX2LabelGraph,
DAX2Graph | public class DAX2Graph implements Callback(Code) | | This callback implementation ends up building a detailed structure of the
graph referred to by the abstract plan in dax, that should make the graph
traversals easier. Later on this graph representation would be used
uniformly in the Pegasus code base.
author: Karan Vahi version: $Revision: 222 $ |
Field Summary | |
final public static String | DUMMY_NODE_ID The id of the dummy root node added on the top of the graph. | protected Map | mAbstractGraph The map containing the a graph node for each of the jobs referred to in
the dax. | 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 as set by Chimera. | protected LogManager | mLogger The logging object. | protected PegasusProperties | mProps The handle to the properties object. | protected GraphNode | mRoot The root node for the graph that is constructed. |
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 Object | get(Object key) It returns the value associated with the key in the map.
Parameters: key - the key to the entry in the map. | public Object | getConstructedObject() Returns a Map indexed by the logical ID of the jobs, and each value being
a GraphNode object. | public String | getNameOfDAX() Returns the name of the dax. | protected void | put(Object key, Object value) It puts the key and the value in the internal map. |
DUMMY_NODE_ID | final public static String DUMMY_NODE_ID(Code) | | The id of the dummy root node added on the top of the graph. Makes
easier the starting of the traversal.
|
mAbstractGraph | protected Map mAbstractGraph(Code) | | The map containing the a graph node for each of the jobs referred to in
the dax. The key is the logical id of the job.
|
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 as set by Chimera.
|
mRoot | protected GraphNode mRoot(Code) | | The root node for the graph that is constructed.
|
DAX2Graph | public DAX2Graph(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 Object get(Object key)(Code) | | It returns the value associated with the key in the map.
Parameters: key - the key to the entry in the map. the object |
getConstructedObject | public Object getConstructedObject()(Code) | | Returns a Map indexed by the logical ID of the jobs, and each value being
a GraphNode object.
ADag object containing the abstract plan referred in the dax. |
getNameOfDAX | public String getNameOfDAX()(Code) | | Returns the name of the dax.
name of dax |
put | protected void put(Object key, Object value)(Code) | | It puts the key and the value in the internal map.
Parameters: key - the key to the entry in the map. Parameters: value - the entry in the map. |
|
|
|