Exemple #1
0
 public Leg(string uniqueIdentifier,ShippingAgent carrier, CarrierType carrierType,Destination origin,Destination destination ,DateTime departureTime, DateTime arrivalTime, double cost, double totalCapacity)
 {
     this.uniqueIdentifier = uniqueIdentifier;
     this.carrier = carrier;
     this.carrierType = carrierType;
     this.origin = origin;
     this.destination = destination;
     this.departureTime = departureTime;
     this.arrivalTime = arrivalTime;
     this.cost = cost;
     this.totalCapacity = totalCapacity;
     this.UsedCapacity = 0;
 }
Exemple #2
0
        public TransportUnit(Destination origin, Destination destination, DateTime minPickupTime, DateTime maxDeliveryTime, CargoDefinition cargo, IList<Route> proposedRoutes)
        {
            this.Init(origin, destination, minPickupTime, maxDeliveryTime, cargo);

            this.proposedRoutes = proposedRoutes;
        }
Exemple #3
0
 public TransportUnit(Destination origin, Destination destination, DateTime minPickupTime, DateTime maxDeliveryTime, CargoDefinition cargo)
 {
     this.Init(origin, destination, minPickupTime, maxDeliveryTime, cargo);
 }
Exemple #4
0
 public TransportUnit(Destination origin, Destination destination, DateTime minPickupTime, DateTime maxDeliveryTime, CargoDefinition cargo, Route selectedRoute)
 {
     this.Init(origin, destination, minPickupTime, maxDeliveryTime, cargo);
     this.selectedRoute = selectedRoute;
 }
Exemple #5
0
 private void Init(Destination origin, Destination destination, DateTime minPickupTime, DateTime maxDeliveryTime, CargoDefinition cargo)
 {
     this.origin = origin;
     this.destination = destination;
     this.minPickupTime = minPickupTime;
     this.maxDeliveryTime = maxDeliveryTime;
     this.cargo = cargo;
 }