public class BLineStop extends Object
Constructor and Description |
---|
BLineStop(String stop,
int time)
Creates a new BLineStop with the given name and the given
transition time.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of this stop.
|
int |
getTime()
Returns the time needed from the stop before to this stop.
|
public BLineStop(String stop, int time)
stop
- The name of the stop.time
- The transition time from the previous stop to this
one. (Must be non-negative. 0 for the first stop.)public int getTime()
public String getName()