java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.vehiclerouting.domain.Customer
All Implemented Interfaces:
LocationAware
Direct Known Subclasses:
TimeWindowedCustomer

public class Customer extends AbstractPersistable implements LocationAware
  • Field Details

    • location

      protected Location location
    • demand

      protected int demand
    • vehicle

      protected Vehicle vehicle
    • previousCustomer

      protected Customer previousCustomer
    • nextCustomer

      protected Customer nextCustomer
  • Constructor Details

    • Customer

      public Customer()
    • Customer

      public Customer(long id, Location location, int demand)
  • Method Details

    • getLocation

      public Location getLocation()
      Specified by:
      getLocation in interface LocationAware
    • setLocation

      public void setLocation(Location location)
    • getDemand

      public int getDemand()
    • setDemand

      public void setDemand(int demand)
    • getVehicle

      public Vehicle getVehicle()
    • setVehicle

      public void setVehicle(Vehicle vehicle)
    • getPreviousCustomer

      public Customer getPreviousCustomer()
    • setPreviousCustomer

      public void setPreviousCustomer(Customer previousCustomer)
    • getNextCustomer

      public Customer getNextCustomer()
    • setNextCustomer

      public void setNextCustomer(Customer nextCustomer)
    • getDistanceFromPreviousStandstill

      public long getDistanceFromPreviousStandstill()
    • getDistanceToDepot

      public long getDistanceToDepot()
    • toString

      public String toString()
      Overrides:
      toString in class AbstractPersistable