KlassenBIB erweitert
This commit is contained in:
32
KlassenBIB/InlinerSanierung.cs
Normal file
32
KlassenBIB/InlinerSanierung.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
public sealed class InlinerSanierung : Sanierung
|
||||
{
|
||||
decimal kalibrierUnterdruck = -0.5m;
|
||||
decimal kalibierWalzenAbstand = 0.9m;
|
||||
decimal harzKalibrierTemperatur;
|
||||
DateTime datumKalibrierung;
|
||||
string harzChargenummer;
|
||||
string linerChargenummer;
|
||||
decimal harzbedarf = 1.8m;
|
||||
uint rueckholgeschwindigkeit = 24;
|
||||
|
||||
/// <summary>
|
||||
/// Gibt den kompletten Harzbedarf auf die Haltungslänge bezogen zurück
|
||||
/// </summary>
|
||||
public decimal GesamtHarzBedarf
|
||||
{
|
||||
get
|
||||
{
|
||||
return InspektionsObjekt.Haltungslaenge * harzbedarf;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -11,8 +11,15 @@ namespace KlassenBIB
|
||||
public class Inspektionsobjekt
|
||||
{
|
||||
public string Objektbezeichnung { get; set; }
|
||||
public string VonPunkt { get; set; }
|
||||
public string BisPunkt { get; set; }
|
||||
public string RohrMaterial { get; set; }
|
||||
public uint Kanalrohrweite { get; set; }
|
||||
public decimal Haltungslaenge { get; set; }
|
||||
public InspektionskuerzelnCollection Schadenskuerzeln { get; private set; }
|
||||
|
||||
public Sanierung Sanierung { get;set; }
|
||||
|
||||
public Inspektionsobjekt()
|
||||
{
|
||||
Schadenskuerzeln = new InspektionskuerzelnCollection();
|
||||
|
||||
@@ -43,11 +43,13 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="AbwasserTechnischeAnlageCollection.cs" />
|
||||
<Compile Include="AdresseCollection.cs" />
|
||||
<Compile Include="InlinerSanierung.cs" />
|
||||
<Compile Include="Projekt.cs" />
|
||||
<Compile Include="Inspektionskuerzeln.cs" />
|
||||
<Compile Include="InspektionskuerzelnCollection.cs" />
|
||||
<Compile Include="Inspektionsobjekt.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Sanierung.cs" />
|
||||
<Compile Include="Strasse.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
|
||||
35
KlassenBIB/Sanierung.cs
Normal file
35
KlassenBIB/Sanierung.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
public abstract class Sanierung
|
||||
{
|
||||
Guid guid;
|
||||
decimal tempAusen;
|
||||
decimal tempKanal;
|
||||
string wetter;
|
||||
bool genehmigungVorhanden;
|
||||
bool wasserhaltungEingerichtet;
|
||||
bool sTVOAbsicherung;
|
||||
bool hDReinigung;
|
||||
DateTime hDReinigungDatum;
|
||||
DateTime sanierungsDatum;
|
||||
Inspektionsobjekt inspektionsObjekt;
|
||||
|
||||
public Guid Guid { get => guid; set => guid = value; }
|
||||
public decimal TempAusen { get => tempAusen; set => tempAusen = value; }
|
||||
public decimal TempKanal { get => tempKanal; set => tempKanal = value; }
|
||||
public string Wetter { get => wetter; set => wetter = value; }
|
||||
public bool GenehmigungVorhanden { get => genehmigungVorhanden; set => genehmigungVorhanden = value; }
|
||||
public bool WasserhaltungEingerichtet { get => wasserhaltungEingerichtet; set => wasserhaltungEingerichtet = value; }
|
||||
public bool STVOAbsicherung { get => sTVOAbsicherung; set => sTVOAbsicherung = value; }
|
||||
public bool HDReinigung { get => hDReinigung; set => hDReinigung = value; }
|
||||
public DateTime HDReinigungDatum { get => hDReinigungDatum; set => hDReinigungDatum = value; }
|
||||
public DateTime SanierungsDatum { get => sanierungsDatum; set => sanierungsDatum = value; }
|
||||
public Inspektionsobjekt InspektionsObjekt { get => inspektionsObjekt; set => inspektionsObjekt = value; }
|
||||
}
|
||||
}
|
||||
@@ -45,6 +45,13 @@ namespace KlassenBIB.Tests
|
||||
Quantifizierung2 = 150,
|
||||
});
|
||||
|
||||
InlinerSanierung inliner = new InlinerSanierung();
|
||||
inliner.Guid = Guid.NewGuid();
|
||||
inliner.TempAusen = 1;
|
||||
inliner.STVOAbsicherung = true;
|
||||
inspektionsobjekt.Sanierung = inliner;
|
||||
inliner.InspektionsObjekt = inspektionsobjekt;
|
||||
|
||||
abwasserTechnischeAnlageCollection.Add(inspektionsobjekt);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user