Beispiel #1
0
            public ArcCostDimension(RoutingContext context, TScope scope)
                : base(context, scope.DimensionCoefficient)
            {
                this.Scope = scope;

                if (this.Coefficient > 0)
                {
                    var evaluatorIndex = this.RegisterTransitEvaluationCallback(this.OnEvaluateTransit);

                    this.SetArcCostEvaluators(evaluatorIndex);
                }
            }
Beispiel #2
0
            public NodeDemandDimension(RoutingContext context, TScope scope)
                : base(context, scope.DimensionCoefficient)
            {
                this.Scope = scope;

                if (this.Coefficient > 0)
                {
                    var evaluatorIndex = this.RegisterTransitEvaluationCallback(this.OnEvaluateTransit);

                    this.AddDimension(evaluatorIndex, this.Scope.VehicleCap);

                    // ?
                    //this.MutableDimension.SetGlobalSpanCostCoefficient(this.Coefficient);
                }
            }
 public PayloadPipe(TScope payload, IPipe <SendContext <TMessage> > pipe = default)
 {
     _payload = payload;
     _pipe    = pipe;
 }