Operational Remediation Reports
Capacity Shift Remediation Report
Map remaining capacity reserve to a hold, shift, or shed remediation action.
reserve selector
The reserve value is the controlled selector for each report variant rather than a live capacity read.
Capacity Shift Remediation Report
CapacityShiftRemediationReport.java
Replay: real traced execution (multi-file project)
public class CapacityShiftRemediationReport {
public static void main(String[] args) {
int reserve = 8;
int capacity = 20;
String action = "shift";
if (reserve >= 12) {
action = "hold";
}
if (reserve < 6) {
action = "shed";
}
System.out.println("reserve=" + reserve + " capacity=" + capacity + " action=" + action);
}
}
public class CapacityShiftRemediationReport {
public static void main(String[] args) {
int reserve = 4;
int capacity = 20;
String action = "shift";
if (reserve >= 12) {
action = "hold";
}
if (reserve < 6) {
action = "shed";
}
System.out.println("reserve=" + reserve + " capacity=" + capacity + " action=" + action);
}
}
public class CapacityShiftRemediationReport {
public static void main(String[] args) {
int reserve = 16;
int capacity = 20;
String action = "shift";
if (reserve >= 12) {
action = "hold";
}
if (reserve < 6) {
action = "shed";
}
System.out.println("reserve=" + reserve + " capacity=" + capacity + " action=" + action);
}
}
reserve ← 8, capacity ← 20, action ← shift
1public class CapacityShiftRemediationReport {2 public static void main(String[] args) {3 int reserve→ 8 = 8; //@reserve=16, 44 int capacity→ 20 = 20;5 String action→ shift = "shift";67 if (reserve >= 12) {8 action = "hold";9 }10 if (reserve < 6) {11 action = "shed";12 }1314 System.out.println("reserve=" + reserve8 + " capacity=" + capacity20 + " action=" + actionshift);15 }outputreserve=8 capacity=20 action=shift
reserve ← 4, capacity ← 20, action ← shift
1public class CapacityShiftRemediationReport {2 public static void main(String[] args) {3 int reserve→ 4 = 4;4 int capacity→ 20 = 20;5 String action→ shift = "shift";action ← shed
9}10if (reserve4 < 6) {11 action→ shed = "shed";12}System.out.println("reserve=" + reserve + " capacity=" + capacity + " …
14 System.out.println("reserve=" + reserve4 + " capacity=" + capacity20 + " action=" + actionshed);15}outputreserve=4 capacity=20 action=shed
reserve ← 16, capacity ← 20, action ← shift
1public class CapacityShiftRemediationReport {2 public static void main(String[] args) {3 int reserve→ 16 = 16;4 int capacity→ 20 = 20;5 String action→ shift = "shift";action ← hold
7if (reserve16 >= 12) {8 action→ hold = "hold";9}System.out.println("reserve=" + reserve + " capacity=" + capacity + " …
14 System.out.println("reserve=" + reserve16 + " capacity=" + capacity20 + " action=" + actionhold);15}outputreserve=16 capacity=20 action=hold