public class FiniteFleetManagerFactory extends Object implements VehicleFleetManagerFactory
| Constructor and Description |
|---|
FiniteFleetManagerFactory(Collection<Vehicle> vehicles)
Constucts the factory.
|
| Modifier and Type | Method and Description |
|---|---|
VehicleFleetManager |
createFleetManager()
Creates the finite fleetmanager.
|
public FiniteFleetManagerFactory(Collection<Vehicle> vehicles)
vehicles - vehicles to be added to the fleetManagerpublic VehicleFleetManager createFleetManager()
createFleetManager in interface VehicleFleetManagerFactoryIllegalStateException - if vehicles == null or vehicles.isEmpty()Copyright © 2013–2024. All rights reserved.