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); }
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; }