Mother class modification propagation
|
|
---|---|
|
Hello, I would like to know how is propagated modifications done in mother class in the child class; I explain: I do a mother class implementating a state diagram for my application. All my device classes will inherit this mother class. If I update the mother class, for example - adding a state - or modififying a state transition is this/these modifications propagated to my child classes? If no, this means, that I have to update manually? If yes, is it done automatically, or by regenerating the device class … What is the procedure? Thanks by advance, Laurence. |
|
|
---|---|
Bonjour Laurence, sorry for the delay in answering. When you say Mother class do you mean a Tango device class? How do you do the inheritance? Do you use Pogo? Pogo lets you choose which commands and attributes to inherit. At least I think so. I let the Pogo expert(s) correct me if I am wrong. More answers to follow. Andy |
|
|
---|---|
|
Bonjour Andy, thanks for the answer. - Yes, I mean a Tango device class when I was speaking about Mother class. - I do the inheritance using Pogo ("Add Inheritance Class" button). As far as I know I don't choose which attribute and command to inherit; I inherit of all: the inherited command and attributes can be seen with the different colors (and after I use it or not) - I don't know if the question was clear so I put it again: if in my mother class, I make some modifications, for example add/remove command/attribute, renaming of command/attribute … do that changes propagated in the child class WITHOUT manual intervention, by regenerating the code files and/or xmi file (menu File/Generate in Pogo) or should I do it manually as many time I have child classes which inherit of this updated mother class. Thanks, Laurence. |
|
|
---|---|
Hi Laurence Normally if you modify the super class, if you reload your class with Pogo, the modifications will be taken in account. I cannot confirm for all cases of change, but it must be OK. If it is not, tell me what is wrong. Pascal |
|
|
---|---|
|
Hi Pascal, thanks. I will try and let you know if any problem. Laurence. |