Skip to main content



      Home
Home » Modeling » EMF » EMF CodeCount
EMF CodeCount [message #499273] Fri, 20 November 2009 11:21 Go to next message
Eclipse UserFriend
Hello,

I am making a code metrics (Logical SLOC) for java files that contain EMF generated codes.

I have counted the logical SLOC of generated lines and the total lines.

I understand that failing to account for auto-generated code in EMF throws the COCOMO model way off. A 30 minutes EMF model may easily generated KSLOC.

So is there a way to estimate the effort for the generated?
Re: EMF CodeCount [message #499284 is a reply to message #499273] Fri, 20 November 2009 11:42 Go to previous messageGo to next message
Eclipse UserFriend
Mark,

I've never given this much thought. You might take some sample models,
count the number of lines in the Ecore file and compare that to the
number of lines in the generated model project. You might avoid
counting methods with @generated on them...


Mark Cheung wrote:
> Hello,
> I am making a code metrics (Logical SLOC) for java files that contain
> EMF generated codes.
>
> I have counted the logical SLOC of generated lines and the total lines.
>
> I understand that failing to account for auto-generated code in EMF
> throws the COCOMO model way off. A 30 minutes EMF model may easily
> generated KSLOC.
>
> So is there a way to estimate the effort for the generated?
>
Re: EMF CodeCount [message #499332 is a reply to message #499284] Fri, 20 November 2009 15:51 Go to previous messageGo to next message
Eclipse UserFriend
ok thanks


By the way, why would I avoid @generated tag.

Re: EMF CodeCount [message #499337 is a reply to message #499332] Fri, 20 November 2009 16:49 Go to previous message
Eclipse UserFriend
Mark,

That's code that wasn't written by hand but was derived from the
information in the much smaller model.


Mark Cheung wrote:
> ok thanks
>
>
> By the way, why would I avoid @generated tag.
>
>
Previous Topic:Advanced Drag & Drop
Next Topic:[net4j] ClassNotFoundException when transferring instances of custom serializable class
Goto Forum:
  


Current Time: Sat Nov 08 04:33:31 EST 2025

Powered by FUDForum. Page generated in 0.04290 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top