RePast
v. 2.0

uchicago.src.sim.network
Interface Edge

All Known Subinterfaces:
DrawableEdge
All Known Implementing Classes:
DefaultDrawableEdge, DefaultEdge, HyperCycleLink, HyperLink, JiggleEdge, JinGirNewEdge

public interface Edge

A interface for all edge objects (as in nodes and edges). Implementing this inteface allows the edge to be displayed correctly.

At this time labels are not displayed.


Method Summary
 Node getFrom()
          Gets the node that this edge comes from.
 String getLabel()
          Gets the label for this edge.
 double getStrength()
          Gets the strength of this edge
 Node getTo()
          Gets the node that this edge goes to
 String getType()
          Gets the type of this edge.
 void setFrom(Node node)
          Sets the from node
 void setLabel(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(String type)
          Sets the type of this edge.
 

Method Detail

getFrom

public Node getFrom()
Gets the node that this edge comes from.


getTo

public Node getTo()
Gets the node that this edge goes to


setFrom

public void setFrom(Node node)
Sets the from node


setTo

public void setTo(Node node)
Sets the to Node


setLabel

public void setLabel(String label)
Sets the label for this edge

Parameters:
label - the label for this edge

getLabel

public String getLabel()
Gets the label for this edge.


setStrength

public void setStrength(double val)
Sets the strength of this edge


getStrength

public double getStrength()
Gets the strength of this edge


getType

public String getType()
Gets the type of this edge. This is typically used to track the type of network.


setType

public void setType(String type)
Sets the type of this edge. This is typically used to track the type of network (i.e. marriage etc.)


RePast
v. 2.0

Bug reports and feature requests to RePast