public class BStop extends Object
Constructor and Description |
---|
BStop(String name,
int x,
int y)
Creates a new bus stop with the given name at the given coordinates.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the bus stop
|
int |
getX()
Returns the x coordinate of the bus stop
|
int |
getY()
Returns the y coordinate of the bus stop
|
String |
toString()
Returns the name of the bus stop
|
public BStop(String name, int x, int y)
name
- the name of the bus stopx
- the x coordinate of the bus stop (between 0 and
1000, inclusive)y
- the y coordinate of the bus stop (between 0 and
1000, inclusive)public int getX()
public int getY()
public String getName()