public class Coach extends Bus
| Modifier and Type | Field and Description |
|---|---|
protected BusHub |
destination |
protected int |
stopLimit |
capacity, departureLocation, mileageCost, name, nextStopid| Constructor and Description |
|---|
Coach() |
| Modifier and Type | Method and Description |
|---|---|
StopOrHub |
getDestination() |
int |
getDistanceFromTo(RoadLocation sourceLocation,
RoadLocation targetLocation) |
int |
getDistanceToDestinationCost() |
int |
getDurationFromTo(RoadLocation sourceLocation,
RoadLocation targetLocation) |
int |
getSetupCost() |
int |
getStopLimit() |
void |
setDestination(BusHub destination) |
void |
setStopLimit(int stopLimit) |
getBus, getCapacity, getDepartureLocation, getLocation, getMileageCost, getName, getNextStop, setCapacity, setDepartureLocation, setMileageCost, setName, setNextStop, toStringcompareTo, getId, setIdprotected int stopLimit
protected BusHub destination
public int getStopLimit()
public void setStopLimit(int stopLimit)
public void setDestination(BusHub destination)
public int getSetupCost()
getSetupCost in class Buspublic int getDistanceFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
getDistanceFromTo in class Buspublic int getDurationFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
getDurationFromTo in class Buspublic StopOrHub getDestination()
getDestination in class Buspublic int getDistanceToDestinationCost()
Copyright © 2006–2015 JBoss by Red Hat. All rights reserved.