Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Existing InstanceSpecification as value
Existing InstanceSpecification as value [message #1832219] Sat, 12 September 2020 18:18 Go to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 273
Registered: May 2015
Location: Germany
Senior Member
Hi all,

is there a way to assign an existing InstanceSpecification to a value of a Slot of an InstanceSpecification typed by a class?

I managed to assign a newly created InstanceSpecification, but not an already existing.

If I look for an existing InstanceSpecification none is displayed.

/Carsten
Re: Existing InstanceSpecification as value [message #1832222 is a reply to message #1832219] Sat, 12 September 2020 19:21 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6985
Registered: July 2009
Senior Member
Hi

Yes. You have to assign an InstanceValue that may reference your InstanceSpecification. Bloated and confusing isn't it?

Regards

Ed Willink
Re: Existing InstanceSpecification as value [message #1832224 is a reply to message #1832222] Sat, 12 September 2020 19:38 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6985
Registered: July 2009
Senior Member
Hi

Well perhaps not really confusing once you realize that UML is an assembler language for which IDEs provide very little high level abstraction.

For relationships IDEs generally aggregate the creation of an Association and two Properties which is helpful, but you still have to tunnel down and configure them individually. Other concepts are much more naked.

If you are mad enough to use the UML Expression classes it's hard work.

If you use OCL, you get a high level abstraction so that you do not see that

a + b

is actually at least:

createOperationCallExp("+", createVariableExp("a"), createVariableExp("b"))

This hides the VariableExp in just the same way that you would like to have known nothing about the InstanceValue that converts an InstanceSpecification to a ValueSpecification. Yes, two different semantics for the "Specification" suffix.

Regards

Ed Willink
Re: Existing InstanceSpecification as value [message #1832259 is a reply to message #1832222] Mon, 14 September 2020 12:34 Go to previous message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 273
Registered: May 2015
Location: Germany
Senior Member
Hi Ed,
indeed, I simply forgot the InstanceValue element in between.
Many thanks,
Carsten
Previous Topic:Constraints on diagrams creation.
Next Topic:Will SysML be officially supported with Papyrus 5.x ?
Goto Forum:
  


Current Time: Sun Jan 17 20:15:38 GMT 2021

Powered by FUDForum. Page generated in 0.03751 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top