com.scottpreston.javarobot.chapter7
Class DistanceVector

java.lang.Object
  extended by com.scottpreston.javarobot.chapter7.Edge
      extended by com.scottpreston.javarobot.chapter7.MotionVector
          extended by com.scottpreston.javarobot.chapter7.DistanceVector
Direct Known Subclasses:
MotionEpisode

public class DistanceVector
extends MotionVector


Field Summary
 
Fields inherited from class com.scottpreston.javarobot.chapter7.MotionVector
heading, magintude
 
Fields inherited from class com.scottpreston.javarobot.chapter7.Edge
name, v1, v2, weight
 
Constructor Summary
DistanceVector(int h, double inches)
           
DistanceVector(java.lang.String h, java.lang.String inches)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistanceVector

public DistanceVector(int h,
                      double inches)

DistanceVector

public DistanceVector(java.lang.String h,
                      java.lang.String inches)
               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class MotionVector