static void Main(string[] args) { var truckSpec = new LoadingSpecification(VesselKind.Truck, capacity: 1, loadUnloadDuration: 0); var shipSpec = new LoadingSpecification(VesselKind.Ship, 4, 1); var config = new TransportationConfig { Routes = new Dictionary <string, (string start, string finish, int distance)[]>
public static TransportationConfig MakeDefault() { var truckSpec = new LoadingSpecification(VesselKind.Truck, capacity: 1, loadUnloadDuration: 0); var shipSpec = new LoadingSpecification(VesselKind.Ship, 1, 0); return(new TransportationConfig { Routes = new Dictionary <string, (string start, string finish, int distance)[]>
public Vessel(string name, LoadingSpecification loadingSpec) { Name = name; _loadingSpec = loadingSpec; }