org.optaplanner.examples.vehiclerouting.domain
Class Vehicle
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.vehiclerouting.domain.Vehicle
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>, Standstill
public class Vehicle
- extends AbstractPersistable
- implements Standstill
- See Also:
- Serialized Form
capacity
protected int capacity
depot
protected Depot depot
nextCustomer
protected Customer nextCustomer
Vehicle
public Vehicle()
getCapacity
public int getCapacity()
setCapacity
public void setCapacity(int capacity)
getDepot
public Depot getDepot()
setDepot
public void setDepot(Depot depot)
getNextCustomer
public Customer getNextCustomer()
- Specified by:
getNextCustomer
in interface Standstill
- Returns:
- sometimes null
setNextCustomer
public void setNextCustomer(Customer nextCustomer)
- Specified by:
setNextCustomer
in interface Standstill
getVehicle
public Vehicle getVehicle()
- Specified by:
getVehicle
in interface Standstill
- Returns:
- sometimes null
getLocation
public Location getLocation()
- Specified by:
getLocation
in interface Standstill
- Returns:
- never null
toString
public String toString()
- Overrides:
toString
in class AbstractPersistable
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.