shady.common.pathfinder
Class Edge

java.lang.Object
  extended by shady.common.pathfinder.Edge

public class Edge
extends java.lang.Object

Used in the graph representation as weighted links between the possible shady connection points

TBD more doc

Target: 1.4 JRE.

Copyright (C) 2006 Marsette A. Vona, III

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Author:
Peter Osagie

Field Summary
protected  double cost
          Cost or weight assosiated with edge.
private static java.lang.String cvsid
          CVS id.
protected  Node endNode
          End node for the edge.
protected  Node startNode
          Source node for the edge.
 
Constructor Summary
Edge(Node startNode, Node endNode, double cost)
          Create a new edge.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsid

private static final java.lang.String cvsid

CVS id.

See Also:
Constant Field Values

cost

protected double cost

Cost or weight assosiated with edge.


startNode

protected Node startNode

Source node for the edge.


endNode

protected Node endNode

End node for the edge.

Constructor Detail

Edge

public Edge(Node startNode,
            Node endNode,
            double cost)

Create a new edge.

Parameters:
startNode - Source node for the edge.
endNode - Terminal node for the edge.
cost - Cost or weight assosiated with edge.