OptaPlanner distribution 6.0.0-SNAPSHOT

org.optaplanner.examples.vehiclerouting.domain
Class Vehicle

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

public class Vehicle
extends AbstractPersistable
implements Standstill

See Also:
Serialized Form

Field Summary
protected  int capacity
           
protected  Depot depot
           
protected  Customer nextCustomer
           
 
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
Vehicle()
           
 
Method Summary
 int getCapacity()
           
 Depot getDepot()
           
 Location getLocation()
           
 Customer getNextCustomer()
           
 Vehicle getVehicle()
           
 void setCapacity(int capacity)
           
 void setDepot(Depot depot)
           
 void setNextCustomer(Customer nextCustomer)
           
 String 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
 

Field Detail

capacity

protected int capacity

depot

protected Depot depot

nextCustomer

protected Customer nextCustomer
Constructor Detail

Vehicle

public Vehicle()
Method Detail

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

OptaPlanner distribution 6.0.0-SNAPSHOT

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