public class PlanningVehicleFactory extends Object
PlanningVehicle instances.| Modifier and Type | Method and Description |
|---|---|
static PlanningVehicle |
fromDomain(Vehicle domainVehicle)
Create planning vehicle from domain vehicle.
|
static PlanningVehicle |
testVehicle(long id)
Create a testing vehicle with zero capacity.
|
static PlanningVehicle |
testVehicle(long id,
int capacity)
Create a testing vehicle with capacity.
|
public static PlanningVehicle fromDomain(Vehicle domainVehicle)
domainVehicle - domain vehiclepublic static PlanningVehicle testVehicle(long id)
id - vehicle's IDpublic static PlanningVehicle testVehicle(long id, int capacity)
id - vehicle's IDCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.