Exemplo n.º 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;
 }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public TransportUnit(Destination origin, Destination destination, DateTime minPickupTime, DateTime maxDeliveryTime, CargoDefinition cargo)
 {
     this.Init(origin, destination, minPickupTime, maxDeliveryTime, cargo);
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }