Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Is aspect-oriented modelling possible in papyrus?(How to add aspect-oriented modelling concept in state machine )
icon3.gif  Is aspect-oriented modelling possible in papyrus? [message #1739953] Fri, 05 August 2016 21:51 Go to next message
Syed Samsul Arefin is currently offline Syed Samsul ArefinFriend
Messages: 17
Registered: May 2016
Junior Member
Hello, I am new in papyrus modelling. I am wondering how to do aspect-oriented modelling in papyrus state machine. I have some state machine. where each state has it's own state invariant. Apart from this, there is a number of constraints that act as state invariant in multiple states. So, adding all of those constraints as state invariant in each of those states would make the state machine more complex and messy. Probably, aspect-oriented modelling is a better option in this scenario. So, a single constraint can be added to the state invariant of states of the same aspect. i.e., the complete state invariant of a state would be its own state invariant and the constraint from the aspect.
Is this possible in papyrus? Any idea how to do this? Any suggestion? Thank you.
Re: Is aspect-oriented modelling possible in papyrus? [message #1741996 is a reply to message #1739953] Sat, 06 August 2016 10:40 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6568
Registered: July 2009
Senior Member
Hi

If you have many constraints, UML tools are not that helpful.

You are probably better to structure as:
- a structural UML state machine
- a Complete OCL document for each aspect

This should allow you to read/edit all the text for an aspect in a
single window without the compromises of UML Constraint widgets. (Having
to use both *.uml and *.ocl source files is inconvenient, but if you
want aspects, it is perhaps more convenient.)

Alternatively you could use Package merge so that you use a separate
merged state machine diagram for each aspect. (I'm not certain that the
Package merge tooling works for states.)

Regards

Ed Willink



On 05/08/2016 22:51, Syed Samsul Arefin wrote:
> Hello, I am new in papyrus modelling. I am wondering how to do
> aspect-oriented modelling in papyrus state machine. I have some state
> machine. where each state has it's own state invariant. Apart from this,
> there is a number of constraints that act as state invariant in multiple
> states. So, adding all of those constraints as state invariant in each
> of those states would make the state machine more complex and messy.
> Probably, aspect-oriented modelling is a better option in this scenario.
> So, a single constraint can be added to the state invariant of states of
> the same aspect. i.e., the complete state invariant of a state would be
> its own state invariant and the constraint from the aspect. Is this
> possible in papyrus? Any idea how to do this? Any suggestion? Thank you.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Previous Topic:Actions and Object Nodes
Next Topic:Quick link between two diagrams possible?
Goto Forum:
  


Current Time: Tue Jan 21 21:31:09 GMT 2020

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

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

Back to the top