Beispiel #1
0
 /// <summary>
 /// Internal Constructor.
 /// </summary>
 /// <param name="blr">The BaselineRegion</param>
 /// <param name="appliedAssembly">the AeccAppliedAssembly form Civil 3D.</param>
 /// <param name="corridor">the AeccCorridor from Civil 3D.</param>
 internal AppliedAssembly(BaselineRegion blr, AeccAppliedAssembly appliedAssembly, AeccCorridor corridor)
 {
     this._region               = blr;
     this._assembly             = appliedAssembly;
     this._appliedSubassemblies = appliedAssembly.AppliedSubassemblies;
     this._corridor             = corridor;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="Corridor"/> class.
        /// </summary>
        /// <param name="corridor">The corridor.</param>
        /// <param name="doc">The document.</param>
        internal Corridor(AeccCorridor corridor, AeccRoadwayDocument doc)
        {
            this._corridor = corridor;
            this._document = doc;
            IList <Baseline> bls = new List <Baseline>();

            int index = 0;

            foreach (AeccBaseline b in corridor.Baselines)
            {
                bls.Add(new Baseline(b, index));
                ++index;
            }

            this._baselines = bls;
        }
Beispiel #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Subassembly"/> class.
        /// </summary>
        /// <param name="subassembly">The subassembly.</param>
        /// <param name="corridor">The corridor.</param>
        internal Subassembly(AeccSubassembly subassembly, AeccCorridor corridor)
        {
            this._subassembly = subassembly;
            this._corridor    = corridor;

            foreach (var p in subassembly.ParamsBool)
            {
                this._parameters.Add(new SubassemblyParameter((IAeccParam)p));
            }
            foreach (var p in subassembly.ParamsDouble)
            {
                this._parameters.Add(new SubassemblyParameter((IAeccParam)p));
            }
            foreach (var p in subassembly.ParamsLong)
            {
                this._parameters.Add(new SubassemblyParameter((IAeccParam)p));
            }
            foreach (var p in subassembly.ParamsString)
            {
                this._parameters.Add(new SubassemblyParameter((IAeccParam)p));
            }
        }