Exemplo n.º 1
0
        public override void copyMaterialFrom(GWPMaterial material)
        {
            if (material is ICEConcrete)
            {
                var m = material as ICEConcrete;
                this.Grade                    = m.Grade;
                this.Replacement              = m.Replacement;
                this.ReinforcementDensity     = m.ReinforcementDensity;
                this.ConstructionFactor       = m.ConstructionFactor;
                this.DeConstructionFactor     = m.DeConstructionFactor;
                this.InUseFactor              = m.InUseFactor;
                this._massDensity             = m.MassDensity;
                this.IncludeSequesteredCarbon = m.IncludeSequesteredCarbon;
                this.TransportsToSite.Clear();
                this.TransportsToDispoal.Clear();

                foreach (var item in m.TransportsToSite)
                {
                    this.TransportsToSite.Add(item);
                }
                foreach (var item in m.TransportsToDispoal)
                {
                    this.TransportsToDispoal.Add(item);
                }
            }
        }
Exemplo n.º 2
0
        public override void copyMaterialFrom(GWPMaterial material)
        {
            if (material is ICETimber)
            {
                var m = material as ICETimber;
                this.TimberMaterial           = m.TimberMaterial;
                this.IncludeCarbonFromBiomass = m.IncludeCarbonFromBiomass;
                this._carbonFraction          = m.CarbonFraction;
                this._moistureContent         = m.MoistureContent;
                this.ConstructionFactor       = m.ConstructionFactor;
                this.DeConstructionFactor     = m.DeConstructionFactor;
                this.InUseFactor              = m.InUseFactor;
                this._massDensity             = m.MassDensity;
                this.IncludeSequesteredCarbon = m.IncludeSequesteredCarbon;
                this.TransportsToSite.Clear();
                this.TransportsToDispoal.Clear();

                foreach (var item in m.TransportsToSite)
                {
                    this.TransportsToSite.Add(item);
                }
                foreach (var item in m.TransportsToDispoal)
                {
                    this.TransportsToDispoal.Add(item);
                }
            }
        }
Exemplo n.º 3
0
        public override void copyMaterialFrom(GWPMaterial material)
        {
            var m = material as GWPGeneric;

            _a1toa3        = m.A1toA3;
            _a4            = m.A4;
            _a5            = m.A5;
            _b1            = m.B1;
            _b2            = m.B2;
            _b3            = m.B3;
            _b4            = m.B4;
            _b5            = m.B5;
            _b6            = m.B6;
            _b7            = m.B7;
            _c1            = m.C1;
            _c2            = m.C2;
            _c3            = m.C3;
            _c4            = m.C4;
            _name          = m.Name;
            _linkReference = m.LinkReference;
        }
Exemplo n.º 4
0
        public override void copyMaterialFrom(GWPMaterial material)
        {
            if (material is ICENone)
            {
                var m = material as ICENone;
                this.ConstructionFactor       = m.ConstructionFactor;
                this.DeConstructionFactor     = m.DeConstructionFactor;
                this.InUseFactor              = m.InUseFactor;
                this.IncludeSequesteredCarbon = m.IncludeSequesteredCarbon;
                this.TransportsToSite.Clear();
                this.TransportsToDispoal.Clear();

                foreach (var item in m.TransportsToSite)
                {
                    this.TransportsToSite.Add(item);
                }
                foreach (var item in m.TransportsToDispoal)
                {
                    this.TransportsToDispoal.Add(item);
                }
            }
        }
Exemplo n.º 5
0
 public override void copyMaterialFrom(GWPMaterial material)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 6
0
 public abstract void copyMaterialFrom(GWPMaterial material);