Re: ANN: Ada source code decorator



Georg Bauhaus wrote:

Martin Krischik wrote:

I think that this a full natural way of mapping Ada <-> UML - After all
'First and 'Last are called Attributes on both sides. And if you continue
the way of stereotypes then you can map all Ada feature to UML.

Is there a way to represent an access to a nested function?

You probably need two representations.

1) Often overlooked is UML support for free functions and procedures. The
only place I saw them actually used it the Rational Ada <-> Rational Rose
mapping.

2) You would need a Class of stereotype <<access>> and the procedure as
target type.

But then I don't know any UML tool that handles functions or procedure
pointer natively.

Having said that: You did reveal the real weakness for UML: UML is mostly
about the interfaces and not internals.

Martin
--
mailto://krischik@xxxxxxxxxxxxxxxxxxxxx
Ada programming at: http://ada.krischik.com
.



Relevant Pages

  • Re: Generate UML Models From Ada Code
    ... Studio all reverse Ada too. ... >major upgrade of WinTranslator that adds the capability of scanning Ada ... >source code and generating graphic UML class models in WinA&D. ... >WinTranslator is a reengineering tool that works with Excel Software's ...
    (comp.object)
  • Re: ANN: Ada source code decorator
    ... Ada program without extensions. ... to a tagged type? ... UML has both Classes and Packages. ...
    (comp.lang.ada)
  • Re: Question about OO programming in Ada
    ... > Somewhere, there is a well documented mapping of UML to Ada95, which is ... I could write an OO primer for Ada95. ... I have not seen any publically available tutorial type writeups for UML to ... Ada 95 mapping. ...
    (comp.lang.ada)
  • Re: Ada to XMI tool?
    ... tools that "reverse engineer" Ada 83 code ... but I know that Artisan will reverse-engineer Ada 95 ... (to Artisan's UML Ada-profile) ...
    (comp.lang.ada)