Book a Demo

Author Topic: generating requirements as part of class code  (Read 2295 times)

sankaran raman

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
generating requirements as part of class code
« on: March 16, 2010, 10:21:49 pm »
Hi,
I am generating c# code from EA for my Design.
In Design i have reffered requirement using association link from my class.
while generating the code for the class, i would like to include requirements also.
As requirement is not part of the attribute for the class,i could not get the requirement in my class code.
kindly help me to include reuirements also in class code.

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: generating requirements as part of class code
« Reply #1 on: March 16, 2010, 11:53:26 pm »
Let's step further, as stated in my answer to your PM ...

g.

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: generating requirements as part of class code
« Reply #2 on: March 17, 2010, 01:05:39 am »
Quote from my 1st reply to ramans 1st PM:
Quote
Hi raman,

I'm afraid it's not possible to somehow accessing requirements linked to a class from code templates, at least I don't remember seeing s.th. appropriate in the field macros available for code templates.
What kind of requirements exactly do you want to use for code generation? (I didn't have a look at your thread so far, I'll do so).
Could you please republish my answer to the thread again, and then let's see what can be done for you.

Have a nice day until then,
günther

Quote from ramans PM
Quote
actually in my class design i have linked some of the Business requiremnents to methods in my class.
while genrating code for class/methods i want business requirement also should reflect in class/method code.
In code generation template how we can refer requirement in class body/decleration?
can you please help me on this?
Hi rahman,

Let's please discuss this publicly on the forum thread you've created. Please republish what we have so far!
I have just 1 brain, but there are a good number of others that might have helpful ideas about this problem.
Do you want just to generate comments or s.th. e.g. like numeric boundaries you've stored in the business requirements? May be using constraints would be more appropriate in the latter case.

Let's discuss on the forum, that's what its purposed for. Don't be shy asking silly questions or so (I've seen far sillier(?) ones than this one. It's not silly at all  ;) )

Best regards,
Günther
« Last Edit: March 17, 2010, 01:10:28 am by Makulik »