Skip to content

Commit b0bc32b

Browse files
committed
LineCode: mark properties FaultRate, PctPerm and Repair as unused and deprecated.
1 parent 69fca93 commit b0bc32b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/General/LineCode.pas

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,16 @@ procedure TLineCode.DefineProperties;
276276

277277
PropertyOffset[ord(TProp.normamps)] := ptruint(@obj.NormAmps);
278278
PropertyOffset[ord(TProp.emergamps)] := ptruint(@obj.EmergAmps);
279+
279280
PropertyOffset[ord(TProp.faultrate)] := ptruint(@obj.FaultRate);
280281
PropertyOffset[ord(TProp.pctperm)] := ptruint(@obj.PctPerm);
281282
PropertyOffset[ord(TProp.repair)] := ptruint(@obj.HrsToRepair);
283+
PropertyFlags[ord(TProp.faultrate)] := [TPropertyFlag.Unused, TPropertyFlag.Deprecated];
284+
PropertyFlags[ord(TProp.pctperm)] := [TPropertyFlag.Unused, TPropertyFlag.Deprecated];
285+
PropertyFlags[ord(TProp.repair)] := [TPropertyFlag.Unused, TPropertyFlag.Deprecated];
286+
PropertyDeprecatedMessage[ord(TProp.FaultRate)] := 'In LineCode objects, "FaultRate" is not used in the DSS engine since 2014. Be sure to fill the values in each Line individually since they are not propagated from the LineCode!';
287+
PropertyDeprecatedMessage[ord(TProp.PctPerm)] := 'In LineCode objects, "PctPerm" is not used in the DSS engine since 2014. Be sure to fill the values in each Line individually since they are not propagated from the LineCode!';
288+
PropertyDeprecatedMessage[ord(TProp.Repair)] := 'In LineCode objects, "Repair" is not used in the DSS engine since 2014. Be sure to fill the values in each Line individually since they are not propagated from the LineCode!';
282289

283290
PropertyOffset[ord(TProp.Rg)] := ptruint(@obj.Rg);
284291
PropertyFlags[ord(TProp.Rg)] := [TPropertyFlag.Units_ohm_per_length];
@@ -489,6 +496,7 @@ constructor TLineCodeObj.Create(ParClass: TDSSClass; const LineCodeName: String)
489496
EmergAmps := 600.0;
490497
PctPerm := 20.0;
491498
FaultRate := 0.1;
499+
HrsToRepair := 3;
492500
FLineType := 1; // Default to OH Line
493501

494502
Rg := 0.01805; // ohms per 1000'

0 commit comments

Comments
 (0)