Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - cem

Pages: [1]
1
General Board / single namespace for all packages below one
« on: February 21, 2011, 10:13:11 pm »
Hi,

I need to set a common namespace for all packages below a package.
Let's say I have something like:
P1
  P1_1
    Class1
  P1_2
    Class2
    P1_2_1
      Class3

I need Class1, Class2 and Class3, all have the namespace P1, not P1.P1_1, P1_2, P1_2_1, etc...

Is it possible? Or is there any means to set explicitly set namespace of the elements?

Thank you...

2
General Board / xsd transformation - generate tagged values
« on: February 10, 2009, 08:13:30 am »
Hi,

I'm trying xsd transformation to use xsd as intermediary to be fed into other "home-built" transformators. I'm using tagged values to specify some properties processed by those transformators. However, I couldn't find a way to generate tagged values in xsd generated by EA transformation. Any idea?

Thank you...

3
General Board / Documentation - Selecting specific tagged values
« on: January 22, 2009, 07:30:01 am »
Hello,

I have defined an UML profile containing a stereotype extending class to represent my domain objects. I have also added some tagged values to new stereotype as enumerations by defining them in the profile.

Now, I would like to generate the documentation for the packages holding my domain objects. The template I have to use dictates some tagged values to be displayed in some format and others in another format. However, element taggedValue in the template definition list all tagged values of the element with all possible values for each tagged value.

How could I select a specific tagged value in the template to include its name and only current value? Anything like "element.taggedValue('taggedValueName')"? ...or does it seem nonsense...

Thank you!

4
General Board / Code gen. - all referenced types to same file
« on: January 30, 2009, 07:45:31 am »
Hi,

I have a language (actually not a programming language, a type definition language) that has no keyword or macro like #include in C/C++ or import in Java. That is, I have to give all related type definitions in the same file.

Let's say I have a enumeration E having value ev1, ev2, ev3. I have a type T which includes an integer field and a field of type E. The type definition file for T looks like:

//beginning of the type T definition file
Enum E
{
      e1,
      e2,
      e3
}

Type T
{
   E e,
   integer i
}
//end of the type T definition file

I wish to generate this type definition file from EA diagrams.
Enumeration E and Class T can be defined in class diagram but when it comes to code generation... These two definitions go to different files (which is so normal in other languages). However, I need to generate code for these to types into the same file. To generalize, I need to generate the codes for the classes into the same file in the correct order of type referencing, i.e. If A uses B which uses C, then the file contains first C, then B and last A.

Any clue that you may give me?

Thank you...

5
General Board / issue search & report
« on: November 06, 2008, 09:30:26 am »
Hello,

I want to use EA to track issues. To accomplish this, I tried to relate "Actor"s denoting developers to issues via realization as mentioned in EA Help - Assign People to Defects or Changes. I also added tagged value to the issues denoting their status (Open, assigned, ready to verify, closed, etc...). Now I want query the issues like: Find the issues assigned to  developerX and issue's status is ready to verify. Any idea, how could I define such a search?

Another problem I have on the "issue" is how to take metrics like
-duration in which the issue stayed in the status assigned (how long did it take to close that issue)
-number of issues having priority higher than low
-number of issues per package
etc etc...
Any advice on how to write or build such queries?

Thanks.

6
General Board / RTF Template - Element filtering
« on: November 06, 2008, 08:06:53 am »
Hi,

How could I filter the elements based on element's stereotype while document generation? I mean, how could I define that only the elements having stereotypeX and stereotypeY shall be included in the result document? The question may be reproduced for tagged values: How to include/exclude elements having taggedValueX = some_value?

Thank you...

7
Uml Process / #including dependencies
« on: April 08, 2011, 06:37:25 pm »
Hi,

Is it possible to have EA C++ code generator to create #include directive for classes having dependency connector. I mean, I have ClassA and ClassB. ClassB is dependent on ClassA, that is, a dependency connector exists from ClassB to ClassA. When I generate the code, ClassB file has no line #include "ClassA". Is it possible to have this line, for example by tweaking code generation template?

Thank you...

8
Automation Interface, Add-Ins and Tools / Scripting & GUI
« on: January 02, 2011, 08:44:19 pm »
Hi all,

Is it possible to implement a GUI in vbscript or jscript in EA? If possible, could you give tips on that?

Thank you!

9
Hi,

Is it possible to pass argument list to the template called in "%list" macro. We can pass argument to a template like "Class__NewTemplate( $arg1, $arg2 ). But %list=Attribute__NewTemplate( $arg1 ) @separator=" " @indent=" "% seems not to work. Any idea?

Thanks...

10
Automation Interface, Add-Ins and Tools / ObjectType.otRequirement
« on: October 30, 2008, 08:08:32 am »
Hi,

I'm trying to access requirement elements  (created via Custom Toolbox) in a package. When I try:

foreach (EA.Element element in package.Elements)
{
                if (element.ObjectType == EA.ObjectType.otRequirement)
                {
                    // some code...
                }
 }

I can't get any requirement since all elements have object type otElement. Although I see Requirements while debugging, their object types are otElement, not otRequirement.

I can't figure out what is wrong and can't find another way to reach to the requirements. Do you have any idea?

Thank you...

Pages: [1]