public class SolutionFactory extends Object
VehicleRoutingSolution instances.| Modifier and Type | Method and Description |
|---|---|
static org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution |
emptySolution()
Create an empty solution.
|
(package private) static org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution |
solutionFromCustomers(List<org.optaplanner.examples.vehiclerouting.domain.Vehicle> vehicles,
org.optaplanner.examples.vehiclerouting.domain.Depot depot,
List<org.optaplanner.examples.vehiclerouting.domain.Customer> customers)
Create a new solution from given vehicles, depot and customers.
|
(package private) static org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution |
solutionFromLocations(List<org.optaplanner.examples.vehiclerouting.domain.Vehicle> vehicles,
org.optaplanner.examples.vehiclerouting.domain.Depot depot,
List<? extends org.optaplanner.examples.vehiclerouting.domain.location.Location> customerLocations)
Create a new solution from given vehicles, depot and customer locations.
|
public static org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution emptySolution()
static org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution solutionFromLocations(List<org.optaplanner.examples.vehiclerouting.domain.Vehicle> vehicles, org.optaplanner.examples.vehiclerouting.domain.Depot depot, List<? extends org.optaplanner.examples.vehiclerouting.domain.location.Location> customerLocations)
The returned solution's vehicles and locations are new collections so modifying the solution won't affect the collections given as arguments.
Elements of the argument collections are NOT cloned.
vehicles - vehiclesdepot - depot (may be null)customerLocations - customer locationsstatic org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution solutionFromCustomers(List<org.optaplanner.examples.vehiclerouting.domain.Vehicle> vehicles, org.optaplanner.examples.vehiclerouting.domain.Depot depot, List<org.optaplanner.examples.vehiclerouting.domain.Customer> customers)
The returned solution's vehicles and locations are new collections so modifying the solution won't affect the collections given as arguments.
Elements of the argument collections are NOT cloned.
vehicles - vehiclesdepot - depotcustomers - customersCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.