Exemple #1
0
        public FerryTerminal(FerryTerminalLocation ferryTerminalLocation, List <Ferry> ferryList, List <ILocation> locationList)
        {
            _ferryTerminalLocation = ferryTerminalLocation;

            _ferryList = ferryList;

            _locationList = locationList;
        }
Exemple #2
0
        public FerryTerminal(FerryTerminalLocation ferryTerminalLocation, IDictionary <VehicleType, float> vehicleTicketPriceDictionary)
        {
            _ferryTerminalLocation = ferryTerminalLocation;

            _vehicleTicketPriceDictionary = vehicleTicketPriceDictionary;

            _terminalEmployeeList.Enqueue(new TerminalEmployee(0, 0.1f));
            _terminalEmployeeList.Enqueue(new TerminalEmployee(1, 0.11f));

            _ferryList.Add(new Ferry(FerryType.Small, 8, new List <VehicleType> {
                VehicleType.Car, VehicleType.Van
            }));
            _ferryList.Add(new Ferry(FerryType.Large, 6, new List <VehicleType> {
                VehicleType.Bus, VehicleType.Truck
            }));
            _ferryList.Add(new Ferry(FerryType.Eco, 10, new List <VehicleType> {
                VehicleType.Electric, VehicleType.Hybrid
            }));
        }