|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.network.EdgeFactory
public class EdgeFactory
Utility methods for creating Edges.
| Constructor Summary | |
|---|---|
EdgeFactory()
|
|
| Method Summary | |
|---|---|
static Edge |
createCustomEdge(Node from,
Node to,
java.lang.Class edgeClass)
Constructs an edge from the specified from node to the specified to node with a blank label. |
static Edge |
createCustomEdge(Node from,
Node to,
java.lang.String label,
java.lang.Class edgeClass)
Construct an Edge from the specified from node to the specified to node with the specified label, and a default strength of 1.0. |
static Edge |
createCustomEdge(Node from,
Node to,
java.lang.String label,
float strength,
java.lang.Class edgeClass)
Construct an edge from the specified from node to the specified to node with the specified label, and the specified strength. |
static DefaultDrawableEdge |
createDrawableEdge(Node from,
Node to)
Constructs an edge from the specified to node to the specified node with a blank label. |
static DefaultDrawableEdge |
createDrawableEdge(Node from,
Node to,
java.lang.String label)
Constructs an edge from the specified node to the specified node with the specified label, and a default strength of 1.0. |
static DefaultDrawableEdge |
createDrawableEdge(Node from,
Node to,
java.lang.String label,
float strength)
Constructs an edge from the specified from node to the specified to node with the specified label, and the specified strength. |
static DefaultEdge |
createEdge(Node from,
Node to)
Constructs an edge from the specified node to the specified node with a blank label. |
static DefaultEdge |
createEdge(Node from,
Node to,
java.lang.String label)
Construct an edge from the specified node to the specified node with the specified label, and a default strength of 1.0. |
static DefaultEdge |
createEdge(Node from,
Node to,
java.lang.String label,
float strength)
Construct an edge from the specified node to the specified node with the specified label, and the specified strength. |
static Edge |
linkNodes(Node from,
Node to,
Edge edge)
Links the specified Nodes with the specified Edge. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EdgeFactory()
| Method Detail |
|---|
public static Edge linkNodes(Node from,
Node to,
Edge edge)
from - the Node from which the edge proceedsto - the Node to which the edge proceedsedge - the edge to link the two Nodes
public static DefaultEdge createEdge(Node from,
Node to,
java.lang.String label)
from - the from Nodeto - the to Nodelabel - for this edge
public static DefaultEdge createEdge(Node from,
Node to,
java.lang.String label,
float strength)
from - the from Nodeto - the to Nodelabel - the label for this edgestrength - the strength of this edge
public static DefaultEdge createEdge(Node from,
Node to)
from - the from Nodeto - the to Node
public static DefaultDrawableEdge createDrawableEdge(Node from,
Node to,
java.lang.String label)
from - the from Nodeto - the to Nodelabel - for this edge
public static DefaultDrawableEdge createDrawableEdge(Node from,
Node to,
java.lang.String label,
float strength)
from - the from Nodeto - the to Nodelabel - the label for this edgestrength - the strength of this edge
public static DefaultDrawableEdge createDrawableEdge(Node from,
Node to)
from - the from Nodeto - the to Node
public static Edge createCustomEdge(Node from,
Node to,
java.lang.String label,
java.lang.Class edgeClass)
from - the from Nodeto - the to Nodelabel - for this edgeedgeClass - the Class to create the Edge from
public static Edge createCustomEdge(Node from,
Node to,
java.lang.String label,
float strength,
java.lang.Class edgeClass)
from - the from Nodeto - the to Nodelabel - the label for this edgestrength - the strength of this edgeedgeClass - the Class to create the Edge from
public static Edge createCustomEdge(Node from,
Node to,
java.lang.Class edgeClass)
from - the from Nodeto - the to NodeedgeClass - the Class to create the Edge from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||