OptaPlanner examples 6.1.0.Beta4

org.optaplanner.examples.vehiclerouting.domain
Class VehicleRoutingSolution

java.lang.Object
  extended by org.optaplanner.examples.common.domain.AbstractPersistable
      extended by org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution
All Implemented Interfaces:
Serializable, Comparable<AbstractPersistable>, org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore>
Direct Known Subclasses:
TimeWindowedVehicleRoutingSolution

public class VehicleRoutingSolution
extends AbstractPersistable
implements org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore>

See Also:
Serialized Form

Field Summary
protected  List<Customer> customerList
           
protected  List<Depot> depotList
           
protected  List<Location> locationList
           
protected  String name
           
protected  org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore score
           
protected  List<Vehicle> vehicleList
           
 
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
VehicleRoutingSolution()
           
 
Method Summary
 List<Customer> getCustomerList()
           
 List<Depot> getDepotList()
           
 List<Location> getLocationList()
           
 String getName()
           
 Collection<? extends Object> getProblemFacts()
           
 org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore getScore()
           
 List<Vehicle> getVehicleList()
           
 void setCustomerList(List<Customer> customerList)
           
 void setDepotList(List<Depot> depotList)
           
 void setLocationList(List<Location> locationList)
           
 void setName(String name)
           
 void setScore(org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore score)
           
 void setVehicleList(List<Vehicle> vehicleList)
           
 
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
compareTo, getId, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

locationList

protected List<Location> locationList

depotList

protected List<Depot> depotList

vehicleList

protected List<Vehicle> vehicleList

customerList

protected List<Customer> customerList

score

@XStreamConverter(value=org.optaplanner.persistence.xstream.XStreamScoreConverter.class,
                  types=org.optaplanner.core.impl.score.buildin.hardsoft.HardSoftScoreDefinition.class)
protected org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore score
Constructor Detail

VehicleRoutingSolution

public VehicleRoutingSolution()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getLocationList

public List<Location> getLocationList()

setLocationList

public void setLocationList(List<Location> locationList)

getDepotList

public List<Depot> getDepotList()

setDepotList

public void setDepotList(List<Depot> depotList)

getVehicleList

public List<Vehicle> getVehicleList()

setVehicleList

public void setVehicleList(List<Vehicle> vehicleList)

getCustomerList

public List<Customer> getCustomerList()

setCustomerList

public void setCustomerList(List<Customer> customerList)

getScore

public org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore getScore()
Specified by:
getScore in interface org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore>

setScore

public void setScore(org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore score)
Specified by:
setScore in interface org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore>

getProblemFacts

public Collection<? extends Object> getProblemFacts()
Specified by:
getProblemFacts in interface org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore>

OptaPlanner examples 6.1.0.Beta4

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