com.azalient.api.sim.agents
Interface IExitChoice


public interface IExitChoice

An exit choice holds the exit index from one or more approaching intersections for a vehicle. An intersection may be a set of nodes, such as on a roundabout.


Method Summary
 IIntersection intersection()
          The next intersection ahead.
 int intersectionExit()
          The [1..N] exit from the intersection ahead.
 int intersectionExit(int ahead)
          The [1..N] exit from the [1..Nth] intersection ahead.
 int intersectionLook()
          The number of intersections ahead for which this has been calculated
 ILink link()
          The link to which this ExitChoice applies
 int linkExit()
          the [1.N] exit index from the current link
 

Method Detail

link

ILink link()
The link to which this ExitChoice applies


intersection

IIntersection intersection()
The next intersection ahead. Returns null if no intersection within lookahead distance.


linkExit

int linkExit()
the [1.N] exit index from the current link


intersectionExit

int intersectionExit()
The [1..N] exit from the intersection ahead. Returns 0 if there is no intersection within range of IMotorCalibration.intersectionLookAhead


intersectionExit

int intersectionExit(int ahead)
The [1..N] exit from the [1..Nth] intersection ahead. Returns 0 if there is no intersection within range of IMotorCalibration.intersectionLookAhead


intersectionLook

int intersectionLook()
The number of intersections ahead for which this has been calculated