massim.competition2011.scenario
Class GraphEdge

java.lang.Object
  extended by massim.competition2011.scenario.GraphEdge
All Implemented Interfaces:
java.io.Serializable

public class GraphEdge
extends java.lang.Object
implements java.io.Serializable

This class represents and Edge in the graph that forms the map.

See Also:
Serialized Form

Field Summary
 GraphNode node1
           
 GraphNode node2
           
 int weight
           
 
Constructor Summary
GraphEdge(int weight, GraphNode node1, GraphNode node2)
           
 
Method Summary
 float getLength()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node1

public GraphNode node1

node2

public GraphNode node2

weight

public int weight
Constructor Detail

GraphEdge

public GraphEdge(int weight,
                 GraphNode node1,
                 GraphNode node2)
Method Detail

getLength

public float getLength()


Copyright © 2012. All Rights Reserved.