Class TimeWindowedDepot
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.vehiclerouting.domain.Depot
-
- org.optaplanner.examples.vehiclerouting.domain.timewindowed.TimeWindowedDepot
-
public class TimeWindowedDepot extends Depot
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description TimeWindowedDepot()TimeWindowedDepot(long id, Location location, long readyTime, long dueTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDueTime()longgetReadyTime()voidsetDueTime(long dueTime)voidsetReadyTime(long readyTime)-
Methods inherited from class org.optaplanner.examples.vehiclerouting.domain.Depot
getDistanceTo, getLocation, setLocation, toString
-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
-
-
-
Constructor Detail
-
TimeWindowedDepot
public TimeWindowedDepot()
-
TimeWindowedDepot
public TimeWindowedDepot(long id, Location location, long readyTime, long dueTime)
-
-
Method Detail
-
getReadyTime
public long getReadyTime()
- Returns:
- a positive number, the time multiplied by 1000 to avoid floating point arithmetic rounding errors
-
setReadyTime
public void setReadyTime(long readyTime)
-
getDueTime
public long getDueTime()
- Returns:
- a positive number, the time multiplied by 1000 to avoid floating point arithmetic rounding errors
-
setDueTime
public void setDueTime(long dueTime)
-
-