edu.mit.ll.group43.surfaceoptimization.network
Class NetworkEdge

java.lang.Object
  extended by edu.mit.ll.group43.surfaceoptimization.network.NetworkEdge

public class NetworkEdge
extends java.lang.Object

Represents a directed edge in a network.

Author:
William Hawkins

Constructor Summary
NetworkEdge(NetworkNode source, NetworkNode target, int weight)
           
 
Method Summary
 NetworkNode getSource()
          Returns the node from which this edge originates.
 NetworkNode getTarget()
          Returns the node to which this edge points.
 int getWeight()
          Returns the weight of this edge.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkEdge

public NetworkEdge(NetworkNode source,
                   NetworkNode target,
                   int weight)
Method Detail

getSource

public NetworkNode getSource()
Returns the node from which this edge originates.

Returns:

getTarget

public NetworkNode getTarget()
Returns the node to which this edge points.

Returns:

getWeight

public int getWeight()
Returns the weight of this edge.

Returns: