org.optaplanner.examples.vehiclerouting.domain
Class VrpSchedule
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.vehiclerouting.domain.VrpSchedule
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>, org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore>
- Direct Known Subclasses:
- VrpTimeWindowedSchedule
public class VrpSchedule
- extends AbstractPersistable
- implements org.optaplanner.core.impl.solution.Solution<org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore>
- See Also:
- Serialized Form
name
protected String name
locationList
protected List<VrpLocation> locationList
depotList
protected List<VrpDepot> depotList
vehicleList
protected List<VrpVehicle> vehicleList
customerList
protected List<VrpCustomer> 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
VrpSchedule
public VrpSchedule()
getName
public String getName()
setName
public void setName(String name)
getLocationList
public List<VrpLocation> getLocationList()
setLocationList
public void setLocationList(List<VrpLocation> locationList)
getDepotList
public List<VrpDepot> getDepotList()
setDepotList
public void setDepotList(List<VrpDepot> depotList)
getVehicleList
public List<VrpVehicle> getVehicleList()
setVehicleList
public void setVehicleList(List<VrpVehicle> vehicleList)
getCustomerList
public List<VrpCustomer> getCustomerList()
setCustomerList
public void setCustomerList(List<VrpCustomer> 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>
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.