public class Shuttle extends Bus
Modifier and Type | Field and Description |
---|---|
protected StopOrHub |
destination |
protected int |
setupCost |
capacity, departureLocation, mileageCost, name, nextStop
id
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, toString
compareTo, getId, setId
protected int setupCost
protected StopOrHub destination
public int getSetupCost()
getSetupCost
in class Bus
public void setSetupCost(int setupCost)
public StopOrHub getDestination()
getDestination
in class Bus
public void setDestination(StopOrHub destination)
public int getDistanceFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
getDistanceFromTo
in class Bus
public int getDurationFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
getDurationFromTo
in class Bus
public Bus getDestinationBus()
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.