Exemplo n.º 1
0
 /// <summary>コピーConstructor</summary>
 /// <param name="wallMaterial">コピーする壁素材</param>
 public WallMaterial(ImmutableWallMaterial wallMaterial)
 {
     this.id = wallMaterial.ID;
     this.name = wallMaterial.Name;
     this.thermalConductivity = wallMaterial.ThermalConductivity;
     this.volumetricSpecificHeat = wallMaterial.VolumetricSpecificHeat;
     this.pMaterial = wallMaterial.Material;
 }
Exemplo n.º 2
0
            /// <summary>デシリアライズ用Constructor</summary>
            /// <param name="sInfo"></param>
            /// <param name="context"></param>
            protected Layer(SerializationInfo sInfo, StreamingContext context)
            {
                //バージョン情報
                double version = sInfo.GetDouble("S_Version");

                //素材
                material = (ImmutableWallMaterial)sInfo.GetValue("materal", typeof(ImmutableWallMaterial));
                //厚み[m]
                thickness = sInfo.GetDouble("thickness");
                //壁分割数
                splitNum = sInfo.GetUInt32("splitNum");

                //初期化処理
                initialize();
            }
Exemplo n.º 3
0
            /// <summary>Constructor</summary>
            /// <param name="material">素材</param>
            /// <param name="thickness">厚み[m]</param>
            public Layer(ImmutableWallMaterial material, double thickness)
            {
                this.material = material;
                this.thickness = thickness;

                //初期化処理
                initialize();
            }
Exemplo n.º 4
0
            /// <summary>Constructor</summary>
            /// <param name="material">素材</param>
            /// <param name="thickness">厚み[m]</param>
            /// <param name="splitNumber">壁分割数</param>
            public Layer(ImmutableWallMaterial material, double thickness, uint splitNumber)
            {
                this.material = material;
                this.thickness = thickness;
                this.splitNum = splitNumber;

                //初期化処理
                initialize();
            }
Exemplo n.º 5
0
 /// <summary>壁素材を使っているか否かを返す</summary>
 /// <param name="material">壁素材</param>
 /// <returns>使っている場合は真</returns>
 public bool UsingMaterial(ImmutableWallMaterial material)
 {
     foreach (Layer layer in layers)
     {
         if (layer.Material.ID == material.ID) return true;
     }
     return false;
 }