OptaPlanner distribution 6.1.0.Final

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

java.lang.Object
  extended by org.optaplanner.examples.common.domain.AbstractPersistable
      extended by org.optaplanner.examples.vehiclerouting.domain.Customer
          extended by org.optaplanner.examples.vehiclerouting.domain.timewindowed.TimeWindowedCustomer
All Implemented Interfaces:
Serializable, Comparable<AbstractPersistable>, Standstill

public class TimeWindowedCustomer
extends Customer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.optaplanner.examples.vehiclerouting.domain.Customer
demand, location, nextCustomer, previousStandstill, vehicle
 
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
TimeWindowedCustomer()
           
 
Method Summary
 Integer getArrivalTime()
           
 Integer getDepartureTime()
           
 int getDueTime()
           
 TimeWindowedCustomer getNextCustomer()
           
 int getReadyTime()
           
 int getServiceDuration()
           
 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.Customer
getDemand, getDistanceTo, getDistanceToPreviousStandstill, getLocation, getPreviousStandstill, getVehicle, setDemand, setLocation, setNextCustomer, setPreviousStandstill, setVehicle, 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

TimeWindowedCustomer

public TimeWindowedCustomer()
Method Detail

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

OptaPlanner distribution 6.1.0.Final

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