Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Adding nested classifiers to a class
Adding nested classifiers to a class [message #1692806] Sun, 19 April 2015 06:31 Go to next message
Philippe de Rochambeau is currently offline Philippe de RochambeauFriend
Messages: 40
Registered: February 2013

this model: contained two nested classifiers:

- IncrementClassifierBehavior
- incrementMethod

how do you add nested classifiers to a class (given that there aren't any nested Classifier Objects in the Object Palette)?

What exactly is a nested classifier? Why do you need it to animate a class?

Many thanks.

Re: Adding nested classifiers to a class [message #1692836 is a reply to message #1692806] Mon, 20 April 2015 07:10 Go to previous message
Johan Van Noten is currently offline Johan Van NotenFriend
Messages: 87
Registered: July 2009
Hi Philippe,

A nestedClassifier is just any Classifier owned by a Class. So creating e.g. a Class B as a child of Class A makes B a nestedClassifier.
You can easily do that from the Model Explorer: select Class A, right-click it and click New Child | Class.

Animation of a Class is of course not mandatory. If you want to specify for some reason the behavior of a Class, you could do so.
Can e.g. be useful if your Class represents an active Thread in an application. In that case you could be interested in specifying the background behavior that is continuously executed by the thread (as opposed to the behavior activated by calling a specific method).

Previous Topic:Attributes not showing
Next Topic:Activity Diagram Icon with Plus Sign
Goto Forum:

Current Time: Mon Jan 18 10:12:36 GMT 2021

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

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

Back to the top