Java Doc for Partition.java in  » Workflow-Engines » pegasus-2.1.0 » org » griphyn » cPlanner » partitioner » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » pegasus 2.1.0 » org.griphyn.cPlanner.partitioner 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.griphyn.cPlanner.classes.Data
      org.griphyn.cPlanner.partitioner.Partition

Partition
public class Partition extends Data (Code)
This is an abstract container for a partition in the graph. This used for the generation of the partition element in the partition graph, and identifies the relations between the jobs in the partition if any.
author:
   Karan Vahi
version:
   $Revision: 50 $



Constructor Summary
public  Partition()
     The default constructor.
public  Partition(List nodeList, String id)
     The overloaded constructor.

Method Summary
public  voidaddNode(GraphNode node)
     Adds a node to the partition.
public  voidaddParents(String node, List parents)
     Ends up assigning the parents to a particular node.
public  Objectclone()
    
public  voidconstructPartition()
     It while looking at the node list constructs the relations between the jobs in the partition, that can be gotten through getRelationsInPartition().
public  StringgetID()
     It returns the unique id that is associated with the partition.
public  intgetIndex()
     It returns the index to number of the partition.
public  StringgetName()
     It returns the name of the partition.
public  SetgetNodeIDs()
     It returns the set of the job ids making up the partition.
public  ListgetNodes()
     Returns a list of nodes making up the partition.
public  MapgetRelations()
     A function to return the child-parent relations for the jobs making up the partition.
public  ListgetRootNodes()
     Returns the root nodes in the partition.
public  GraphNodelastAddedNode()
     Returns the last added node to the partition.
public  voidsetID(String id)
     It sets the id of the partition.
public  voidsetIndex(int index)
     It sets the index associated with this partition to the value passed.
public  voidsetName(String name)
     It sets the partition name to the value passed.
public  intsize()
     Returns the number of nodes in the partition.
public  StringtoString()
     Returns a String version of the object.
public  voidtoXML(Writer writer)
     Returns the xml description of the object.
public  StringtoXML()
     Returns the xml description of the object.


Constructor Detail
Partition
public Partition()(Code)
The default constructor.



Partition
public Partition(List nodeList, String id)(Code)
The overloaded constructor.
Parameters:
  nodeList - list of GraphNode objects.
Parameters:
  id - the partition id of the partition.




Method Detail
addNode
public void addNode(GraphNode node)(Code)
Adds a node to the partition. It ends up adding it to the underneath node list.
Parameters:
  node - the GraphNode object corresponding to the jobthat is to be added.



addParents
public void addParents(String node, List parents)(Code)
Ends up assigning the parents to a particular node. It does assign the parents to the node, if the node is in the partition. It however does not check if the parents are in the partition or not.
Parameters:
  node - the id of the node for which you want to add the parents.
Parameters:
  parents - list of id's of the parents of the nodes.



clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a copy of the object



constructPartition
public void constructPartition()(Code)
It while looking at the node list constructs the relations between the jobs in the partition, that can be gotten through getRelationsInPartition().



getID
public String getID()(Code)
It returns the unique id that is associated with the partition.



getIndex
public int getIndex()(Code)
It returns the index to number of the partition.



getName
public String getName()(Code)
It returns the name of the partition.



getNodeIDs
public Set getNodeIDs()(Code)
It returns the set of the job ids making up the partition.



getNodes
public List getNodes()(Code)
Returns a list of nodes making up the partition. List of GraphNode objects.



getRelations
public Map getRelations()(Code)
A function to return the child-parent relations for the jobs making up the partition. The child parent relations are only returned for the jobs that have parents in the partition. Map containing the job id's as the keys and the values as thelist of the parent id's in the partition.



getRootNodes
public List getRootNodes()(Code)
Returns the root nodes in the partition. They can only be determined, after the constructPartition() has been called. List of GraphNode objects that are the root.



lastAddedNode
public GraphNode lastAddedNode()(Code)
Returns the last added node to the partition. the last added node, or null in case partition is empty



setID
public void setID(String id)(Code)
It sets the id of the partition.
Parameters:
  id - the id of the partition.



setIndex
public void setIndex(int index)(Code)
It sets the index associated with this partition to the value passed.
Parameters:
  index - the index value.



setName
public void setName(String name)(Code)
It sets the partition name to the value passed.
Parameters:
  name - the name to which the partition name needs to be set to.



size
public int size()(Code)
Returns the number of nodes in the partition. the number of nodes.



toString
public String toString()(Code)
Returns a String version of the object.



toXML
public void toXML(Writer writer) throws IOException(Code)
Returns the xml description of the object. This is used for generating the partition graph. That is no longer done.
Parameters:
  writer - is a Writer opened and ready for writing. This can alsobe a StringWriter for efficient output.
exception:
  IOException - if something fishy happens to the stream.



toXML
public String toXML() throws IOException(Code)
Returns the xml description of the object. This is used for generating the partition graph. That is no longer done. String containing the Partition object in XML.
exception:
  IOException - if something fishy happens to the stream.



Fields inherited from org.griphyn.cPlanner.classes.Data
public String mLogMsg(Code)(Java Doc)
public LogManager mLogger(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.classes.Data
public String setToString(Set s, String delim)(Code)(Java Doc)
abstract public String toString()(Code)(Java Doc)
public String vectorToString(String heading, Vector vector)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.