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

Pages: [1] 2
1
Suggestions and Requests / Re: Python support
« on: July 15, 2003, 04:53:31 pm »
Further still, the application of MDA should be considered (it's already mentioned a couple of times in the other EA forums.)

Ultimately, the meta-model describing your system can be passed through a set of templates to generate the desired source code.  These templates could be C++, Java, Python, bourne-shell, Perl, HTML, you name it.

I also recall the mention of using templates to change, among other things, the style of the code that should be generated.  This is just the tip of the iceberg.


2
Suggestions and Requests / Re: Attribute and Property names
« on: June 05, 2003, 07:00:35 pm »
sorry - before anyone flames me - I didn't realise I was in the wrong discussion forum.  I'm reposting to the other one.

3
Suggestions and Requests / Attribute and Property names
« on: June 05, 2003, 06:58:40 pm »
Is there anyway of changing the naming convention for attributes to include, say, "m_" as a prefix?  I know it can be set for associations, but I'd like to do it for just plain attributes that aren't referenced by a specific association.

I can do it if I name the attribute explicitly with the m_ prefix, but this just causes more work with the property methods.

The same applies for capitalisation of both the "Get/Set" and the attribute name embedded in the operation name.

Cheers, Rob.

4
General Board / Rendering external documents via the RTF Generator
« on: December 02, 2009, 01:22:21 pm »
Has anyone had any luck using the RTF generator (via a "model document", etc.) to include (aka. render) the contents of an external document (ie. still residing on a file-system and not an internally linked document)?

Some external content needs to be included, but also remain "editable" via WORD by other users who don't have EA. I can render an internally linked document artifact, but I can't see how to render something external.

Cheers, Rob.

5
General Board / InteractionOccurrence missing in project browser
« on: April 18, 2005, 10:13:22 pm »
I've had problems for some time now when moving diagrams within my model and have just found the problem.

If you have a sequence diagram with an InteractionOccurrence on it (a reference to another sequence diagram), move the diagram and its elements by multi-selecting the diagram and it's "owned" elements to another package/node and delete the original package, then the InteractionOccurrence is removed from the diagram.

This is caused by the fact that the InteractionOccurrence does not appear in the project browser for the diagram, and therefore, cannot be selected.  When you move the diagram and elements to a new location, the InteractionOccurrence is left behind, but hidden under the original package.  When you delete the package, you implicitly delete the InteractionOccurrence, which removes it from the diagram.

In many cases, it's easier for me to modify a copy of an existing diagram than to create one from scratch.

So, I copy diagram to clipboard, paste under a package (usually temporary for this exercise), then move the elements to a UseCase (since you can't paste a diagram to anything other than a package).

Does anyone know how to get around this problem?

I use this technique to identify UseCase realisations - associating sequence diagrams directly with the UseCase.   I would actually like to paste a copy of the diagram directly under the UseCase, rather than via this temporary package.

Cheers, Rob.

6
General Board / Re: SQL server initial connection
« on: July 01, 2004, 08:46:24 pm »
Quote
Hi, thanks for the reply, Ive found the SQL have installed the MySQL ODBC driver but am experiencing wierd errors surrounding SQL union calls.  To be insvestigated...


Hi Javaholic,

I've just gone through the MySQL install process and I'm getting what appears to be the same wierd sql/union problems when creating an element, opening a diagram, etc.  However, the database seems to be corect/intact.

Did you resolve you problem?  If so, can you post it?  Does anyone else have any suggestions?

Cheers, Rob. ???

7
General Board / Re: Specifying namespace for generated c++ code.
« on: December 02, 2003, 06:35:13 pm »
Hi Ben, using your instructions I've just tried to implement a C++ namespace environment that follows Java where each directory represents a new namepace and thus can be nested.

I'm now at a point where I don't think it is possible with the current release of EA.  In C# and Java you can introduce a namespace such as:

// c#
namespace a.b {
                               class x
                               {
                               };
}

or simply:

// java
package a.b;
class x
{
};

Unfortunately, you can't do this in C++ - yet.  You have to name the nestings each their own block:

//c++
namespace a {
   namespace b {
                               class x
                               {
                               };
   }
}

A reference to "x" would be qualified "a::b::x" (btw: the macro $packagePath only uses "." instead of "::").  There are work in the C++ standards community to be able to use the following sytax:

// (c++)++
namespace a::b {
                               class x
                               {
                               };
}
//note the continued use of "::" though!

Anyway, Ben, if there is any possible way of getting around this issue with the current implementation, macros, and templates, could you please post a solution.  Failing that, I guess we have to wait for the enhanced namespae support (is there a date for its availability yet?).

Cheers, Rob.

8
General Board / Re: Any plans for EA on Linux?
« on: August 04, 2003, 01:00:06 am »
Has anyone had any success with EA on linux via wine yet?  There have been a few posts on this subject so it seems there is an audience.

I have tried unsuccessfully, but I'm prepared to keep plugging away with suggestions from anyone out there who might be able to help.

So far, I've tried installing EA directly under wine, where the installer fails.  I've also tried loading it from a natively installed WinXP image, which also failed.

There have been numerous errors from each (which I won't list here for brevity).  Does have any hints or experience with wine on other applications that might be useful?

Cheers, Rob.

9
General Board / Python and Automation (for Python/COM people)
« on: July 07, 2003, 12:32:19 am »
I'm trying to get access to the automation service for EA via Pythin and am nearly there.  However, a big showstopper is that I get an error when I try to iterate through the "models" property of the repository.  I get the error message below (at end) complaining about "GetAt" not existing in the interface of the COM object.

I don't have a problem in VBscript within a Word Macro, so the Automation Server itself seems to be OK.  I'm sure it's just a python thing.

It does appear to be any collection, or rather, "DualCollection" as exposed through the COM interface ("authors", etc, have the same problem).

Any help would be greatly appreciated.

Thanks in advance, Rob.
----------------------------------------------------
error message from Python console below:
-------
Traceback (most recent call last):
 File "C:\Python22\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 307, in RunScript
   debugger.run(codeObject, __main__.__dict__, start_stepping=0)
 File "C:\Python22\lib\site-packages\Pythonwin\pywin\debugger\__init__.py", line 60, in run
   _GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
 File "C:\Python22\lib\site-packages\Pythonwin\pywin\debugger\debugger.py", line 591, in run
   exec cmd in globals, locals
 File "H:\backups\word.py", line 20, in ?
   m = modelList.GetAt(0)
 File "c:\Python22\Lib\site-packages\EnterpriseArchitect.py", line 856, in GetAt
   ret = self._oleobj_.InvokeTypes(0, LCID, 1, (9, 0), ((2, 1),),index)
com_error: (-2147352573, 'Member not found.', None, None)
>>>

10
General Board / convert classes to instances on sequence diagrams
« on: July 07, 2003, 12:20:18 am »
I've created a sequence diagram with classes rather than instances: is there anyway to easily convert them into instances without having to recreate the diagram and without affecting the original class definition?

11
General Board / Attribute and Property Names
« on: June 05, 2003, 07:03:00 pm »
Is there anyway of changing the naming convention for attributes to include, say, "m_" as a prefix?  I know it can be set for associations, but I'd like to do it for just plain attributes that aren't referenced by a specific association.

I can do it if I name the attribute explicitly with the m_ prefix, but this just causes more work with the property methods.

The same applies for capitalisation of both the "Get/Set" and the attribute name embedded in the operation name.

Cheers, Rob.

12
Bugs and Issues / Components exposing (provided/required) interfaces
« on: November 13, 2009, 05:23:50 pm »
I'm having trouble working out the best way to model an existing system with components that expose interfaces, either provided or required. This issue is the traceability back to the original interface element....

I have an interface interface1, and 2 components component1 and component2.

I have created an exposed interface on component1: when prompted, I select interface1 from the list - the provided (lollipop) is annotated with "interface1". I do the same (but opposite) for the required (socket) interface on component2.

Then, I create a dependency from the required interface to the provided interface:



My problem is that if I then open up the properties of the interface1 (as the original element specification, not the provided/required interface) I get no references to either of the components in the "links" tab. If I change the name of the original interface in the project explorer, the annotations on the diagram change along with it - so there must be a relationship there somewhere.  In the end, it means the relationship matrix doesn't show the associations that I'd expect.

Can anyone shed some light on what I'm doing wrong?

Cheers, Rob.

13
Bugs and Issues / RTF document generation: list of tables/figures
« on: April 09, 2009, 10:30:02 am »
Hi, I'm trying to get the RTF document generated for my model to contain a suitable caption for all tables and diagrams inserted into the document, and then have a "list of tables" and "list of figures" on the contents page.

I've not found an explicit way of inserting the tables into the template, so I've performed a copy&paste from a real RTF document that has them. I've done a similar thing for the "captions" to tables and diagrams/figures.

It seems to work - mostly.  The tables are inserted into the output RTF file, but table numbers are repeated (not unique), and I don't get any entries for the diagrams.

My text for a table caption is:
    Table { SEQ Table \* ARABIC } - table name

and my text for a figure/diagram caption is:
    FIgure { SEQ Figure \* ARABIC } - diagram name


Has anyone got experience in this area?

Cheers, Rob.

14
Uml Process / Re: Dodaf and EA
« on: October 17, 2006, 11:49:58 pm »
Quote
Hey Guys, FYI

Sparx is
a) working on a MoDAF implementation (This is the UK equivalent to DoDAF). We will publish the profile soon.

b) working on a DoDAF solution, addressing some of the non-UML artifact aspects - This will be available as an addin over (hopefully) the next few months.


Hi EA folks - any progress on DoDAF/MoDAF, etc.?

15
Neil,

Thanks heaps - works a treat.

The C# code to access this is:

Code: [Select]

// repository = a handle to the repository object
// element = represents the interaction occurrence on the diagram

EA.Diagram interactionOccurrence = repository.GetDiagramByID(int.Parse(element.get_MiscData(0)));


Cheers, Rob.

Pages: [1] 2