Beispiel #1
0
 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)[]>
Beispiel #2
0
        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)[]>
Beispiel #3
0
 public Vessel(string name, LoadingSpecification loadingSpec)
 {
     Name         = name;
     _loadingSpec = loadingSpec;
 }