Class RockBus
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.rocktour.domain.RockBus
-
- All Implemented Interfaces:
RockStandstill
public class RockBus extends AbstractPersistable implements RockStandstill
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description RockBus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RockLocationgetArrivalLocation()LocalDategetDepartureDate()RockLocationgetDepartureLocation()RockTimeOfDaygetDepartureTimeOfDay()LocalDategetEndDate()RockLocationgetEndLocation()LonggetHosWeekDrivingSecondsTotal()RockStandstillgetHosWeekStart()RockShowgetNextShow()LocalDategetStartDate()RockLocationgetStartLocation()voidsetEndDate(LocalDate endDate)voidsetEndLocation(RockLocation endLocation)voidsetNextShow(RockShow nextShow)voidsetStartDate(LocalDate startDate)voidsetStartLocation(RockLocation startLocation)-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.optaplanner.examples.rocktour.domain.RockStandstill
getDrivingTimeTo
-
-
-
-
Method Detail
-
getDepartureLocation
public RockLocation getDepartureLocation()
- Specified by:
getDepartureLocationin interfaceRockStandstill- Returns:
- never null;
-
getDepartureDate
public LocalDate getDepartureDate()
- Specified by:
getDepartureDatein interfaceRockStandstill- Returns:
- sometimes null;
-
getDepartureTimeOfDay
public RockTimeOfDay getDepartureTimeOfDay()
- Specified by:
getDepartureTimeOfDayin interfaceRockStandstill- Returns:
- sometimes null;
-
getHosWeekStart
public RockStandstill getHosWeekStart()
- Specified by:
getHosWeekStartin interfaceRockStandstill- Returns:
- sometimes null;
-
getHosWeekDrivingSecondsTotal
public Long getHosWeekDrivingSecondsTotal()
- Specified by:
getHosWeekDrivingSecondsTotalin interfaceRockStandstill- Returns:
- sometimes null;
-
getArrivalLocation
public RockLocation getArrivalLocation()
- Specified by:
getArrivalLocationin interfaceRockStandstill- Returns:
- never null;
-
getStartLocation
public RockLocation getStartLocation()
-
setStartLocation
public void setStartLocation(RockLocation startLocation)
-
getStartDate
public LocalDate getStartDate()
-
setStartDate
public void setStartDate(LocalDate startDate)
-
getEndLocation
public RockLocation getEndLocation()
-
setEndLocation
public void setEndLocation(RockLocation endLocation)
-
getEndDate
public LocalDate getEndDate()
-
setEndDate
public void setEndDate(LocalDate endDate)
-
getNextShow
public RockShow getNextShow()
- Specified by:
getNextShowin interfaceRockStandstill
-
setNextShow
public void setNextShow(RockShow nextShow)
- Specified by:
setNextShowin interfaceRockStandstill
-
-