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

 o RIGHT_OF_WAY
kind codes: ROUTE, RIGHT_OF_WAY.
 o ROUTE
kind codes: ROUTE, RIGHT_OF_WAY.

Constructor Index

 o Purchase(int, Route)
constructs an object of the given kind and route.

Method Index

 o getKind()
returns the kind.
 o getRoute()
returns the route, or null if none.

Variables

 o ROUTE
 public static final int ROUTE
kind codes: ROUTE, RIGHT_OF_WAY.

 o RIGHT_OF_WAY
 public static final int RIGHT_OF_WAY
kind codes: ROUTE, RIGHT_OF_WAY.

Constructors

 o Purchase
 public Purchase(int kind,
                 Route route)
constructs an object of the given kind and route.

Methods

 o getKind
 public int getKind()
returns the kind.

 o getRoute
 public Route getRoute()
returns the route, or null if none.


All Packages  Class Hierarchy  This Package  Previous  Next  Index