New diagrams tool

Announcements of new Logtalk releases and events

Moderator: Paulo Moura

Post Reply
Paulo Moura
Logtalk developer
Posts: 473
Joined: Sat May 05, 2007 8:35 am
Location: Portugal
Contact:

New diagrams tool

Post by Paulo Moura » Mon Jan 13, 2014 5:08 pm

As you may notice if you have been following the Logtalk Twitter account or subscribing to the Logtalk commits RSS feed, I have been working lately on a much improved diagrams tool, which will be included in the next alpha release of Logtalk 3. The new diagrams tool support several kinds of entity and file diagrams and a comprehensive set of options that allows you to customize the generated diagrams. As in the initial version, the tool generates DOT files (http://www.graphviz.org/), which can be easily converted into publishing format such as PDF and SVG. A detailed description of the supported diagrams and tool options can be found at:

https://github.com/LogtalkDotOrg/logtal ... s/NOTES.md

To better illustrate the new features, a set of example diagrams is also available online:

http://logtalk.org/files/diagrams/

The entity diagrams show entities (objects, protocols, categories, and Prolog modules), their public interface, and their inheritance and cross-reference relations. For example:

http://logtalk.org/files/diagrams/tools ... iagram.pdf

http://logtalk.org/files/diagrams/searc ... iagram.pdf

http://logtalk.org/files/diagrams/diagr ... iagram.pdf

Diagrams showing predicate cross-reference calls are also supported. For example:

http://logtalk.org/files/diagrams/symbi ... iagram.pdf

The file diagrams show file loading dependencies and file entity dependencies. For example:

http://logtalk.org/files/diagrams/searc ... iagram.pdf

http://logtalk.org/files/diagrams/searc ... iagram.pdf

When generating output other output formats such as SVG, it's possible to add tooltips (for the diagram edges, nodes, and node clusters) and URL links (for the node clusters) to the generated diagrams. For example:

http://logtalk.org/files/diagrams/point ... iagram.svg

Feedback on this new version of the diagrams tools is much appreciated. The current implementation is fully usable, although some code cleanup may still be done before the final release. If you notice some functionality missing, please let me know as soon as possible.

Part of this work is inspired by PDT (http://sewiki.iai.uni-bonn.de/research/pdt/). A special thanks to Andreas Becker for his work on PDT Logtalk support and his feedback on earlier versions of the diagrams tool.

Happy logtalking!
Paulo Moura
Logtalk developer

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest