OptaPlanner distribution 6.0.0.CR4-Pre1

org.optaplanner.examples.vehiclerouting.domain.timewindowed
Class VrpTimeWindowedCustomer

java.lang.Object
  extended by org.optaplanner.examples.common.domain.AbstractPersistable
      extended by org.optaplanner.examples.vehiclerouting.domain.VrpCustomer
          extended by org.optaplanner.examples.vehiclerouting.domain.timewindowed.VrpTimeWindowedCustomer
All Implemented Interfaces:
Serializable, Comparable<AbstractPersistable>, VrpStandstill

public class VrpTimeWindowedCustomer
extends VrpCustomer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.optaplanner.examples.vehiclerouting.domain.VrpCustomer
demand, location, nextCustomer, previousStandstill, vehicle
 
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
VrpTimeWindowedCustomer()
           
 
Method Summary
 Integer getArrivalTime()
           
 Integer getDepartureTime()
           
 int getDueTime()
           
 VrpTimeWindowedCustomer getNextCustomer()
           
 int getReadyTime()
           
 int getServiceDuration()
           
 String getTimeWindowLabel()
           
 boolean isArrivalAfterDueTime()
           
 boolean isArrivalBeforeReadyTime()
           
 void setArrivalTime(Integer arrivalTime)
           
 void setDueTime(int dueTime)
           
 void setReadyTime(int readyTime)
           
 void setServiceDuration(int serviceDuration)
           
 
Methods inherited from class org.optaplanner.examples.vehiclerouting.domain.VrpCustomer
getDemand, getDistanceTo, getDistanceToPreviousStandstill, getLocation, getPreviousStandstill, getVehicle, setDemand, setLocation, setNextCustomer, setPreviousStandstill, setVehicle, solutionEquals, solutionHashCode, toString
 
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
compareTo, getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VrpTimeWindowedCustomer

public VrpTimeWindowedCustomer()
Method Detail

getReadyTime

public int getReadyTime()

setReadyTime

public void setReadyTime(int readyTime)

getDueTime

public int getDueTime()

setDueTime

public void setDueTime(int dueTime)

getServiceDuration

public int getServiceDuration()

setServiceDuration

public void setServiceDuration(int serviceDuration)

getArrivalTime

public Integer getArrivalTime()

setArrivalTime

public void setArrivalTime(Integer arrivalTime)

getTimeWindowLabel

public String getTimeWindowLabel()

getDepartureTime

public Integer getDepartureTime()

isArrivalBeforeReadyTime

public boolean isArrivalBeforeReadyTime()

isArrivalAfterDueTime

public boolean isArrivalAfterDueTime()

getNextCustomer

public VrpTimeWindowedCustomer getNextCustomer()
Specified by:
getNextCustomer in interface VrpStandstill
Overrides:
getNextCustomer in class VrpCustomer
Returns:
sometimes null

OptaPlanner distribution 6.0.0.CR4-Pre1

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.