Class Coach
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.coachshuttlegathering.domain.Bus
-
- org.optaplanner.examples.coachshuttlegathering.domain.Coach
-
-
Field Summary
Fields Modifier and Type Field Description protected BusHubdestinationprotected intstopLimit-
Fields inherited from class org.optaplanner.examples.coachshuttlegathering.domain.Bus
capacity, departureLocation, mileageCost, name, nextStop
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description Coach()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StopOrHubgetDestination()intgetDistanceFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)intgetDistanceToDestinationCost()intgetDurationFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)IntegergetPassengerQuantityTotal()intgetSetupCost()intgetStopLimit()voidsetDestination(BusHub destination)voidsetStopLimit(int stopLimit)-
Methods inherited from class org.optaplanner.examples.coachshuttlegathering.domain.Bus
getBus, getCapacity, getDepartureLocation, getLocation, getMileageCost, getName, getNextStop, setCapacity, setDepartureLocation, setMileageCost, setName, setNextStop, setPassengerQuantityTotal, toString
-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
-
-
-
Field Detail
-
stopLimit
protected int stopLimit
-
destination
protected BusHub destination
-
-
Method Detail
-
getStopLimit
public int getStopLimit()
-
setStopLimit
public void setStopLimit(int stopLimit)
-
setDestination
public void setDestination(BusHub destination)
-
getPassengerQuantityTotal
public Integer getPassengerQuantityTotal()
- Overrides:
getPassengerQuantityTotalin classBus
-
getSetupCost
public int getSetupCost()
- Specified by:
getSetupCostin classBus
-
getDistanceFromTo
public int getDistanceFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
- Specified by:
getDistanceFromToin classBus
-
getDurationFromTo
public int getDurationFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
- Specified by:
getDurationFromToin classBus
-
getDestination
public StopOrHub getDestination()
- Specified by:
getDestinationin classBus
-
getDistanceToDestinationCost
public int getDistanceToDestinationCost()
-
-