39 lines
930 B
C#
39 lines
930 B
C#
namespace dcnsanplanung.bewertung.M149_3
|
|
{
|
|
public class BAC : AbstractCode
|
|
{
|
|
public BAC() : base("Rohrbruch", CalculateMethods.Dichtheit | CalculateMethods.Standsicherheit | CalculateMethods.Betriebsicherheit)
|
|
{
|
|
}
|
|
|
|
protected override int CalculateBK()
|
|
{
|
|
switch (Ch1)
|
|
{
|
|
case "A": return 7;
|
|
case "C": return 0;
|
|
}
|
|
return 10;
|
|
}
|
|
protected override int CalculateSK()
|
|
{
|
|
switch(Ch1)
|
|
{
|
|
case "A": return 7;
|
|
case "B": return 7;
|
|
default: return 0;
|
|
}
|
|
}
|
|
protected override int CalculateDK()
|
|
{
|
|
switch (Ch1)
|
|
{
|
|
case "A":
|
|
case "B":
|
|
return 1;
|
|
default: return 0;
|
|
}
|
|
}
|
|
}
|
|
}
|