All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class busrider.Purchase
java.lang.Object
   |
   +----busrider.Purchase
  -  public class Purchase
  
-  extends Object
  
This immutable class represents a purchase of a route or a
Right-of-Way.
  Variable Index
  - 
	RIGHT_OF_WAY
  
 -  kind codes: 
ROUTE, RIGHT_OF_WAY.
   - 
	ROUTE
  
 -  kind codes: 
ROUTE, RIGHT_OF_WAY.
 
  Constructor Index
  - 
	Purchase(int, Route)
  
 -  constructs an object of the given kind and route.
 
  Method Index
  - 
	getKind()
  
 -  returns the kind.
  
 - 
	getRoute()
  
 -  returns the route, or null if none.
 
  Variables
ROUTE
 public static final int ROUTE
  -  kind codes: 
ROUTE, RIGHT_OF_WAY.
 
RIGHT_OF_WAY
 public static final int RIGHT_OF_WAY
  -  kind codes: 
ROUTE, RIGHT_OF_WAY.
 
  Constructors
Purchase
 public Purchase(int kind,
                 Route route)
  -  constructs an object of the given kind and route.
 
  Methods
getKind
 public int getKind()
  -  returns the kind.
 
getRoute
 public Route getRoute()
  -  returns the route, or null if none.
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index