コード例 #1
0
        public virtual LoadBeam GetMomentCase(string subCase)
        {
            LoadBeam Load = null;

            switch (subCase)
            {
            case "1":
                Load = new LoadMomentLeftEnd(d.M);
                break;

            case "2":
                Load = new LoadMomentGeneral(d.M, d.a_load);
                break;

            case "3":
                Load = new LoadMomentBothEnds(d.M1, d.M2);
                break;

            case "4":
                Load = new LoadMomentRightEnd(d.M);
                break;
            }
            return(Load);
        }
コード例 #2
0
ファイル: BeamLoadFactory.cs プロジェクト: Wosad/Wosad.Design
 public virtual LoadBeam GetMomentCase(string subCase)
 {
     LoadBeam Load = null;
     switch (subCase)
     {
         case "1":
             Load = new LoadMomentLeftEnd(d.M);
             break;
         case "2":
             Load = new LoadMomentGeneral(d.M, d.a_load);
             break;
         case "3":
             Load = new LoadMomentBothEnds(d.M1, d.M2);
             break;
         case "4":
             Load = new LoadMomentRightEnd(d.M);
             break;
     }
     return Load;
 }