예제 #1
0
        /// <summary> 构造函数 </summary>
        public SocketedShaftSystem()
        {
            //// 土层集合
            SoilLayers = new XmlList <SoilLayerEntity>();
            //SoilLayer sl = new SoilLayer()
            //{
            //    Name = "第一层土",
            //    CompressiveStrength = (float)2e7,
            //};
            //SoilLayer s2 = new SoilLayer()
            //{
            //    Name = "第二层土",
            //    CompressiveStrength = (float)123000,
            //};
            SoilDefinitions = new List <SoilLayer>();
            //SoilDefinitions.Add(sl);
            //SoilDefinitions.Add(s2);
            //SoilLayerEntity sle1 = new SoilLayerEntity()
            //{
            //    Bottom = 250,
            //    Top = 290,
            //    Layer = sl
            //};

            //SoilLayerEntity sle2 = new SoilLayerEntity()
            //{
            //    Bottom = 200,
            //    Top = 300,
            //    Layer = s2
            //};
            //SoilLayers.Add(sle1);
            //SoilLayers.Add(sle2);

            //// 嵌岩桩
            SocketedShaft = new SocketedShaft();

            //// 桩截面集合
            //ShaftSection ss1 = new ShaftSection() { Name = "截面1", BarsCount = 20, Diameter = 2 };
            //ShaftSection ss2 = new ShaftSection() { Name = "截面2", BarsCount = 35, Diameter = 1.5f };
            //SectionDefinitions = new List<ShaftSection> { ss1, ss2 };
            SectionDefinitions = new List <ShaftSection> ();
            ////
            //ShaftSectionEntity sse1 = new ShaftSectionEntity() { Top = 20, Bottom = 10, Section = ss1 };
            //ShaftSectionEntity sse2 = new ShaftSectionEntity() { Top = 10, Bottom = 5, Section = ss2 };
            //XmlList<ShaftSectionEntity> xl = new XmlList<ShaftSectionEntity>() { sse1, sse2 };
            //SocketedShaft.Sections = xl;

            ////
            SystemProperty = new SystemProperty();
            ////
            _uiniqueInstance = this;
        }
예제 #2
0
 public static void SetUniqueInstance(SocketedShaftSystem sss)
 {
     _uiniqueInstance = sss;
 }
예제 #3
0
 public static SocketedShaftSystem GetUniqueInstance()
 {
     return(_uiniqueInstance ?? (_uiniqueInstance = new SocketedShaftSystem()));
 }