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 BusHub
destination
protected int
stopLimit
-
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 StopOrHub
getDestination()
int
getDistanceFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
int
getDistanceToDestinationCost()
int
getDurationFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
Integer
getPassengerQuantityTotal()
int
getSetupCost()
int
getStopLimit()
void
setDestination(BusHub destination)
void
setStopLimit(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:
getPassengerQuantityTotal
in classBus
-
getSetupCost
public int getSetupCost()
- Specified by:
getSetupCost
in classBus
-
getDistanceFromTo
public int getDistanceFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
- Specified by:
getDistanceFromTo
in classBus
-
getDurationFromTo
public int getDurationFromTo(RoadLocation sourceLocation, RoadLocation targetLocation)
- Specified by:
getDurationFromTo
in classBus
-
getDestination
public StopOrHub getDestination()
- Specified by:
getDestination
in classBus
-
getDistanceToDestinationCost
public int getDistanceToDestinationCost()
-
-