|
CLAN is a Visual Prolog system development-related tool with two main functions:
CLAN always work with a specified target directory. The target directory is shown to the right in the toolbar. You can change target project directory while working with CLAN. XGREP is an enhanced grep or text file search utility. XGREP operates in three modes:
A file set is defined by the target directory with or without sub-directories and limited to files matching the specified file mask. You must specify whether the files are ASCII or UNICODE, and whether or not searching is case sensitive. (Replacement strings in case of substitution are always case sensitive). The analyzer analyzes all source files in a project i.e. the project's .pack and .ph file, and all files referenced in these files recursively. However, it will only analyze files:
Example The target directory c:\vip_apps\pro3_611 and the root package is pro3_611. All source modules in the target directory and its subdirectories, and referred by the root package (recursively), will be included. Source modules in the c:\vip_apps\library directory and sub-directories will also be included. Source modules in the c:\Program Files\Visual Prolog 6.1 will be explicitly excluded from the analysis. So will also classes core, resourceidentifiers and prohectttoolbar as well as all classes starting with vpi/ The analyzer analyzes .ph, .pack, .cl, .i and .pro files. The scope of the analysis is only the included source files, e.g. a class not referring to any classes in the scope, is regarded as a class not referring to any other classes (even if it happens to refer to classes outside the scope). The analyzer uses a simpler syntax analyzer than VIP itself. It has problems with elements like S="\"" which it reports as an unterminated string. To get around this you might consider changing the source to e.g. Quote=string::toString('"'), S=Quote. PROJECT METRICS A set of basic project metrics are displayed after the source file analysis is completed: The following reports are available:
REPORT OUTPUT OPTIONS Output are either in table or text window format. Text window format can optionally use line-wrapping. These preferences are set via the File-menu or via two toggles in the menu bar:
The result of the analysis i.e. all object relations as well class interdependencies can be exported to a Pro/3 knowledge base (clan.3kb). This knowledge is preloaded with a number of rules and built-in queries which further analyses the project. clan.3kb makes ad-hoc browsing in the often considerable volume of data easy. Class dependency graphs can be exported to MS Visio. The graphs correspond to the two class dependency reports described over. The generated export files are called VisioClasses.txt and VisioClassDetailed.txt. The files are imported to MS Visio as follows:
Classes are drawn as rectangles, interfaces as "rounded rectangles", object types as diamonds and implementations as "pointed rectangles". The MS Visio exports require the stencil file clan.vss. |
|