Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers

ArticlesJava and UML Come Together


April 1998 / Javatalk / Small Footprint, Will Travel / Java and UML Come Together

Object International's Together Java offers the kind of cradle-to-grave development environment that -- if the object-orientation (OO) methodologists have their way -- we'll be seeing more of. Together Java merges the design and implementation phases of your Java programming project; one flows smoothly into the other. The idea behind Together Java is that the developer proceeds directly -- and I do mean directly -- from application design to implementation.

Together Java has the look and feel of an IDE. Pull down the File menu, and you can create a n ew project. Within a project are all the files and packages that comprise an application; this includes source code files, diagram files, and documentation. Together Java's documentation is all in HTML. (The 1.0 version that I tested included three documents: "Getting Started," "How To," and a user's guide.) Consequently, Together Java's search capabilities are limited. Unless you know which document your search target is in, you have to hunt through them all using your browser's Find command.

The visual-design portion of Together Java makes available four different kinds of visual diagrams: class, use-case, sequence, and state. Each diagram models a particular aspect of the system. The class diagram lets you model class structures as well as relationships between classes in the system. With the use-case diagram, you capture and illustrate the various ways in which an external agent (i.e., a user) can use the system. The sequence diagram (sometimes referred to as a messag e sequence chart) portrays the interactions between objects as the system carries out a particular operation. Finally, the state diagram is a BLTZFG state chart , which lets you model the behavior of the system.

As wonderful as Together Java's design-level modeling tools are, what really makes them shine is their close coupling with the implementation. That's a fancy way of saying that modifications you make to the visual models are reflected in the associated source code, and vice versa. Add a new operation to a class in the class diagram, and Together Java automatically writes an empty method into the associated source code file. Alter the name of a method in the source code file, and the altered name reflects upward, back into the visual model (the system alters the name in the class diagram).

When you create or open a project, Together Java launches a four-paned window. The upper left pane is the navigation pane, which allows you to browse through the different packages and fi les that make up a project. The upper right pane is the content pane, which is where Together Java draws the current diagram (which you choose by selecting the appropriate file from the navigation pane). The inspector pane, in the lower left-hand corner, provides a table-style view of the properties and attributes of whatever object is selected in the content pane. (For example, the properties of a method would be its returned data type, input arguments, visibility, and so on.) Finally, you can view and edit source code in the text pane, in the project's lower right-hand corner.

Object International is working hard at keeping Together Java in line with standards. First, its diagramming notation is based on the Unified Modeling Language (UML) standard. In addition, the package has the ability to generate documentation; it does so by producing standard HTML files. Finally, although I tested Together Java as a stand-alone package, you can configure it to operate as an add-in for Borland's JBuilder. This prov ides a single station for designing, coding, compiling, debugging, and documenting your Java application.

Object International (919-772-9350; fax 919-772-9389) recommends at least a 100-MHz Pentium CPU, Windows 95 or NT 4.0, and at least 48 MB of RAM for running Together Java. In addition, the installation guide suggests that you have 15 to 18 MB of available hard disk space. The commercial edition of Together Java is available for $2400. A so-called whiteboard edition (which lacks capabilities such as printing, HTML documentation generation, and some of the diagrams) is available free for the downloading from Object International's Web site, which is located at http://www.oi.com .


The State of the Chart

screen_link (40 Kbytes)

Together Java offers many UML-compliant diagramming tools. Pictured is a state-chart diagram for the current application.


Up to the Javatalk section contentsGo to previous article: Small Footprint, Will Travel
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network