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.


Messages - Hazzelbanger

Pages: [1]
1
Bring it on please

2
General Board / Control table of contents reporting level
« on: May 24, 2016, 02:11:47 pm »
I have looked through the forums at how to restrict the TOC to level 4 even though the document contains heading levels above 4. The responses to the question tend to indicate changing the template text style to something other than "Heading X". This does not seem right as the document should retain automatically generated heading numbers. Is there some special way of achieving the same effect but not using Heading styles?

Ultimately it would be nice to achieve the same outcome when using Word TOC creation, i.e. set the TOC level when creating the TOC. EA has an option to adjust heading levels such that anything above Level 4 is reported as Level 4 in the TOC. I don't see the point of this feature? I would prefer this feature to function in the same way as Word "show levels" control.

3
General Board / Re: Generating reports for nested elements
« on: May 18, 2016, 01:54:06 pm »
I have solved my problem using a mixture of template selectors and template fragments.

4
General Board / Generating reports for nested elements
« on: May 16, 2016, 10:47:18 am »
I am attempting to generate an RTF document that reports information for nested elements (Parent->Child-1->Child-1.1). However, I can only report info for Parent and Child-1, even though the RTF template has enabled "Package.Element.Child Elements" and "Package.Element.Embedded Elements". N.B. for testing I have used nested elements of type Class. However, my design model has nested elements of type Component, Port and Part.

My template spec is:

Code: [Select]
package>
child packages>
element>
{Element.Name}
<element
embedded elements>
      Embedded: {EmbeddedElement.Name}
<embedded elements
child elements>
      Child: {Element.Name}
<child elements
<child packages
<package

If I remove the line "Child: {Element.Name}" the nested elements appear in the report.

Is this a limitation with EA or do I need to change something for nested elements to use a different reporting format, eg template selectors or fragments?

EA Version: 11.0.1107

5
General Board / Template selector for DDS
« on: January 22, 2016, 04:56:48 pm »
When I use a Template Selector Custom Query (see below) for Data Distribution Service  types it does not work. It simply reverts to the default template fragment. I have been able to use custom queries for other normal UML types. To determine the data type I simply select the element in the Project Browser and examine the Properties window. Any clues?

Code: [Select]
DataWriter::My_DDS_Fragment
DataWriter:dataWriter:My_DDS_Fragment
Default::My_Default_Fragment

Regards John


6
General Board / Create relationship matrix in RTF report
« on: November 06, 2015, 01:01:49 pm »
I would like to generate a requirements tracability matrix in my RTF report using model documents. However, the EA doco is not clear to me on how to achieve it.

In my model I have:
  • A package (Section5) that contains a matrix specification.
  • A model document that includes Section5 package
  • An RTF template (Trace) that contains "relationship matrix>" section.
  • The model document RTFTemplate property equals Trace

How do I get the contents of matrix into the report?

What I would like is a table with each row representing a requirement and columns that represent the components that trace to the requirement.

7
General Board / Resue element template in RTF
« on: October 16, 2015, 04:58:35 pm »
I am attempting to create a report template for my model.

The model package structure is
Package
  class_1
     nested_class_1-1
     nested_class_1-2
  class_2
     nested_class_2-1
     nested_class_2-2

I would like to create a report template with the following layout:

Package name
List of parent classes within the package
All diagrams within the package
For each parent class in the package
      Display parent class name
      For each nested class of the parent class
            Display name of nested class
            For each attribute of nested class
                  Display attribute name, notes

Two problems:
1. I don't seem to be able to include the <element> template more than once.
2. I am not able to extract the attributes of the nested classes.

Any help is greatly appreciated.

Regards John

8
Uml Process / Re: Modelling C++ templates??
« on: February 25, 2010, 09:27:28 am »
The diagram is missing the details outlining what types are used to instantiate the template. To achieve my aim I have edited the generalisation link and set the link name to " T->int, U->char", and set the stereotype to <<bind>>.  Before I performed these steps it was not possible for the reader of the printed diagram to determine the template instantiation. I was hoping I wouldn't have to perform this step after reverse engineernig in the code.

9
Uml Process / Re: Modelling C++ templates??
« on: February 23, 2010, 11:06:24 pm »
Unfortunately help page is the one I referred to in my initial post. I don't find it very useful.

Hazzelbanger

10
Uml Process / Modelling C++ templates??
« on: February 23, 2010, 03:54:53 pm »
Hi,

The user guide has minimal details on the modelling of templates. So I wrote the following C++ code and reverse engineered it in (EA version 7.1.828).

<Code>

template<class T, class U> Foo
{
public:
    T d1;
    U d2;
};

typedef Foo<int, char> FooType;

<Code>

The reverse engineering created the Foo class and the FooType typedef. When I dragged them onto a class diagram it displayed FooType to be inherited from Foo. However, the diagram does not display the template binding arguments for the typedef. So how does a reader of the diagram determine what template arguments are defined by FooType?

If I open the proptery details for FooType, EA indicates FooType is an Instantiated template with the correct arguments. But why don't these arguments appear on the diagram?

Do I need to tick a setting somewhere to make this happen?

Is there more doco available on dealing with C++ templates?


TIA Hazzelbanger

Pages: [1]