Klassifizierungssystem hinzugefügt

This commit is contained in:
2023-09-13 12:56:39 +02:00
parent 49ab3598d7
commit bfa77de720
42 changed files with 886 additions and 112 deletions

View File

@@ -2,9 +2,43 @@
{
public class BAF : AbstractCode
{
public BAF() : base("Oberflächenschaden", CalculateMethods.Dichtheit | CalculateMethods.Standsicherheit | CalculateMethods.Betriebsicherheit)
public BAF() : base("Oberflächenschaden")
{
throw new NotImplementedException();
}
public override int CalculateBK()
{
if (Ch1.Equals("K")) return 3;
return 4;
}
public override int CalculateDK()
{
switch(Ch1)
{
case "I": return 1;
case "Z": return 7;
default: return 5;
}
}
public override int CalculateSK()
{
switch(Ch1)
{
case "A": return 4;
case "B":
case "C": return 3;
case "D": return 2;
case "E": return 1;
case "F": return 3;
case "G": return 2;
case "H": return 1;
case "I":
case "J":
case "Z": return 7;
default: return 5;
}
}
}
}