return(UseLogBuffer(
            lc,
            configs.Select(x => new SourceConfig(x.SourceToMatchOn, x.MinLevelAlways, x.MinLevelOnDetailed))
Example #2
0
 public CLoco(lc l) 
     : base(l, true)
 {
     this._blockid = l.blockid;
     this._vitesse = l.V;
     this._direction = l.dir;
     this._vitesseMoy = l.V_mid;
     this._blockEnterSide = l.blockenterside;
     this._masse = l.mass;
     this._nrcars = l.nrcars;
     this._number = l.number;
     this._sw = l.sw;
     this._trainLen = l.trainlen;
     this._trainWeight = l.trainweight;
 }
Example #3
0
        public CLoco(lc l)
            : base(l, true)
        {
            this._blockid = l.blockid;
            this._vitesse = l.V;
            this._direction = l.dir;
            this._vitesseMoy = l.V_mid;
            this._blockEnterSide = l.blockenterside;
            this._masse = l.mass;
            this._nrcars = l.nrcars;
            this._number = l.number;
            //this._sw = l.sw;

            this._ZOccupees = new List<CZoneDetection>();
            if (this._blockid != "")
                this._ZOccupees.Add(CLocalisation.trouverZone(this._blockid));

            this._ZoneAmont = this._blockid;
            CLocalisation.determinerZA(this);

            distanceZonePrec = 0;
            distanceZoneSuiv = 0;
        }