asiFormatAnalysisList
asiFormatAnalysisList(o_anap_fp) =>t/nil
Description
Formats all enabled analyses by calling asiFormatAnalysis.
Arguments
Value Returned
Examples
The following example shows how to overload the asiFormatAnalysisList function:
defmethod(asiFormatAnalysisList ((session yourSimulator_session) fp)
;; add your code
callNextMethod()
;; add your code
t
)
atAnalysis
asiFormatAnalysis(o_anap_fp) =>t/nil
Description
Formats and prints analysis statements to the control file. For the general asiAnalog class, it follows this routine: prints the analysis name by calling asiGetAnalysisName; prints the list of signals by calling asiGetAnalysisSigList and formats them in parentheses [for example: (net1 net2)]; prints the analysis field list in name=value pairs; prints the analysis options in name=value pairs; uses asiGetFormattedVal() to obtain the print string for an analysis field value or an analysis option value. Please see the description of asiGetFormattedVal routine for more details.
Arguments
Value Returned
Examples
The following example shows how to overload the asiFormatAnalysis function:
defmethod( asiFormatAnalysis ((ana asiAnalog_analysis) fp)
let(( name type sigList simVal (session asiGetSession(ana) ))
name = asiGetAnalysisName( ana )
sigList = asiGetAnalysisSigList( session ana )
;;; prints analysis name
artFprintf(fp "%s " name )
;;; handls analysis signals
when( sigList
artFprintf( fp "( ")
foreach( netField sigList
when( simVal = asiGetFormattedVal( netField )
artFprintf(fp "%s " simVal)
)
)
artFprintf( fp ") ")
)
;;; prints analysis fields
foreach( f asiGetAnalysisSimFieldList( session ana )
when( simVal = asiGetFormattedVal( f )
artFprintf(fp "%s=%s " asiGetName(f) simVal)
)
)
;;; prints analysis options
foreach( o asiGetAnalysisOptionList( ana )
when( simVal = asiGetFormattedVal(o)
artFprintf(fp "%s=%s " asiGetName(o) simVal)
)
)
artFprintf(fp "\n")
t
)
)
Return to top