in reply to UML to Perl

Use yEd/Umbrello/Dia/UML Pad... to draw a diagram, then use

ummf -e perl -o gen test/test1.xmi

To generate Perl code in directory gen from test/test1.xmi.

Replies are listed 'Best First'.
Re^2: UML to Perl
by Anonymous Monk on Jun 17, 2011 at 07:28 UTC
    Actually, you'll want to try ArgoUML with ummf

      that was a helpful tip. thanks! Just have one more question on this tip - i downloaded that module UMMF from CPAN - i did not find any executable named ummf in that download. The syntax for using that driver is shown like running an exe named ummf with a parameter -e. Should I build that executable using make or something? Pls help.


        I linked to http://search.cpan.org/perldoc?ummf

        It redirects to http://search.cpan.org/~kstephens/UMMF-1.02/bin/ummf

        When you install the module, you also install ummf , ex

        Installing C:\perl\site\5.12.2\bin\argo2xmi Installing C:\perl\site\5.12.2\bin\argo2xmi.bat Installing C:\perl\site\5.12.2\bin\argo2xmi.pl Installing C:\perl\site\5.12.2\bin\files2dirs Installing C:\perl\site\5.12.2\bin\files2dirs.bat Installing C:\perl\site\5.12.2\bin\files2dirs.pl Installing C:\perl\site\5.12.2\bin\uml2xmi Installing C:\perl\site\5.12.2\bin\uml2xmi.bat Installing C:\perl\site\5.12.2\bin\uml2xmi.pl Installing C:\perl\site\5.12.2\bin\ummf Installing C:\perl\site\5.12.2\bin\ummf.bat Installing C:\perl\site\5.12.2\bin\ummf.pl
        See A Guide To Installing Modules

        In any case, I'm not sure how truly helpful this tip was, UMMF has a few portability related bugs, it won't work out of the box on win32

        Hi Ananymous Monk! Looks like you wanted to reply but the message has come out empty. Would be great if you can help me with this. Thanks!

        Hi, I am also getting some errors while running the same module. The error msg says:


        Base class package "Template::Base" is empty. (Perhaps you need to 'use' the module which defines that package f +irst, or make that module available in @INC (@INC contains: C:/Perl/site +/lib C:/Pe rl/lib .). at C:/Perl/lib/Template.pm line 25 BEGIN failed--compilation aborted at C:/Perl/lib/Template.pm line 25. Compilation failed in require at C:/Perl/lib/UMMF.pm line 304. BEGIN failed--compilation aborted at C:/Perl/lib/UMMF.pm line 304. Compilation failed in require at (eval 4) line 2. BEGIN failed--compilation aborted at (eval 4) line 2. BEGIN failed--compilation aborted at C:\Perl\bin\ummf.pl line 146.


        pls help!