Esempio n. 1
0
        public IReinforcingSteel CreateReinforcingSteel(ReinforcingSteelClass steelClass)
        {
            switch (steelClass)
            {
            case ReinforcingSteelClass.B500A:
                return(new B500ASteel(steelClass));

            case ReinforcingSteelClass.B500SP:
                return(new B500SPSteel(steelClass));

            case ReinforcingSteelClass.BST500S:
                return(new BST500SSteel(steelClass));

            case ReinforcingSteelClass.RB500W:
                return(new RB500WSteel(steelClass));

            default:
                throw new ArgumentException("The reinforcing steel class hasn't been implemented yet.");
            }
        }
Esempio n. 2
0
 public BST500SSteel(ReinforcingSteelClass steelClass)
     : base(steelClass)
 {
 }
Esempio n. 3
0
 public B500SPSteel(ReinforcingSteelClass steelClass)
     : base(steelClass)
 {
 }
Esempio n. 4
0
 protected ReinforcingSteel(ReinforcingSteelClass steelClass)
 {
     this.steelClass = steelClass;
 }
Esempio n. 5
0
 public RB500WSteel(ReinforcingSteelClass steelClass)
     : base(steelClass)
 {
 }