Instant Generator

Written Date: October 20, 2006
User Rating: / 0 Hits: 1,393
Add your comment

In Visual Paradigm for UML and Smart Development Environment, there is a feature named Instant Generator for generating source from class model. Instant Generator supports a set of language such as C++ and Java. The below steps will describe the C++ source generation.

Supporting Language

The below languages are supported by Instant Generator.
• Java
• C#
• VB .NET
• PHP
• ODL
• ActionScript
• IDL
• C++
• Delphi
• Perl
• XSD
• Python
• Objective-C

Classes and Relationships Modeling

Class model is required before generation. To provide class model, open an existing VP project or model a new one.

Instant Generator Dialog

Instant Generator has a primary user interface called Instant Generator Dialog. It providing almost all interface of Instant Generator such as configuration, preview and generation. On top menu, click Tools > Instant Generator > Instant Generator... to open Instant Generator Dialog.

General settings

As configuration is simplified, only three values are required to input even first time generation.
1. Select Language to specify which language of source will generated for. In this example, C++ is selected.
2. Choose class(es) or package(s) which will be included of the generation.
3. Select output path for placing generated source.

Language specified options

For each language, specified options may provided for additional control. These options are organized into two kinds of options, Basic options and Advanced options.
Basic options
Those common change options are grouped in Basic options and allow to edit directly in Instant Generator Dialog.
Advanced options
Advanced options contains all options of the language including options in Basic options. To edit Advanced options, click Advanced Options in Instant Generator Dialog.

Preview or Generate

As different values of options will produce different generation result, Instant Generator provides preview of generation result before the actual generation.
•  Press Preview in Instant Generator Dialog to preview generation result.
•  Press Generate in Instant Generator Dialog to perform actual generation.
•  While the generation, the progress is displayed in Generator Output.
•  The generated sources are generated in output path.
•  Open output folder can simply perform by pressing Open output folder in Instant Generator Dialog.
•  To close Instant Generator Dialog, simply press Close.

Samples

Click on the link below to download:
• The example VP project.
instantgenerator_sample.zip (13 KB)
• The generated C++ of example.
instantgenerator_results.zip (6 KB)

Related Resources

• Visual Paradigm for UML Home
http://www.visual-paradigm.com/product/vpuml/
• DB Visual ARCHITECT
http://www.visual-paradigm.com/product/dbva/
• SDE Home
http://www.visual-paradigm.com/product/sde/
• Download Free Community Edition of Visual Paradigm for UML
http://www.visual-paradigm.com/product/vpuml/vpumldownload.jsp?edition=ce
• Download DB Visual ARCHITECT
http://www.visual-paradigm.com/product/dbva/dbvadownload.jsp
• Download SDE
http://www.visual-paradigm.com/product/sde/sdedownload.jsp
Software Maintenance VP-UML User's Guide

Rate this Article

Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).

Comments (0)

Write comment

Rating

Comment

Enter the calculation result

security code