java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.vehiclerouting.domain.Vehicle

public class Vehicle extends AbstractPersistable
  • Field Details

    • capacity

      protected int capacity
    • depot

      protected Depot depot
    • customers

      protected List<Customer> customers
  • Constructor Details

    • Vehicle

      public Vehicle()
    • Vehicle

      public Vehicle(long id, int capacity, Depot depot)
  • Method Details

    • getCapacity

      public int getCapacity()
    • setCapacity

      public void setCapacity(int capacity)
    • getDepot

      public Depot getDepot()
    • setDepot

      public void setDepot(Depot depot)
    • getCustomers

      public List<Customer> getCustomers()
    • setCustomers

      public void setCustomers(List<Customer> customers)
    • getLocation

      public Location getLocation()
    • toString

      public String toString()
      Overrides:
      toString in class AbstractPersistable