Lab3Help
Class BLineTable

java.lang.Object
  extended by 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

Field Summary
protected  int id
           
protected  BLineStop[] stops
           
 
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
 

Field Detail

id

protected int id

stops

protected BLineStop[] stops
Constructor Detail

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 line
id - the id of this line
Method Detail

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