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 - jepessen

Pages: 1 2 [3] 4 5
I've disabled the GarbageCollect (autodelete) option and now this is the diagram (I've also fixed the name of the object passed to Configuration instance):

It's correct now or there's something else that I must fix?

I've found the garbage option and it's enabled, so with this option active I obtain the last diagram.

Ok I've set the lifecycle property and set lifelines (they were already lifelines, but unnamed).

Now this is the diagram:

I don't know if it's correct that the lifeline if the Sink objects ends before I set it to Configuration instance. I've tried to increase the length if ConsoleSink lifeline but with no result. What I should do now?

Uml Process / [Sequence Diagram] Setting an object to another object
« on: June 28, 2016, 08:33:13 pm »
This is my situation:

  • I've a Sink class in which I can set some property
  • I've a static Configuration class. This class has a method addSink that takes a Sink as argument and deep-copy it inside the class instance.

I want to create a sequence diagram in which I set an instance of Sink (named ConsoleSink) and then pass it as argument of my Configuration class instance.

This is what I've done:

I don't know if I'm doing it correctly. I want to show in Sequence digram first that I create and set the Sink class instance, and then I pass it as argument in Configuration class instance.

This is the correct way to do it?

General Board / Re: Export theme to another pc
« on: June 23, 2016, 05:46:42 am »
Found. thank you.

General Board / Export theme to another pc
« on: June 22, 2016, 05:55:24 am »
I've created a new theme for diagrams. I've saved it as new Diagram Theme (right click on diagram->Advanced->Set Theme->Themes->Save).

How can I export this theme and import it on another PC so I can use it in both my desktop and my laptop?

Ok thanks. I'll try to use them even if I at start it will be difficult for me.

I usually group them into separate packages, but I'd like to know what are the advantages if I use requirement properties or custom meta-type. Can you explain it to me please? I'm just learning everything of EA...

I'm trying to use EA in order to write requirements for a library that I'm developing.

I want to write requirements that are related to its implementation and not its usage, like:

  • It must support Visual Studio 2015;
  • It must be built at 64 bit;
  • It must use log library of Boost;
  • Boost library must be forward declared in order to avoid to include its headers in library usage;
  • etc etc...

I've seen different types of requirements in EA but I don't understand which one fits better this kind of requirements. What should I use?


I'm continuing to create a new language that clone c# and change some format options, in order to leave the original untouched.

I've seen that somewhere, i.e. in Class Body, the "Stereotype overrides" list is not empty, and it contains two items: enumeration and struct. By selecting them, I can see some code.

I want to do the same thing in my new language, so I go to my Class Body, and then click on "Add new Stereotyped override". I can select enumeration, and by selecting it in the list, I can add the original code.

My problem is that I cannot do the same thing for the struct, because I cannot select "struct" in the widget that appears when I click on the button:

How can I add struct class in Stereotype Overrides, and also other that are not present in the widget list, like the others tha I can see in "Operation Declaration" for example?

General Board / Re: Implement C# property in interface
« on: June 18, 2016, 07:08:20 am »
Ok now I understand. Thanks for the explanation.


I want to create a C# class that a method that returns an IEnumerable, something like:

Code: [Select]
IEnumerable<string> getStrings().

I've seen that I can return a string, but there's a default way to return a collection?

General Board / Re: Implement C# property in interface
« on: June 18, 2016, 05:37:09 am »
This is what I set now:

And now this is the interface in EA:

And this is the code:

Code: [Select]
namespace VCS {
  public interface Repository  {

  string Remote{
}//end Repository

}//end namespace VCS

The code seems correct now, thanks. But since it's the first time, I'd like to know if it's correct the UML class representation for the property, since I see the property twice.

I've created a new language in Code Template Editor (with a new product name) in order to experiment a bit.

Now I want to remove it but I don't find a way to do it. How can I remove a user-defined language from it?

General Board / Implement C# property in interface
« on: June 15, 2016, 07:26:06 am »
I want to implement a property in a C# interface, so when I generate the code I obtain something like:

Code: [Select]
public interface IMyInterface
   string MyString { get; set; }

and in inherited classes:

Code: [Select]
public class MyClass : IMyInterface
   public string MyString { get; set; }

I've tried to add as attributes of interface my properties

But when I generate the interface I obtain the following code:

Code: [Select]
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace MyNamespace {
public interface IMyInterface  {

}//end IMyInterface

}//end namespace MyNamespace

What's the correct way to implement properties in interfaces?

Pages: 1 2 [3] 4 5