All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class busrider.MutableRoute

java.lang.Object
   |
   +----busrider.Indexed
           |
           +----busrider.Item
                   |
                   +----busrider.MutableRoute

public class MutableRoute
extends Item
This mutable class represents a route. It is used only while building the Board, and is of no interest to the participant.

A mutable route has a name, a price, and a mutable collection of segments.


Constructor Index

 o MutableRoute(String, int, int)
constructs an object with the given name, and price, and no segments.

Method Index

 o parse(StringTokenizer, int)
parses a MutableRoute from a StringTokenizer.

Constructors

 o MutableRoute
 public MutableRoute(String name,
                     int index,
                     int price)
constructs an object with the given name, and price, and no segments.

Methods

 o parse
 public static MutableRoute parse(StringTokenizer stok,
                                  int index)
parses a MutableRoute from a StringTokenizer. The tokens must be: price(int), name


All Packages  Class Hierarchy  This Package  Previous  Next  Index