TweetFollow Us on Twitter

September 90 - Aranda: a new case of CASE

Aranda: a new case of CASE

John Pattenden

Introduction

Aranda is a Computer-Aided-Software-Engineering (CASE) tool that does not fit into either of the two general categories of CASE products. Tools in the first category use notational systems to support one or more development methodologies for structured analysis and specification. Notational systems, such as bubble diagrams, are used to represent processes and dataflows. These systems require software engineers to learn a new set of paradigms before they can actually start doing anything useful and may not be well suited to some projects, particularly those that are more evolutionary than engineered.

The other category of tools are code generators, which can be useful for rapid prototyping but which tend to produce code that is difficult to maintain.

Aranda takes an entirely different approach. It's an object-oriented CASE tool designed to aid in the comprehension and reuse of existing code. It may, in fact, be the first CASE tool designed with object programming in mind. This should not be surprising, since Aranda was written using MacApp.

Aranda will generate information about existing source code, making it an immediately useful tool, especially in the case of MacApp with its large library of pre-existing code that needs to be at least partially digested by the working MacApp programmer. Aranda provides the user with several different ways of viewing code, both graphically and as text. All Aranda's views are hypertext-linked to aid navigation through the code jungle.

Aranda is based on a meta-programming model described in a paper, "Software maintenance using metaprogramming systems," which was presented at the 1987 Conference on Software Maintenance in Austin, Texas by Brian W. Terry and Rob Cameron of Simon Fraser University. In this model, Aranda parses all source code into a "project" and then generates and maintains an abstract tree of the code. Unlike a compiler-style parser, Aranda keeps the basic structure of the source code intact, allowing context-sensitive references to the code to be made after parsing.

The down side of this approach is that Aranda cannot handle some code that a compiler can. The case I ran into most often was with compiler directives, particularly the include statement. However, if you follow the conventions used in MacApp for compiler directives and generally maintain good programming form there should be no problems.

This tree structure is stored in a database along with the original source code which, although converted to Aranda's internal format, can still be viewed in its original form. After all the code has been parsed, a project window appears with a series of icons, each of which represents one source file that has been parsed; this represents a window into the database. (If you can't spot the file that you want, you might have to do a "Clean up windows," since Aranda sometimes places its icons outside the viewable area of the window).

From this "top level," folders can be created to help organize files and reports. There are a series of navigation tools provided on a screen palette which make navigating through folder hierarchies and reports quick and intuitive. With a large body of code-inevitable with MacApp-the ability to logically file associated items together in a simple intuitive fashion is a key factor in making the system useful as a whole.

Using Aranda

The first step into the code is to apply the Contents tool to the source file(s) that you wish to investigate. (Incidentally, I used the the IconEdit tutorial program for the source code in all the following diagrams.) The way tools are applied throughout Aranda is to first select an Identifier (see below) and then apply a tool to it.

Contents report

The Contents report provides a graphical view of a source code file, portraying the relationship between Identifiers, which are defined by Soft-Set as Procedures, Functions, Classes, Types, Variables, Parameters, Methods, Constants and Include files. The graphic reports can be reduced or expanded in detail and filters may be used to only show desired identifiers. Different shapes represent different types of identifiers, which quickly become familiar and easily recognizable.

Classes tool

The Classes tool lets you show the entire inheritance tree, all the way back to TObject, and in general provides a quick overview of any particular class hierarchy. All of these reports are context-sensitive, so a graphic object representing any identifier can be clicked on to provide a selection, and then an action appropriate to that identifier can be taken.

Notes

Notes lets you place the contents of other reports into a text format that is useful for archival documentation. These Notes reports are very useful, not only for after-the-fact documentation but also in the design and implementation stages, where a project leader might generate a note on a routine he needs and include references to other pieces of code that are to be used-the programmer who is implementing the new routines can then use Aranda's hypertext capabilities to investigate the other routines involved. PICTs and text can be pasted and positioned in Note forms, along with icons which reference other reports. You can thus create a flowchart and have the source code for the report available for viewing at the press of a button.

Notes are ideal for the software engineer who is a little slack in documenting code-a not uncommon occurrence. Aranda has a series of built-in Note reports for various identifiers which can be customized and extended as desired. The really nice thing about this type of report is that it is dynamic-keeping documentation up to date would otherwise be a time-consuming task and more often than not wouldn't be accurate anyway-so that getting a report "from the horse's mouth" in this fashion is a significant step forward in helping to make maintenance easier.

Flowcharts

A flowchart of a method, function or procedure can be generated in seconds by selecting the identifier and applying the Flowchart tool. This ability to graphically represent a routine's execution structure can be extremely helpful in figuring out what a routine does, particularly if you haven't written it. The full expression of any of the statements in the flowchart can be viewed with a Command-click. As with all the reports, the flowcharts are printable; the only thing I would have liked to see is the ability to get the entire expression on the printout. This applies to copying the charts as well.

Other tools

Other tools include an Imports tool which shows all externally defined identifiers that a selected routine imports. "Used By" shows all the identifiers that use a selected identifier, while "Modified By" displays all the routines that modify a selected identifier by direct assignment; this does not include variables whose values are modified as VAR parameters.

The source for any identifier can be quickly found using the Source Code tool. Once the contents of a source file has been established, the code can be analyzed in a number of ways using context-sensitive tools. The source is active in the sense that any identifier in the Source Code report can be selected and a report pertinent to it generated. This is a handy feature if you are tracing code through its calling chain to find bugs or understand logic.

Source-code editing is not available at this time, although code can pasted into other applications. Soft-Set is working towards editable source that can be added to the parse tree on the fly and then displayed graphically to show how it effects the rest of the program.

Each of these reports adds an icon and an explanatory title to the project window or the folder from which it was initiated; double clicking on the icon will regenerate the report. All the reports in Aranda are generated on the fly, guaranteeing that they will always be up to date as long as you have added the latest versions of any source files that have changed. Aranda aids you in this potentially tiresome pursuit by adding a "show newer" checkbox to its standard-file like dialog to add or update files in the database.

To help improve performance Aranda will in fact keep track of the last several reports that were generated (it implements a virtual memory scheme which can suck up a few megs), so switching between reports that you have just viewed is not slowed down at all by regeneration. However , if the report is not cached in memory it does have to be regenerated, which in the case of a "Used By" report can take several minutes and in some cases much longer.

The good news is that most reports take only a few seconds; to graphically generate the entire MacApp class hierarchy takes about a minute. All the reports can be cut and pasted into Notes or other applications, so if you are inclined towards huge wall charts there is plenty of scope here-it's just a matter of pasting it into your favorite CAD package and plotting it out. One problem with this, however, is the limit on Aranda's Scrap: the entire class hierarchy of MacApp needs a bit of disassembly work to get it exported out of Aranda.

If Aranda sounds at this point like a glorified browser, you would be at least partially correct: at its crudest level, Aranda makes an excellent companion to Mouser [Ed: now MacBrows] and is more accurate in tracking identifier usage. Using Aranda as a browser is a lot like using MacApp to do a "hello world" program: it does a fine job but its full potential is nowhere near being tapped.

Aranda comes with an 80-page manual that is well thought out and includes explanations of commands, a reference section, and a tutorial. While the tutorial only touches the surface of Aranda's capabilities, it does give a good first look at how to get into the program. Soft-Set is working on application notes which will demonstrate more in-depth techniques for applying Aranda to source-code documentation techniques.

How I use Aranda

I've been beta testing Aranda for more than six months and am now using the 1.01 release. We've mainly used it with an 80,000-line program written largely by people who are now unavailable [Ed: is that mentally or physically?] The software controls a series of remote hardware devices in real time; the overall system has to have a friendly user interface and control refrigeration, lighting and air conditioning in large buildings such as supermarkets. We also have the simultaneous ability of communicating with the hardware/software via modem to change settings on the fly.

Aranda has at times proven invaluable to us in tracking down how or why certain thing are happening in a very complex system which by definition has to avoid modes. We are now moving into the object programming arena, and since Aranda is a tool that can handle either procedural or object code, that versatility is a key feature in allowing us to easily change environments and even programming languages and yet let us keep the same code management tools.

MacApp is still a reasonably large mystery, but in Aranda we now have a tool that can help us find out what goes where and why. My reason for investigating Aranda over a year ago was because of the system I mentioned above; Aranda has done a very good job of retroactive documentation, made necessary by the loss through theft of our original documents. Just having the ability of finding every place a routine is used or a variable is modified has been an enormous help. These, by the way, are the kind of basic operations we found ourselves doing most often, more then generating Notes from various identifiers. The balance of power shifts somewhat with a MacApp-based system, but no matter what kind of programming environment is being used, some of the same questions are going to be asked.

MacApp and Aranda make a powerful combination because although design specifications and documentation are available, the code was still written by someone else whom you can't just call up and ask questions of. Any tool that can speed analysis of code is a powerful friend to have.

Aranda is the kind of tool that will be used differently by different people and different sized teams, and this is indicative of its versatility. It's more of a revolutionary than an evolutionary tool. It allows millions of lines of pre-existing code to be digested, maintained, and even more importantly, reused. In the next few years Aranda and other tools will become as integral a part of the software development environment as compilers are today. I'm only surprised that it's taken so long for software engineers to start making tools for themselves that are as powerful as those they make for almost every other industry.

Enhancements

One feature missing from this release of Aranda is multiple windows. Fortunately there are simple intuitive navigation tools for moving between various reports and up and down folder hierarchies. Soft-Set is planning to release a multiple window version of Aranda in November, which will greatly enhance the usability of the program. We should see a C version early in September and a separate C ++ version about a month later. (The reason for separate versions is because of a difference in reserved words between C and C++.) Other improvements on the horizon are interactive tabular views of reports, automatic updates of an entire project through a single command, improved speed, and new testing tools including a Coverage Analysis Profiler. In the works also is a COBOL version for those unfortunate souls still using it.

Summary

If you have an aversion to painstaking manual documentation of code, need to bring people up to speed on a project, are about to dive into some serious maintenance, or are just plain writing code, Aranda is worth a look. Aranda can be used effectively at most stages of the software life cycle, particularly where reuse of code is a factor. It provides an excellent way of exploring existing code and bringing new members of a project up to speed quickly.

Aranda is currently available for Apple's MPW Pascal and Symantec's THINK Pascal compilers. All of my own testing has been under MPW. Aranda runs under both Finder and MultiFinder; a 68020 or 68030 Macintosh with a minimum of two megabytes of RAM is required.

Aranda is available from:

Soft-Set Technologies, Inc.
1847 W. Broadway, #301
Vancouver, B.C. V6J 1Y6

Phone: (604) 734-1622
Fax: (604) 733-5294
AppleLink: SoftSet

Pricing is $645 and discounts are available for purchases of multiple units. Educational institutions get a hefty discount and a special student version for projects of less than 5,000 lines of source is available for $50. A limited-life demo disk is also available for $19.95.

Soft-Set provides free tech support for 30 days and free updates for 12 months following purchase.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links... | Read more »
Price of Glory unleashes its 1.4 Alpha u...
As much as we all probably dislike Maths as a subject, we do have to hand it to geometry for giving us the good old Hexgrid, home of some of the best strategy games. One such example, Price of Glory, has dropped its 1.4 Alpha update, stocked full... | Read more »
The SLC 2025 kicks off this month to cro...
Ever since the Solo Leveling: Arise Championship 2025 was announced, I have been looking forward to it. The promotional clip they released a month or two back showed crowds going absolutely nuts for the previous competitions, so imagine the... | Read more »
Dive into some early Magicpunk fun as Cr...
Excellent news for fans of steampunk and magic; the Precursor Test for Magicpunk MMORPG Crystal of Atlan opens today. This rather fancy way of saying beta test will remain open until March 5th and is available for PC - boo - and Android devices -... | Read more »
Prepare to get your mind melted as Evang...
If you are a fan of sci-fi shooters and incredibly weird, mind-bending anime series, then you are in for a treat, as Goddess of Victory: Nikke is gearing up for its second collaboration with Evangelion. We were also treated to an upcoming... | Read more »
Square Enix gives with one hand and slap...
We have something of a mixed bag coming over from Square Enix HQ today. Two of their mobile games are revelling in life with new events keeping them alive, whilst another has been thrown onto the ever-growing discard pile Square is building. I... | Read more »
Let the world burn as you have some fest...
It is time to leave the world burning once again as you take a much-needed break from that whole “hero” lark and enjoy some celebrations in Genshin Impact. Version 5.4, Moonlight Amidst Dreams, will see you in Inazuma to attend the Mikawa Flower... | Read more »
Full Moon Over the Abyssal Sea lands on...
Aether Gazer has announced its latest major update, and it is one of the loveliest event names I have ever heard. Full Moon Over the Abyssal Sea is an amazing name, and it comes loaded with two side stories, a new S-grade Modifier, and some fancy... | Read more »
Open your own eatery for all the forest...
Very important question; when you read the title Zoo Restaurant, do you also immediately think of running a restaurant in which you cook Zoo animals as the course? I will just assume yes. Anyway, come June 23rd we will all be able to start up our... | Read more »
Crystal of Atlan opens registration for...
Nuverse was prominently featured in the last month for all the wrong reasons with the USA TikTok debacle, but now it is putting all that behind it and preparing for the Crystal of Atlan beta test. Taking place between February 18th and March 5th,... | Read more »

Price Scanner via MacPrices.net

AT&T is offering a 65% discount on the ne...
AT&T is offering the new iPhone 16e for up to 65% off their monthly finance fee with 36-months of service. No trade-in is required. Discount is applied via monthly bill credits over the 36 month... Read more
Use this code to get a free iPhone 13 at Visi...
For a limited time, use code SWEETDEAL to get a free 128GB iPhone 13 Visible, Verizon’s low-cost wireless cell service, Visible. Deal is valid when you purchase the Visible+ annual plan. Free... Read more
M4 Mac minis on sale for $50-$80 off MSRP at...
B&H Photo has M4 Mac minis in stock and on sale right now for $50 to $80 off Apple’s MSRP, each including free 1-2 day shipping to most US addresses: – M4 Mac mini (16GB/256GB): $549, $50 off... Read more
Buy an iPhone 16 at Boost Mobile and get one...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering one year of free Unlimited service with the purchase of any iPhone 16. Purchase the iPhone at standard MSRP, and then choose... Read more
Get an iPhone 15 for only $299 at Boost Mobil...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering the 128GB iPhone 15 for $299.99 including service with their Unlimited Premium plan (50GB of premium data, $60/month), or $20... Read more
Unreal Mobile is offering $100 off any new iP...
Unreal Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering a $100 discount on any new iPhone with service. This includes new iPhone 16 models as well as iPhone 15, 14, 13, and SE... Read more
Apple drops prices on clearance iPhone 14 mod...
With today’s introduction of the new iPhone 16e, Apple has discontinued the iPhone 14, 14 Pro, and SE. In response, Apple has dropped prices on unlocked, Certified Refurbished, iPhone 14 models to a... Read more
B&H has 16-inch M4 Max MacBook Pros on sa...
B&H Photo is offering a $360-$410 discount on new 16-inch MacBook Pros with M4 Max CPUs right now. B&H offers free 1-2 day shipping to most US addresses: – 16″ M4 Max MacBook Pro (36GB/1TB/... Read more
Amazon is offering a $100 discount on the M4...
Amazon has the M4 Pro Mac mini discounted $100 off MSRP right now. Shipping is free. Their price is the lowest currently available for this popular mini: – Mac mini M4 Pro (24GB/512GB): $1299, $100... Read more
B&H continues to offer $150-$220 discount...
B&H Photo has 14-inch M4 MacBook Pros on sale for $150-$220 off MSRP. B&H offers free 1-2 day shipping to most US addresses: – 14″ M4 MacBook Pro (16GB/512GB): $1449, $150 off MSRP – 14″ M4... Read more

Jobs Board

All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.