예제 #1
0
파일: Leg.cs 프로젝트: frontwalker/Necl2
 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;
 }
예제 #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;
        }
예제 #3
0
 public TransportUnit(Destination origin, Destination destination, DateTime minPickupTime, DateTime maxDeliveryTime, CargoDefinition cargo)
 {
     this.Init(origin, destination, minPickupTime, maxDeliveryTime, cargo);
 }
예제 #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;
 }
예제 #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;
 }