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; }
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; }
public TransportUnit(Destination origin, Destination destination, DateTime minPickupTime, DateTime maxDeliveryTime, CargoDefinition cargo) { this.Init(origin, destination, minPickupTime, maxDeliveryTime, cargo); }
public TransportUnit(Destination origin, Destination destination, DateTime minPickupTime, DateTime maxDeliveryTime, CargoDefinition cargo, Route selectedRoute) { this.Init(origin, destination, minPickupTime, maxDeliveryTime, cargo); this.selectedRoute = selectedRoute; }
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; }