com.scottpreston.javarobot.chapter7
Class MotionVector

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

public class MotionVector
extends Edge


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

Field Detail

heading

public int heading

magintude

public double magintude
Constructor Detail

MotionVector

public MotionVector(int h,
                    double seconds)

MotionVector

public MotionVector(java.lang.String h,
                    java.lang.String seconds)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

toString

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