Bewertungssystem angefangen
This commit is contained in:
38
dcnsanplanung.bewertung/M149-3/BAC.cs
Normal file
38
dcnsanplanung.bewertung/M149-3/BAC.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user