|Re: DataType? [message #1739755 is a reply to message #1739713]
||Thu, 04 August 2016 10:38
| Ed Willink
Registered: July 2009
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
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.
Powered by FUDForum
. Page generated in 0.01493 seconds