public bool addTransport(Transport transport)
 {
     if (transports.Contains(transport))
         return false;
     transports.Add(transport);
     return true;
 }
        public Warehouse(int volumeCapacity, int[] zipCodesServed, Transport[] transports, DeliveryVehicle[] deliveryVehicles)
        {
            VolumeCapacity = volumeCapacity;

            this.zipCodesServed = new List<int>();
            this.transports = new List<Transport>();
            this.deliveryVehicles = new List<DeliveryVehicle>();

            this.zipCodesServed.AddRange(zipCodesServed);
            this.transports.AddRange(transports);
            this.deliveryVehicles.AddRange(deliveryVehicles);
        }
 public bool addTransport(string id, int type, int volumeCapacity, int weightCapacity, bool temperatureControlled)
 {
     Transport d = new Transport(id, (type == 0) ? Transport.TRANSPORT_TYPES.ground : Transport.TRANSPORT_TYPES.air, volumeCapacity, weightCapacity, temperatureControlled);
     if (moveables.Contains(d))
         return false;
     moveables.Add(d);
     return true;
 }
 public void removeTransport(Transport transport)
 {
     transports.Remove(transport);
 }