Method Summary |
|
public void | addNode(GraphNode node) Adds a node to the partition. |
public void | addParents(String node, List parents) Ends up assigning the parents to a particular node. |
public Object | clone() |
public void | constructPartition() It while looking at the node list constructs the relations between
the jobs in the partition, that can be gotten through
getRelationsInPartition(). |
public String | getID() It returns the unique id that is associated with the partition. |
public int | getIndex() It returns the index to number of the partition. |
public String | getName() It returns the name of the partition. |
public Set | getNodeIDs() It returns the set of the job ids making up the partition. |
public List | getNodes() Returns a list of nodes making up the partition. |
public Map | getRelations() A function to return the child-parent relations for the jobs making up the
partition. |
public List | getRootNodes() Returns the root nodes in the partition. |
public GraphNode | lastAddedNode() Returns the last added node to the partition. |
public void | setID(String id) It sets the id of the partition. |
public void | setIndex(int index) It sets the index associated with this partition to the value passed. |
public void | setName(String name) It sets the partition name to the value passed. |
public int | size() Returns the number of nodes in the partition. |
public String | toString() Returns a String version of the object. |
public void | toXML(Writer writer) Returns the xml description of the object. |
public String | toXML() Returns the xml description of the object. |