public class EstablishmentLoader
extends java.lang.Object
The following processes are also performed :
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,Establishment> |
loadEstablishments(java.io.File establishmentsFile,
java.io.File fleetProfiles,
CopertParser parser,
java.util.Random random)
Load establishments and build rounds and fleets from the specified inputs.
|
public static java.util.Map<java.lang.String,Establishment> loadEstablishments(java.io.File establishmentsFile, java.io.File fleetProfiles, CopertParser parser, java.util.Random random) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.IOException
establishmentsFile - an establishment json filefleetProfiles - a json fleet profileparser - loaded copert parserrandom - random instance used by the DeliveryVehicleFactorycom.fasterxml.jackson.core.JsonParseException - json exceptioncom.fasterxml.jackson.databind.JsonMappingException - json exceptionjava.io.IOException - file reading exception