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