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
-
MutableRoute(String, int, int)
- constructs an object with the given name, and price, and no
segments.
Method Index
-
parse(StringTokenizer, int)
- parses a MutableRoute from a
StringTokenizer
.
Constructors
MutableRoute
public MutableRoute(String name,
int index,
int price)
- constructs an object with the given name, and price, and no
segments.
Methods
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