All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class busrider.Router

java.lang.Object
   |
   +----busrider.Router

public class Router
extends Object
This class is used by the conductor, when a Strategy fails to select a valid Segment for a player to traverse.


Constructor Index

 o Router()

Method Index

 o pickSegment(int, Junction, Junction, Route)
picks the next segment to traverse.

Constructors

 o Router
 public Router()

Methods

 o pickSegment
 public static Segment pickSegment(int playerIndex,
                                   Junction here,
                                   Junction there,
                                   Route current)
picks the next segment to traverse.


All Packages  Class Hierarchy  This Package  Previous  Next  Index