jbotrace.base
Class DriverInformation

java.lang.Object
  |
  +--jbotrace.base.DriverInformation

public class DriverInformation
extends java.lang.Object

Description: An instance of this class is given to each bot to inform it about the current situation.


Field Summary
 SegmentInformation[] segmentInformations
           
static int SEGMENTS
           
 
Constructor Summary
DriverInformation(Race race, Car car)
           
 
Method Summary
 double carAhead()
           
 double carLeft()
           
 double carRight()
           
 double toEnd()
           
 double toLeft()
           
 double toMiddle()
           
 double toRight()
           
 double velocity()
          Returns the velocity of the car
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEGMENTS

public static final int SEGMENTS
See Also:
Constant Field Values

segmentInformations

public SegmentInformation[] segmentInformations
Constructor Detail

DriverInformation

public DriverInformation(Race race,
                         Car car)
Method Detail

carAhead

public double carAhead()

carLeft

public double carLeft()

carRight

public double carRight()

toEnd

public double toEnd()

toLeft

public double toLeft()

toMiddle

public double toMiddle()

toRight

public double toRight()

velocity

public double velocity()
Returns the velocity of the car