|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.network.DefaultEdge
public class DefaultEdge
An edge between two nodes. A default implementation of Edge.
Node| Field Summary | |
|---|---|
protected Node |
from
|
protected java.lang.String |
label
|
protected double |
strength
|
protected Node |
to
|
protected java.lang.String |
type
|
| Constructor Summary | |
|---|---|
DefaultEdge()
Constructs a DefaultEdge without any connecting Nodes. |
|
DefaultEdge(Node from,
Node to)
Construct an edge from the specified to node to the specified node with a blank label. |
|
DefaultEdge(Node from,
Node to,
java.lang.String label)
Construct an edge from the specified to node to the specified node with the specified label, and a default strength of 1.0. |
|
DefaultEdge(Node from,
Node to,
java.lang.String label,
float strength)
Construct an edge from the specified to node to the specified node with the specified label, and the specified strength. |
|
| Method Summary | |
|---|---|
Node |
getFrom()
Gets the from node |
java.lang.String |
getLabel()
Gets the label for this Edge |
double |
getStrength()
Gets the strength of this edge |
Node |
getTo()
Gets the to node |
java.lang.String |
getType()
Gets the type of this DefaultEdge. |
void |
setFrom(Node node)
Sets the from node. |
void |
setLabel(java.lang.String label)
Sets the label for this Edge |
void |
setStrength(double val)
Sets the strength of this edge |
void |
setTo(Node node)
Sets the to node. |
void |
setType(java.lang.String type)
Sets the type of this DefaultEdge. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Node from
protected Node to
protected java.lang.String label
protected java.lang.String type
protected double strength
| Constructor Detail |
|---|
public DefaultEdge()
public DefaultEdge(Node from,
Node to,
java.lang.String label)
from - the from Nodeto - the to Nodelabel - for this edge
public DefaultEdge(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 DefaultEdge(Node from,
Node to)
from - the from Nodeto - the to Node| Method Detail |
|---|
public Node getFrom()
getFrom in interface Edgepublic void setFrom(Node node)
setFrom in interface Edgepublic Node getTo()
getTo in interface Edgepublic void setTo(Node node)
setTo in interface Edgepublic void setLabel(java.lang.String label)
setLabel in interface Edgelabel - the label for this edgepublic java.lang.String getLabel()
getLabel in interface Edgepublic void setStrength(double val)
setStrength in interface Edgepublic double getStrength()
getStrength in interface Edgepublic java.lang.String getType()
getType in interface Edgepublic void setType(java.lang.String type)
setType in interface Edgetype - this DefaultEdge's type (i.e. the network type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||