Operational Reliability Reports
Capacity Reserve Reliability Report
Report capacity reserve and assign a small reliability label.
Capacity Reserve Reliability Report
CapacityReserveReliabilityReport.scala
object Main {
def main(args: Array[String]): Unit = {
val demand =
val capacity = 100
val reserve = capacity - demand
var status = "stable"
if (reserve < 15) {
status = "watch"
}
if (reserve < 8) {
status = "tight"
}
println("demand=" + demand)
println("reserve=" + reserve)
println("status=" + status)
}
}
object Main {
def main(args: Array[String]): Unit = {
val demand =
val capacity = 100
val reserve = capacity - demand
var status = "stable"
if (reserve < 15) {
status = "watch"
}
if (reserve < 8) {
status = "tight"
}
println("demand=" + demand)
println("reserve=" + reserve)
println("status=" + status)
}
}
object Main {
def main(args: Array[String]): Unit = {
val demand =
val capacity = 100
val reserve = capacity - demand
var status = "stable"
if (reserve < 15) {
status = "watch"
}
if (reserve < 8) {
status = "tight"
}
println("demand=" + demand)
println("reserve=" + reserve)
println("status=" + status)
}
}
capacity-reserve-report
A reserve report keeps the arithmetic visible before assigning a status label.