HP Caliper Advisor Rule Writer Guide

"functions:\n"
" function_1\n"
" function_2\n"
" function_3\n"
"The rule would really generate this string dynamically.")
is printed as:
-------------------------------------------------------------------------------
Index Class Analysis
-------------------------------------------------------------------------------
9.8 io Rule-controlled formatting. [sample_advice_4]
This is an example of a rule which wants to print a list of
hot function names in a readable way. Here are the hot
functions:
function_1
function_2
function_3
The rule would really generate this string dynamically.
-------------------------------------------------------------------------------
The following rule:
def rule_sample_advice_5(object):
object.advice(4.3, SYSTEM_ADVICE, "Missing advice sections.",
None,
None,
"This example shows how a rule can generate advice with "
"missing sections. Note that blank lines are not printed "
"for the missing sections.")
is printed as:
-------------------------------------------------------------------------------
Index Class Analysis
-------------------------------------------------------------------------------
4.3 system Missing advice sections. [sample_advice_5]
This example shows how a rule can generate advice with
missing sections. Note that blank lines are not printed for
the missing sections.
-------------------------------------------------------------------------------
56 HP Caliper Advisor Advice Function