|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectshady.common.pathfinder.Edge
public class Edge
Used in the graph representation as weighted links between the possible shady connection points
TBD more docTarget: 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.
| 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 |
|---|
private static final java.lang.String cvsid
CVS id.
protected double cost
Cost or weight assosiated with edge.
protected Node startNode
Source node for the edge.
protected Node endNode
End node for the edge.
| Constructor Detail |
|---|
public Edge(Node startNode,
Node endNode,
double cost)
Create a new edge.
startNode - Source node for the edge.endNode - Terminal node for the edge.cost - Cost or weight assosiated with edge.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||