-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathHouseCreationAndCalculationJob.cs
61 lines (50 loc) · 1.75 KB
/
HouseCreationAndCalculationJob.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
namespace Automation {
public enum HouseDefinitionType {
HouseData = 0,
HouseName = 1
}
public class HouseReference {
public HouseReference(JsonReference house) => House = house;
[Obsolete("json only")]
#pragma warning disable 8618
public HouseReference()
#pragma warning restore 8618
{
}
public JsonReference House {
get;
set;
}
}
public class HouseCreationAndCalculationJob
{
// ReSharper disable once NotNullMemberIsNotInitialized
public HouseCreationAndCalculationJob( string scenario, string year, string? districtname,
HouseDefinitionType houseDefinitionType)
{
Scenario = scenario;
Year = year;
DistrictName = districtname;
HouseDefinitionType = houseDefinitionType;
}
//for json loading
[SuppressMessage("ReSharper", "NotNullMemberIsNotInitialized")]
public HouseCreationAndCalculationJob()
{
}
[CanBeNull]
public HouseData? House { get; set; }
public JsonCalcSpecification? CalcSpec { get; set; }
public HouseDefinitionType HouseDefinitionType { get; set; }
public HouseReference? HouseRef { get; set; }
public string? Scenario { get; set; }
public string? Year { get; set; }
public string? DistrictName { get; set; }
[Comment(
"Path to the database file to use. Defaults to profilegenerator.db3 in the current directory if not set.")]
public string? PathToDatabase { get; set; } = "profilegenerator.db3";
}
}