Java Doc for PartialOrderNode.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » media » jai » 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 » 6.0 JDK Modules » Java Advanced Imaging » javax.media.jai 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.jai.PartialOrderNode

PartialOrderNode
final class PartialOrderNode implements Cloneable,java.io.Serializable(Code)
A node in a directed graph of operations. Each node maintains three pieces of information, in addition to an arbitrary Object containing user data associated with the node, in order to allow topological sorting to be performed in linear time.

First, the in-degree (number of other nodes pointing to this node) is stored as an int. Nodes with in-degree equal to 0 are "free" and may appear first in a topological sort.

Second, a reference called zeroLink to another PartialOrderNode is kept in order to allow construction of a linked list of nodes with zero in-degree.

Third, a Vector of neighboring nodes is maintained (in no particular order). These are the nodes which are pointed to by the current node.

This class is used by the implementation of the OperationRegistry class and is not intended to be part of the API.



Field Summary
protected  intcopyInDegree
     Copy of the inDegree of the node.
protected  intinDegree
     The in-degree of the node.
protected  Stringname
     The name of the object associated with this node.
 Vectorneighbors
     A Vector of neighboring nodes.
protected  ObjectnodeData
     The data associated with this node.
protected  PartialOrderNodezeroLink
     A link to another node with 0 in-degree, or null.

Constructor Summary
 PartialOrderNode(Object nodeData, String name)
     Constructs an PartialOrderNode with given associated data.

Method Summary
 voidaddEdge(PartialOrderNode poNode)
     Adds a directed edge to the graph.
 voiddecrementCopyInDegree()
     Decrements the copy in-degree of a node.
 voiddecrementInDegree()
     Decrements the in-degree of a node.
 intgetCopyInDegree()
     Returns the copy in-degree of this node.
 ObjectgetData()
     Returns the Object represented by this node.
 intgetInDegree()
     Returns the in-degree of this node.
 StringgetName()
     Returns the name of the Object represented by this node.
 EnumerationgetNeighbors()
     Returns the neighbors of this node as an Enumeration.
 PartialOrderNodegetZeroLink()
     Returns the next zero in-degree node in the linked list.
 voidincrementCopyInDegree()
     Increments the copy-in-degree of a node.
 voidincrementInDegree()
     Increments the in-degree of a node.
 voidremoveEdge(PartialOrderNode poNode)
     Removes a directed edge from the graph.
 voidsetCopyInDegree(int copyInDegree)
     Sets the copy in-degree of this node.
 voidsetZeroLink(PartialOrderNode poNode)
     Sets the next zero in-degree node in the linked list.

Field Detail
copyInDegree
protected int copyInDegree(Code)
Copy of the inDegree of the node.



inDegree
protected int inDegree(Code)
The in-degree of the node.



name
protected String name(Code)
The name of the object associated with this node.



neighbors
Vector neighbors(Code)
A Vector of neighboring nodes.



nodeData
protected Object nodeData(Code)
The data associated with this node.



zeroLink
protected PartialOrderNode zeroLink(Code)
A link to another node with 0 in-degree, or null.




Constructor Detail
PartialOrderNode
PartialOrderNode(Object nodeData, String name)(Code)
Constructs an PartialOrderNode with given associated data.
Parameters:
  nodeData - an Object to associate with this node.




Method Detail
addEdge
void addEdge(PartialOrderNode poNode)(Code)
Adds a directed edge to the graph. The neighbors list of this node is updated and the in-degree of the other node is incremented.



decrementCopyInDegree
void decrementCopyInDegree()(Code)
Decrements the copy in-degree of a node.



decrementInDegree
void decrementInDegree()(Code)
Decrements the in-degree of a node.



getCopyInDegree
int getCopyInDegree()(Code)
Returns the copy in-degree of this node.



getData
Object getData()(Code)
Returns the Object represented by this node.



getInDegree
int getInDegree()(Code)
Returns the in-degree of this node.



getName
String getName()(Code)
Returns the name of the Object represented by this node.



getNeighbors
Enumeration getNeighbors()(Code)
Returns the neighbors of this node as an Enumeration.



getZeroLink
PartialOrderNode getZeroLink()(Code)
Returns the next zero in-degree node in the linked list.



incrementCopyInDegree
void incrementCopyInDegree()(Code)
Increments the copy-in-degree of a node.



incrementInDegree
void incrementInDegree()(Code)
Increments the in-degree of a node.



removeEdge
void removeEdge(PartialOrderNode poNode)(Code)
Removes a directed edge from the graph. The neighbors list of this node is updated and the in-degree of the other node is decremented.



setCopyInDegree
void setCopyInDegree(int copyInDegree)(Code)
Sets the copy in-degree of this node.



setZeroLink
void setZeroLink(PartialOrderNode poNode)(Code)
Sets the next zero in-degree node in the linked list.



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.