|
Re: DataType? [message #1738964 is a reply to message #1738911] |
Tue, 26 July 2016 11:07 |
|
Hi,
The semantics of DataType are defined by the UML. I'd suggest you read
up about it in any good UML book or tutorial. The specification at OMG
is a start, if not actually light reading:
http://www.uml.org/
HTH,
Christian
On 2016-07-26 05:58:02 +0000, Philippe de Rochambeau said:
> Hello,
> what exactly is a DataType in Papyrus 2.0 and how exactly do you use it?
|
|
|
|
|
|
Re: DataType? [message #1739755 is a reply to message #1739713] |
Thu, 04 August 2016 10:38 |
Ed Willink Messages: 7669 Registered: July 2009 |
Senior Member |
|
|
Hi Philippe
I don't think that Sebastian's comment was really that helpful.
IMHO a PrimitiveType is an escape mechanism for something that is not
possible to model sensibly. It just happens that there are some common
concepts such as Boolean, String, Integer etc for which we understand
their behaviour even if we have no idea about their representation.
Adding new escape mechanisms is fine but you must intend to provide a
complete set of tools that support the new escapes. Papyrus may work out
of the box, some tools may allow the new escapes to be declared and
modelled in a tool-specific language, possibly OCL or Java, but others
may require a major coding intervention.
Extending the escapes runs the risk that you break tools whose handling
of the escapes is not compatible with your extension. I doubt that many
code generators could handle a multiple inheritance of Boolean and Real.
I'm pretty sure that Eclipse OCL would malfunction.
DataTypes on the other hand represent new modelling. Use them for your
data types.
Regards
Ed Willink
On 04/08/2016 09:44, Philippe de Rochambeau wrote:
> Hi Sebastian,
> how do you graphically "model a generalization relatonship from your new
> data type and the Real data type of the UML standard" in Papyrus? There
> isn't any UML Standard Data Type icon in the Papyrus Node Palette, which
> you could connect a, say, Money Data Type, using a Generalization Edge.
>
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|
|
|
Powered by
FUDForum. Page generated in 0.04325 seconds