ModelAdvisor.FormatTemplate
Template for formatting Model Advisor analysis results
Description
Use the ModelAdvisor.FormatTemplate
class to format the
result of a check in the analysis result pane of the Model Advisor for a uniform look
and feel among the checks you create. You can format the analysis results as a table or
a list.
Creation
Description
obj = ModelAdvisor.FormatTemplate(
creates an object of the type
)ModelAdvisor.FormatTemplate
class.
is a character vector
identifying the format type of the template, either list or table.type
You must return the result object to the Model Advisor to display the formatted result in the analysis result pane.
Note
Use the ModelAdvisor.FormatTemplate
class in check callbacks.
Input Arguments
Object Functions
addRow | Add row to table in Model Advisor analysis results |
setCheckText | Add description of check to result |
setColTitles | Add column titles to table in Model Advisor analysis results |
setInformation | Add description of subcheck to result |
setListObj | Add list of hyperlinks to model objects |
setRecAction | Add Recommended Action section and text |
setRefLink | Add See Also section and links |
setSubBar | Add line between subcheck results |
setSubResultStatus | Add status to the check or subcheck result |
setSubResultStatusText | Add text below status in result |
setSubTitle | Add title for subcheck in result |
setTableInfo | Add data to table |
setTableTitle | Add title to table in Model Advisor analysis results |
Examples
Alternatives
When you define a ModelAdvisor.Check
object, for the
CallbackStyle
property, if you specify
DetailStyle
, you do not have to use the
ModelAdvisor.FormatTemplate
API or the other formatting APIs to
format the results that appear in the Model Advisor report.
DetailStyle
also allows you to view results by block, subsystem,
or recommended action.
If the default formatting does not meet your needs, use the
ModelAdvisor.FormatTemplate
API or the other formatting APIs. The
ModelAdvisor.FormatTemplate
class provides a
uniform look and feel among the checks you create.
Version History
Introduced in R2009a