OptaPlanner distribution 6.0.0.CR3

org.optaplanner.examples.vehiclerouting.domain
Class VrpVehicle

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

public class VrpVehicle
extends AbstractPersistable
implements VrpStandstill

See Also:
Serialized Form

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

nextCustomer

protected VrpCustomer nextCustomer
Constructor Detail

VrpVehicle

public VrpVehicle()
Method Detail

getCapacity

public int getCapacity()

setCapacity

public void setCapacity(int capacity)

getDepot

public VrpDepot getDepot()

setDepot

public void setDepot(VrpDepot depot)

getNextCustomer

public VrpCustomer getNextCustomer()
Specified by:
getNextCustomer in interface VrpStandstill
Returns:
sometimes null

setNextCustomer

public void setNextCustomer(VrpCustomer nextCustomer)
Specified by:
setNextCustomer in interface VrpStandstill

getVehicle

public VrpVehicle getVehicle()
Specified by:
getVehicle in interface VrpStandstill
Returns:
sometimes null

getLocation

public VrpLocation getLocation()
Specified by:
getLocation in interface VrpStandstill
Returns:
never null

toString

public String toString()
Overrides:
toString in class AbstractPersistable

OptaPlanner distribution 6.0.0.CR3

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