Java Doc for Directed.java in  » Test-Coverage » Quilt » org » quilt » graph » 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 » Test Coverage » Quilt » org.quilt.graph 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.quilt.graph.Directed

All known Subclasses:   org.quilt.cl.ControlFlowGraph,
Directed
public class Directed (Code)
A graph consisting of vertices connected by directed, weighted edges. The graph is guaranteed to have at least an entry and an exit point and to always be well-formed, in the sense that
  • there will be a path from the entry vertex to any other vertex in the graph, and
  • there will be a path from any vertex in the graph to the exit vertex
These graphs may be nested. In such a case
  • both graphs will be well-formed
  • the entry and exit points of the subgraph are in the graph
  • all paths from the entry point of the parent to a point in the subgraph will pass through the entry point of the subgraph
  • all paths from a vertex within the subgraph to a vertex in the parent graph will pass through the exit vertex of the subgraph

author:
   Jim Dixon


Field Summary
protected static  intgraphIndex
     Index of most recently built graph.

Constructor Summary
public  Directed()
     Builds a root directed graph with two vertices and two edges.
protected  Directed(Directed parent)
     Subgraph constructor; will have depth one more than parent.

Method Summary
public  intanotherEdge(Edge e)
     Step edge count.
Parameters:
  e - Edge being added.
public  intanotherVertex(Vertex v)
     Step count of vertices .
Parameters:
  v - Vertex being added.
public static  voidcheckForNull(Object o, String what)
    
public  EntryclosestEntry(Directed g)
     If the edge points towards a vertex in a graph which is enclosed within the current graph, return a reference to the closest Entry. The vertex might be within a nested subgraph.
final protected static  DirectedconnectSubgraph(Directed subgraph, Edge e, int n)
     Inserts a subgraph into an edge, putting the entry and exit points on the edge presented.
public  intgetDepth()
     The depth of this graph.
public  EntrygetEntry()
     The entry vertex of this graph.
public  ExitgetExit()
     The exit vertex of this graph.
public  intgetIndex()
     The zero-based index of this graph.
public  DirectedgetParent()
     The parent graph to this graph, or null if there is none.
final protected  VertexinsertVertex(Vertex v, Edge e)
     Insert a (new) Vertex into the graph along the edge provided.
public  VertexinsertVertex(Edge e)
     Create a new Vertex with a Unary connector and insert into this graph's edge e.
public  intsize()
    
public  Directedsubgraph(Edge e, int n)
     Constructs a subgraph and inserts it into the parent graph on the edge presented.

Field Detail
graphIndex
protected static int graphIndex(Code)
Index of most recently built graph.




Constructor Detail
Directed
public Directed()(Code)
Builds a root directed graph with two vertices and two edges. The two vertices are Entry and Exit types. There is an edge from entry to exit and another from exit back to entry. Each is constained in a UnaryConnector. Vertices are added to the graph by inserting them along the entry-to-exit edge.
See Also:   Connector
See Also:   Edge



Directed
protected Directed(Directed parent)(Code)
Subgraph constructor; will have depth one more than parent.
Parameters:
  parent - Graph in which this is a subgraph.
Parameters:
  n - Number of extra edges




Method Detail
anotherEdge
public int anotherEdge(Edge e)(Code)
Step edge count.
Parameters:
  e - Edge being added. Ignored at the moment.



anotherVertex
public int anotherVertex(Vertex v)(Code)
Step count of vertices .
Parameters:
  v - Vertex being added. Being ignored at the moment.



checkForNull
public static void checkForNull(Object o, String what)(Code)



closestEntry
public Entry closestEntry(Directed g)(Code)
If the edge points towards a vertex in a graph which is enclosed within the current graph, return a reference to the closest Entry. The vertex might be within a nested subgraph. If it is not in a descendent graph, return null.
Parameters:
  e - Edge towards vertex in lower-level graph.
Parameters:
  g - Candidate lower-level graph. A reference to the nearest Entry point or null.



connectSubgraph
final protected static Directed connectSubgraph(Directed subgraph, Edge e, int n)(Code)
Inserts a subgraph into an edge, putting the entry and exit points on the edge presented. On exit the original edge has been retargeted to the Entry of the subgraph.
Parameters:
  e - An edge in the parent graph. A reference to the subgraph.



getDepth
public int getDepth()(Code)
The depth of this graph.



getEntry
public Entry getEntry()(Code)
The entry vertex of this graph.



getExit
public Exit getExit()(Code)
The exit vertex of this graph.



getIndex
public int getIndex()(Code)
The zero-based index of this graph.



getParent
public Directed getParent()(Code)
The parent graph to this graph, or null if there is none.



insertVertex
final protected Vertex insertVertex(Vertex v, Edge e)(Code)
Insert a (new) Vertex into the graph along the edge provided. After this operation the target of the edge will be the new vertex.
Parameters:
  v - Vertex to be inserted.
Parameters:
  e - Edge it is to be inserted along.



insertVertex
public Vertex insertVertex(Edge e)(Code)
Create a new Vertex with a Unary connector and insert into this graph's edge e.



size
public int size()(Code)



subgraph
public Directed subgraph(Edge e, int n)(Code)
Constructs a subgraph and inserts it into the parent graph on the edge presented. This is a wrapper around the method that does the connecting; when extending the class, override the wrapper.
Parameters:
  e - An edge in the parent graph. A reference to the subgraph.



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.