org.optaplanner.examples.vehiclerouting.domain.timewindowed
Class TimeWindowedCustomer
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.vehiclerouting.domain.Customer
org.optaplanner.examples.vehiclerouting.domain.timewindowed.TimeWindowedCustomer
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>, Standstill
public class TimeWindowedCustomer
- extends Customer
- See Also:
- Serialized Form
Methods inherited from class org.optaplanner.examples.vehiclerouting.domain.Customer |
getDemand, getDistanceFrom, getDistanceFromPreviousStandstill, getDistanceTo, getLocation, getPreviousStandstill, getVehicle, setDemand, setLocation, setNextCustomer, setPreviousStandstill, setVehicle, toString |
TimeWindowedCustomer
public TimeWindowedCustomer()
getReadyTime
public int getReadyTime()
- Returns:
- a positive number, the time multiplied by 1000 to avoid floating point arithmetic rounding errors
setReadyTime
public void setReadyTime(int readyTime)
getDueTime
public int getDueTime()
- Returns:
- a positive number, the time multiplied by 1000 to avoid floating point arithmetic rounding errors
setDueTime
public void setDueTime(int dueTime)
getServiceDuration
public int getServiceDuration()
- Returns:
- a positive number, the time multiplied by 1000 to avoid floating point arithmetic rounding errors
setServiceDuration
public void setServiceDuration(int serviceDuration)
getArrivalTime
public Integer getArrivalTime()
- Returns:
- a positive number, the time multiplied by 1000 to avoid floating point arithmetic rounding errors
setArrivalTime
public void setArrivalTime(Integer arrivalTime)
getDepartureTime
public Integer getDepartureTime()
- Returns:
- a positive number, the time multiplied by 1000 to avoid floating point arithmetic rounding errors
isArrivalBeforeReadyTime
public boolean isArrivalBeforeReadyTime()
isArrivalAfterDueTime
public boolean isArrivalAfterDueTime()
getNextCustomer
public TimeWindowedCustomer getNextCustomer()
- Specified by:
getNextCustomer
in interface Standstill
- Overrides:
getNextCustomer
in class Customer
- Returns:
- sometimes null
getTimeWindowGapTo
public int getTimeWindowGapTo(TimeWindowedCustomer other)
- Returns:
- a positive number, the time multiplied by 1000 to avoid floating point arithmetic rounding errors
Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.