Ejemplo n.º 1
0
            public RouterInfo(int StartTime, string Date, ObjFunction Func, RouterFactors routerFactor)
            {
                this.StartTime = StartTime;
                this.Date      = Date;
                this.Func      = Func;

                if (Func == ObjFunction.Weighted)
                {
                    this.routerFactors = new RouterFactors(routerFactor.WalkingFactor, routerFactor.TransportationFactor,
                                                           routerFactor.TransportationChangeFactor, routerFactor.CarpoolingFactor,
                                                           routerFactor.TrafficPropagationMaxDistance, routerFactor.Index,
                                                           routerFactor.SecondsForward);
                }
                //RouterFactors.ReadFactorsFromConfig();

                ListPTused = new List <string>();
            }
Ejemplo n.º 2
0
 public Router(Node Source, Node Target, string Date, double StartTime, TravelMode Modes, ObjFunction Func, int index = 0, RouterFactors Param = null)
 {
     this.Source    = Source;
     this.Target    = Target;
     this.Date      = Date;
     this.StartTime = StartTime;
     this.ObjFunc   = Func;
     this.Modes     = Modes;
     RPMessage      = new Message {
     };
     RI             = new RouterInfo((int)StartTime, Date, ObjFunc, Param);
     if (RI.routerFactors != null)
     {
         this.RI.routerFactors.Index = index;
     }
 }