|
25 | 25 | @Entity
|
26 | 26 | @Table(name = "shortCircuitParameters")
|
27 | 27 | public class ShortCircuitParametersEntity {
|
28 |
| - |
29 |
| - public ShortCircuitParametersEntity(boolean withLimitViolations, boolean withVoltageResult, boolean withFortescueResult, boolean withFeederResult, StudyType studyType, double minVoltageDropProportionalThreshold, boolean withLoads, boolean withShuntCompensators, boolean withVscConverterStations, boolean withNeutralPosition, InitialVoltageProfileMode initialVoltageProfileMode, ShortCircuitPredefinedConfiguration predefinedParameters) { |
| 28 | + public ShortCircuitParametersEntity(boolean withLimitViolations, boolean withVoltageResult, boolean withFortescueResult, |
| 29 | + boolean withFeederResult, StudyType studyType, double minVoltageDropProportionalThreshold, |
| 30 | + ShortCircuitPredefinedConfiguration predefinedParameters, boolean withLoads, |
| 31 | + boolean withShuntCompensators, boolean withVscConverterStations, |
| 32 | + boolean withNeutralPosition, InitialVoltageProfileMode initialVoltageProfileMode) { |
30 | 33 | this(null, withLimitViolations, withVoltageResult, withFortescueResult, withFeederResult, studyType, minVoltageDropProportionalThreshold, predefinedParameters, withLoads, withShuntCompensators, withVscConverterStations, withNeutralPosition, initialVoltageProfileMode);
|
31 | 34 | }
|
32 | 35 |
|
| 36 | + public ShortCircuitParametersEntity(ShortCircuitParametersEntity entity) { |
| 37 | + this(entity.withLimitViolations, |
| 38 | + entity.withVoltageResult, |
| 39 | + entity.withFortescueResult, |
| 40 | + entity.withFeederResult, |
| 41 | + entity.studyType, |
| 42 | + entity.minVoltageDropProportionalThreshold, |
| 43 | + entity.predefinedParameters, |
| 44 | + entity.withLoads, |
| 45 | + entity.withShuntCompensators, |
| 46 | + entity.withVscConverterStations, |
| 47 | + entity.withNeutralPosition, |
| 48 | + entity.initialVoltageProfileMode); |
| 49 | + } |
| 50 | + |
33 | 51 | @Id
|
34 | 52 | @GeneratedValue(strategy = GenerationType.AUTO)
|
35 | 53 | @Column(name = "id")
|
36 | 54 | private UUID id;
|
37 | 55 |
|
38 | 56 | @Column(name = "withLimitViolations", columnDefinition = "boolean default true")
|
39 |
| - private boolean withLimitViolations; |
| 57 | + private boolean withLimitViolations = true; |
40 | 58 |
|
41 |
| - @Column(name = "withVoltageResult", columnDefinition = "boolean default true") |
42 |
| - private boolean withVoltageResult; |
| 59 | + @Column(name = "withVoltageResult", columnDefinition = "boolean default false") |
| 60 | + private boolean withVoltageResult = false; |
43 | 61 |
|
44 |
| - @Column(name = "withFortescueResult", columnDefinition = "boolean default true") |
45 |
| - private boolean withFortescueResult; |
| 62 | + @Column(name = "withFortescueResult", columnDefinition = "boolean default false") |
| 63 | + private boolean withFortescueResult = false; |
46 | 64 |
|
47 | 65 | @Column(name = "withFeederResult", columnDefinition = "boolean default true")
|
48 |
| - private boolean withFeederResult; |
| 66 | + private boolean withFeederResult = true; |
49 | 67 |
|
50 |
| - @Column(name = "studyType") |
| 68 | + @Column(name = "studyType", columnDefinition = "varchar(15) default \"TRANSIENT\"") |
51 | 69 | @Enumerated(EnumType.STRING)
|
52 |
| - private StudyType studyType; |
| 70 | + private StudyType studyType = StudyType.TRANSIENT; |
53 | 71 |
|
54 |
| - @Column(name = "minVoltageDropProportionalThreshold") |
55 |
| - private double minVoltageDropProportionalThreshold; |
| 72 | + @Column(name = "minVoltageDropProportionalThreshold", columnDefinition = "double precision default '20.0'") |
| 73 | + private double minVoltageDropProportionalThreshold = 20.0; |
56 | 74 |
|
57 |
| - @Column(name = "predefinedParameters") |
| 75 | + @Column(name = "predefinedParameters", columnDefinition = "varchar(35) default \"ICC_MAX_WITH_NOMINAL_VOLTAGE_MAP\"") |
58 | 76 | @Enumerated(EnumType.STRING)
|
59 |
| - private ShortCircuitPredefinedConfiguration predefinedParameters; |
| 77 | + private ShortCircuitPredefinedConfiguration predefinedParameters = ShortCircuitPredefinedConfiguration.ICC_MAX_WITH_NOMINAL_VOLTAGE_MAP; |
60 | 78 |
|
61 | 79 | @Column(name = "withLoads", columnDefinition = "boolean default false")
|
62 |
| - private boolean withLoads; |
| 80 | + private boolean withLoads = false; |
63 | 81 |
|
64 | 82 | @Column(name = "withShuntCompensators", columnDefinition = "boolean default false")
|
65 |
| - private boolean withShuntCompensators; |
| 83 | + private boolean withShuntCompensators = false; |
66 | 84 |
|
67 | 85 | @Column(name = "withVscConverterStations", columnDefinition = "boolean default true")
|
68 |
| - private boolean withVscConverterStations; |
| 86 | + private boolean withVscConverterStations = true; |
69 | 87 |
|
70 | 88 | @Column(name = "withNeutralPosition", columnDefinition = "boolean default true")
|
71 |
| - private boolean withNeutralPosition; |
| 89 | + private boolean withNeutralPosition = true; |
72 | 90 |
|
73 |
| - @Column(name = "initialVoltageProfileMode") |
| 91 | + @Column(name = "initialVoltageProfileMode", columnDefinition = "varchar(15) default \"NOMINAL\"") |
74 | 92 | @Enumerated(EnumType.STRING)
|
75 |
| - private InitialVoltageProfileMode initialVoltageProfileMode; |
| 93 | + private InitialVoltageProfileMode initialVoltageProfileMode = InitialVoltageProfileMode.NOMINAL; |
76 | 94 | }
|
0 commit comments