Bewertungssystem angefangen

This commit is contained in:
2023-09-11 20:39:23 +02:00
parent f41cfff5c0
commit 560ac6246b
32 changed files with 9504 additions and 51 deletions

View File

@@ -0,0 +1,38 @@
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;
}
}
}
}