Lab3Help
Class BLineTable
java.lang.Object
Lab3Help.BLineTable
public class BLineTable
- extends Object
The BLineTable class represents line information for the line with the
given line id. Each table contains an array of BLineStop.
- See Also:
BLineStop
Constructor Summary |
BLineTable(BLineStop[] stops,
int id)
Creates a new BLineTable with the given id and the given stop
information. |
Method Summary |
int |
getLineNo()
Returns the line id of this line table |
BLineStop[] |
getStops()
Returns the stops information this line table |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected int id
stops
protected BLineStop[] stops
BLineTable
public BLineTable(BLineStop[] stops,
int id)
- Creates a new BLineTable with the given id and the given stop
information.
- Parameters:
stops
- the stops of this lineid
- the id of this line
getLineNo
public int getLineNo()
- Returns the line id of this line table
- Returns:
- the line id of this line table
getStops
public BLineStop[] getStops()
- Returns the stops information this line table
- Returns:
- the stop information of this line table