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

Pages: 1 ... 12 13 [14] 15
Uml Process / Re: port and interface reference ???
« on: July 06, 2005, 10:05:42 am »

circle notation isn't UML2 native

I also haven't managed to get provided or required interface representations in EA 5

As I understand, interface is a public class method. So, if you have many public methods, you will have many interfaces. Port can be used Logically to group interfaces - port acts as a door, one or many interfaces can use one port.
Port is used in composite elements, when element's internal elements provide some interfaces for external use. Composite element acts as a proxy, so it needs to have the same interfaces as internal elements provide.

Uml Process / Re: Generalization vs Realization
« on: July 07, 2005, 10:26:33 am »

infrastructure and superstructure is right thing, but in most cases I find them too formal, too abstract. And without provided examples this is a source of many fallacies. Guess, not only for me ;)
This partly is corrected by books, but again - not everything is covered :-/

Uml Process / Re: Generalization vs Realization
« on: July 06, 2005, 10:35:15 am »
Realization doesn't create father-son relation as opposite in a generalization case.
And forward and backward engineering can't change this - if EA does it, it's the bug.

A -> B --> class A : public B{}
A is B also
A -> B --> class A{}
A isn't B

Generalization copies everything from father to son - attributes and methods, there is no way to prevent copying (but there is a way to forbid to use some father's features).
Realization requires copy only methods and their functionality, there is no requirement to copy attributes

Uml Process / Many parameters
« on: July 06, 2005, 07:09:23 am »

how to model variable number of parameters?

C++ has feature as ..., for example:

void Calc(...)
// extracting all params using va_list

Uml Process / Re: Project to make adding images easier
« on: May 16, 2005, 11:14:42 am »
actually, how to insert/attach picture into this forum? without uploading it somewhere else? ;)

Uml Process / Re: UML profiles
« on: May 19, 2005, 05:35:04 am »
Have found good article about UML profiles:
"An introduction to UML Profiles" by Lidia Fuentes and Antonio Vallecillo, University of Malaga, Spain

don't have link, but google easily will find it

However, don't know, how article is close to the UML2

Uml Process / Re: UML profiles
« on: May 06, 2005, 01:29:36 pm »

I also would like to read how profiles are defined (not depending on any UML tool) - more theoretical stuff

if you know background, it's only a matter of technique to implement in a tool

Uml Process / UML profiles
« on: May 06, 2005, 11:45:10 am »

Need information on how to create UML profile - tutorial with an examples would be great as other information. Are any profile changes in the UML2?
Also, is it possible somehow to use UML profiles with EA? if so, how.

Got into trouble to set up UML profile, so any help is appreciated.

Uml Process / Re: Association/aggregation inheritance
« on: May 16, 2005, 11:17:17 am »
short answer - yes, will inherit

Uml Process / Re: Associations vs Dependencies
« on: April 07, 2005, 02:20:40 am »
sargasso, could you explain, what do mean by saying, that  association is always structural?

An association is always structural.  In particular, as per the definition:
Quote:It has at least two ends represented by properties, each of which is connected to the type of the end.  

dependency also has two ends - as association (except N-association) do. About what properties? can't understand meening of the sentence end - every end is connected to something, there can't by free flying end or link not connected to anything.

Uml Process / Re: Associations vs Dependencies
« on: April 06, 2005, 02:22:22 pm »

not very descriptive UML2 definitions :) As most standards or proposals.

In both cases: association & dependency object uses another object - and if this object changes, then changes must reflect on the first object too.

I either can't say, what are (main) differences between association & dependency; use association in all cases ;-)

Have tried to search the net for good explanation, but haven't found :-/

Uml Process / Re: UML 2 MetaModel (Diagrams)
« on: May 06, 2005, 01:38:06 pm »
actually UML2 metamodels would be very useful, as OMG isn't providing them (yet).

And if you want to use transformations in the MDA style, metamodels are required (or XML schemas)

Guess, that tomorrow I'll need XML schemas, UML profile's XML schemas to do a transformation :-|

If any of UML2 metamodels already done, could they somehow shared?

I'll need class diagram metamodel

Uml Process / Re: generate code from opt, alt fragment
« on: April 06, 2005, 03:01:47 pm »

devil lives in details  ;D

Yeah, mbc is right - sequence diagram not always is an algorithm, may be only part of it. Even word algorithm isn't precise, doesn't cover all possible ways.

... but what is interaction - some part of the useful work done by the objects in simple words. Main word I would highlight - USEFUL. There is no point to show not useful interaction - objects work (interaction) is to perform certain actions to fulfil some useful functionality, which is required.
In other hand, what is algorithm - way how to achieve something: calculate square root, build bridge, call Paint() method and etc. Algorithm can take many steps to reach final point, but at the end we get what is planned.
Similar way sequence diagram represent steps to reach to something and this could be seen as an algorithm or part of it. Of course, algorithm could be very abstract or take only basic path - it depends on many things.

Signal isn't far away from the method/function calls. If to look more deeply, communication uses method/function calls + data (object as a whole consist of functions and data). To communicate using signal takes at least two method/function calls: send & receive + information on occured event. Signals carry information on occured event, but how such transfer is made? By synchronous/asynchronous method calls

Uml Process / Re: generate code from opt, alt fragment
« on: March 24, 2005, 02:23:21 pm »

code of asynchronous calls doesn't differ from the synchronous calls/signals - just calling other thread/process method

Though a little about class and sequence diagram synchronization - standard cases easily could be checked and synchronized.
signals/calls map to methods;
call/signal params map to dependencies/associations (need additional check for direction definition)
return values map to attributes;
guard conditions dissappear :) ;
entities as opt/alt/etc fragments dissappear (inside stuff remains and is mapped acording previous rules);
OCL2 constraints/expressions could provide multiplicity data, more check rules.

I think, that EA's feature to generate/sync sequence/class diagrams could be beneficial. It would be nice to get Sparx opinion on this subject

Further: sequence diagram could be synced with the state diagrams (remember guard conditions ;) )

Uml Process / Re: generate code from opt, alt fragment
« on: March 23, 2005, 03:56:21 pm »

come on, code could be (and should be) generated from a sequence diagrams.

What sequence diagrama represent - work algorithm, of course! what actions (sequences) are taken on various conditions (guard conditions in UML2).
Diagram must be drawn correctly, as it complement class diagram and vice versa. Classes methods actually are sequence diagram messages/signals, so by combining class and sequence diagrams a lot useful code should be generated

To provide complete algorithm for code generation from the sequence+class diagrams isn't an easy task, but it's doible.

There should be 2 (at least :) ) steps:
1) class diagram addition with the data from a sequence diagram (methods/atributes/associations) or sequence diagram addition with the data from a class diagram (methods/return values/parameters) or validation of class and sequence diagram with each other (there could be inconsistence with the diagram data)
2) when sequence and class diagrams conform each others data, generate code - static code framework from a class diagram and dinamic behaviour from a sequence diagram.

Of course, OCL2 constraints, state diagrams could provide data for more accurate code generation.

I believe, that this research direction is going in some universities (maybe companies) - this would beautifully integrate with the model-driven architecture (MDA).

Pages: 1 ... 12 13 [14] 15