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