Exemplo n.º 1
0
 public IWeld GetWeld(WeldType weldType,double F_y, double F_u, double F_EXX, double Size, double A_nBase, double Length)
 {
     IWeld weld =null;
     switch (weldType)
     {
         case WeldType.CJP:
             weld = new CJPGrooveWeld(F_y, F_u, F_EXX, Size, A_nBase, Length);
             break;
         case WeldType.PJP:
             weld = new PJPGrooveWeld(F_y, F_u, F_EXX, Size, A_nBase, Length);
             break;
         case WeldType.Fillet:
             weld = new FilletWeld(F_y, F_u, F_EXX, Size, A_nBase, Length);
             break;
     }
     return weld;
 }
Exemplo n.º 2
0
        public IWeld GetWeld(WeldType weldType, double F_y, double F_u, double F_EXX, double Size, double A_nBase, double Length)
        {
            IWeld weld = null;

            switch (weldType)
            {
            case WeldType.CJP:
                weld = new CJPGrooveWeld(F_y, F_u, F_EXX, Size, A_nBase, Length);
                break;

            case WeldType.PJP:
                weld = new PJPGrooveWeld(F_y, F_u, F_EXX, Size, A_nBase, Length);
                break;

            case WeldType.Fillet:
                weld = new FilletWeld(F_y, F_u, F_EXX, Size, A_nBase, Length);
                break;
            }
            return(weld);
        }