Class RockShow
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.rocktour.domain.RockShow
-
- All Implemented Interfaces:
RockStandstill
public class RockShow extends AbstractPersistable implements RockStandstill
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description RockShow()
-
Method Summary
-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
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;
-
getArrivalLocation
public RockLocation getArrivalLocation()
- Specified by:
getArrivalLocationin interfaceRockStandstill- Returns:
- never null;
-
getDrivingTimeFromPreviousStandstill
public long getDrivingTimeFromPreviousStandstill()
-
getDrivingTimeToBusArrivalLocation
public long getDrivingTimeToBusArrivalLocation()
-
getDaysAfterBusDeparture
public long getDaysAfterBusDeparture()
-
toString
public String toString()
- Overrides:
toStringin classAbstractPersistable
-
getVenueName
public String getVenueName()
-
setVenueName
public void setVenueName(String venueName)
-
getLocation
public RockLocation getLocation()
-
setLocation
public void setLocation(RockLocation location)
-
getDurationInHalfDay
public int getDurationInHalfDay()
-
setDurationInHalfDay
public void setDurationInHalfDay(int durationInHalfDay)
-
getRevenueOpportunity
public int getRevenueOpportunity()
-
setRevenueOpportunity
public void setRevenueOpportunity(int revenueOpportunity)
-
isRequired
public boolean isRequired()
-
setRequired
public void setRequired(boolean required)
-
getAvailableDateSet
public NavigableSet<LocalDate> getAvailableDateSet()
-
setAvailableDateSet
public void setAvailableDateSet(NavigableSet<LocalDate> availableDateSet)
-
getPreviousStandstill
public RockStandstill getPreviousStandstill()
-
setPreviousStandstill
public void setPreviousStandstill(RockStandstill previousStandstill)
-
getNextShow
public RockShow getNextShow()
- Specified by:
getNextShowin interfaceRockStandstill
-
setNextShow
public void setNextShow(RockShow nextShow)
- Specified by:
setNextShowin interfaceRockStandstill
-
getBus
public RockBus getBus()
-
setBus
public void setBus(RockBus bus)
-
getDate
public LocalDate getDate()
-
setDate
public void setDate(LocalDate date)
-
getTimeOfDay
public RockTimeOfDay getTimeOfDay()
-
setTimeOfDay
public void setTimeOfDay(RockTimeOfDay timeOfDay)
-
getHosWeekStart
public RockStandstill getHosWeekStart()
- Specified by:
getHosWeekStartin interfaceRockStandstill- Returns:
- sometimes null;
-
setHosWeekStart
public void setHosWeekStart(RockStandstill hosWeekStart)
-
getHosWeekDrivingSecondsTotal
public Long getHosWeekDrivingSecondsTotal()
- Specified by:
getHosWeekDrivingSecondsTotalin interfaceRockStandstill- Returns:
- sometimes null;
-
setHosWeekDrivingSecondsTotal
public void setHosWeekDrivingSecondsTotal(Long hosWeekDrivingSecondsTotal)
-
-