org.codehaus.mojo.graphing.model
Class GraphModel

java.lang.Object
  extended by org.codehaus.mojo.graphing.model.GraphModel

public class GraphModel
extends java.lang.Object

Graph Model.

Author:
Joakim Erdfelt

Field Summary
static int EDGE_COMPILE_DEPENDENCY
          Edge type for a compile dependency from node1 to node2
static int EDGE_NORMAL
          Edge type for 2 nodes that are equivalent and have no dependency
static int EDGE_PARENT
          Edge type for 2 nodes that are equivalent and have no dependency
static int EDGE_PROVIDED_DEPENDENCY
          Edge type for a provided dependency from node1 to node2
static int EDGE_RUNTIME_DEPENDENCY
          Edge type for a runtime dependency from node1 to node2
static int EDGE_SYSTEM_DEPENDENCY
          Edge type for a system dependency from node1 to node2
static int EDGE_TEST_DEPENDENCY
          Edge type for a test dependency from node1 to node2
static int NODE_ERROR
          Node type for a node with an error.
static int NODE_NORMAL
          Node type for a normal node.
static int NODE_PROJECT
          Node type for the node representing the project.
 
Constructor Summary
GraphModel()
          Create a GraphModel.
 
Method Summary
 boolean addEdge(Edge edge)
          Add an edge.
 boolean addNode(Node node)
          Add a node.
 Node getCenterNode()
           
 java.util.Iterator getEdgesIterator()
           
 java.util.Iterator getNodesIterator()
           
 void setCenterNode(Node centerNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDGE_NORMAL

public static final int EDGE_NORMAL
Edge type for 2 nodes that are equivalent and have no dependency

See Also:
Constant Field Values

EDGE_PARENT

public static final int EDGE_PARENT
Edge type for 2 nodes that are equivalent and have no dependency

See Also:
Constant Field Values

EDGE_COMPILE_DEPENDENCY

public static final int EDGE_COMPILE_DEPENDENCY
Edge type for a compile dependency from node1 to node2

See Also:
Constant Field Values

EDGE_TEST_DEPENDENCY

public static final int EDGE_TEST_DEPENDENCY
Edge type for a test dependency from node1 to node2

See Also:
Constant Field Values

EDGE_RUNTIME_DEPENDENCY

public static final int EDGE_RUNTIME_DEPENDENCY
Edge type for a runtime dependency from node1 to node2

See Also:
Constant Field Values

EDGE_PROVIDED_DEPENDENCY

public static final int EDGE_PROVIDED_DEPENDENCY
Edge type for a provided dependency from node1 to node2

See Also:
Constant Field Values

EDGE_SYSTEM_DEPENDENCY

public static final int EDGE_SYSTEM_DEPENDENCY
Edge type for a system dependency from node1 to node2

See Also:
Constant Field Values

NODE_NORMAL

public static final int NODE_NORMAL
Node type for a normal node.

See Also:
Constant Field Values

NODE_PROJECT

public static final int NODE_PROJECT
Node type for the node representing the project.

See Also:
Constant Field Values

NODE_ERROR

public static final int NODE_ERROR
Node type for a node with an error.

See Also:
Constant Field Values
Constructor Detail

GraphModel

public GraphModel()
Create a GraphModel.

Method Detail

addEdge

public boolean addEdge(Edge edge)
Add an edge.

Parameters:
edge -

getEdgesIterator

public java.util.Iterator getEdgesIterator()
Returns:
Returns the edges.

addNode

public boolean addNode(Node node)
Add a node.

Parameters:
node -

getNodesIterator

public java.util.Iterator getNodesIterator()
Returns:
Returns the nodes.

getCenterNode

public Node getCenterNode()

setCenterNode

public void setCenterNode(Node centerNode)


Copyright © 2005-2010. All Rights Reserved.