Re: n versioning



Ananth the Boss wrote:
thanks to all for ur interst in helping me.in my case the problem spec
is the same and the problem is independantly developed by three
different groups in three different languages. instead of coding the
same problem thrice in three different programming languages; is there
any approach like UML so that we can develop software models and from
that the code can be generated automatically?

Yes.

I can recommend this approach, but do not think it will come cheap or out of the box. Costs will only be slightly smaller than with standard programming (but much lower than n-versioning anyway).

I suggest you call Mentor and ask them to come and show you BridgePoint. They have code generators that will give you C, C++, Java and Ada. If they claim not to have Java or Ada, ask them again.

However having out of the box code generator is not what you want, trust me. It will give you a good starting point to learn how to make platform independent models. If you already know UML you will have to un-learn a lot a re-learn what object oriented analysis is really about.

For all full MDA projects the old saying "Uncertainty is not an option" is not to be taken mildly. What's not in your model will not be in your generated code.

After one or two years of (re)learning to model you will discover that you need a team maintaining the model compilers just as large as your modelling team. My experience is that by that time you will have a problem in convincing your management that this is true, after all you bought a model compiler so that you would have auto-generated code.

Another thing you will learn is that it's not the same people that should do the modelling as you may be used to. The modelling really should be done by the domain experts. So if your model is targeted at flight control it should be done by those who really know what flight control is about, not by your software staff. Other models you do may be targeted at communication and should therefore be done by experts in communication. Your software staff should possibly not be doing modelling at all. (See above)

I also suggest you hire a professional to get you started. The man my company has used is Leon Starr, but i'm sure there are alternatives. He is however a real pro at this.

The only drawback I have found using xtUML is it's weak support for mathematical stuff. Implementing some mathematical algorithms will be a real problem and may perhaps be better to do directly in the target language and bridge into your models.

If someone points you towards iLogix I would like to warn you a bit. Their tool does not support true platform independent modelling. You have to write action code in the target language, which in the end takes away the possibilities of simulating your code without first generating and it will allow your modellers to do stuff that should not be in your analysis models. And since your models then contains target specific stuff you will not have the possibility to change target language.

KennedyCarter also has a product of which I have no experience.

/Leif

.



Relevant Pages

  • Re: Problem with RTW
    ... I'm using Matlab Simulink R14SP3 and I'm compiling software with RTW for a Micro-Autobox board. ... A %implements directive must appear within a block template file and must match the %language and type specified ... target language different from that specified in your System Target ...
    (comp.soft-sys.matlab)
  • Re: Some kind of Lisp targeting J2ME?
    ... > code on the target language from good-looking code on the source ... > that you will have to build one different translator for each target ... If i give you a spec (the source program) i'm sure you are able to translate it to lots ...
    (comp.lang.lisp)
  • Re: Lets start again
    ... If each translator had one source and one target ... language, or some definite maximum, I would say to put it ... Whether you add Specialty to the tblContactDetails table ... >language) and German (target language), ...
    (microsoft.public.access.gettingstarted)
  • Re: Programming language Choices....
    ... prefer to do OO programming, but I must decide on which language I ... Which do you plan to write yourself, ... Which do your target language furnish, ...
    (rec.games.roguelike.development)
  • Re: VB vs. C++ vs. ???
    ... >> I think that for instance C++ is much more strickter as a language and you learn very much because there is no garbage collection. ... > In my idea is what you tell not based on OOP, however on limits of posibilities in creating more abstract use of OOP features in the languages C and C++. ... After a while you even don't need very much pointers in C++, mainly references and learn that also in C++ there is the possibility of automatic lifetime management. ... It is true that with higher level languages you abstract the parts of livecircle management with reference counted objects, which helps you modelling. ...
    (microsoft.public.dotnet.languages.vb)

Loading