monitor: Create PowerOffCause class hierarchy
The PowerOffCause base class and its derived classes will be used to
determine when a power off needs to be done based on fan failures.
The 'satisified()' method, which takes the fan health map, is used to
say if the cause is satisfied and a shut down will need to occur.
It provides two types of causes:
* MissingFanFRUCause - Looks at missing fan FRUs
* NonfuncFanRotorCause - Looks at nonfunctional rotors (sensors)
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I3c43347782dc559eb7c7441bf9c03d3407b248e2
diff --git a/monitor/Makefile.am b/monitor/Makefile.am
index e1bfcc0..ecfab71 100644
--- a/monitor/Makefile.am
+++ b/monitor/Makefile.am
@@ -39,3 +39,5 @@
fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py
$(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS) > ${builddir}/$@
endif
+
+SUBDIRS = test