Book a Demo

Author Topic: Inheriting Signal attributes  (Read 2596 times)

mse

  • EA User
  • **
  • Posts: 308
  • Karma: +1/-0
    • View Profile
Inheriting Signal attributes
« on: May 14, 2024, 12:04:39 am »
Is there a way to inherit the signal attributes? I thought a simple Generalization connector would do the job, but it seems only to be a cosmetic thing. In a simulation or in the project tree, I do not see the inherited attribute.

  • A simple example is creating a Signal <<signal>> s1
  • Add an attribute of type int to s1
  • Create a second signal S2 and inherit from s1 using generalization: nothing shows up in the project tree.

PDC

  • EA User
  • **
  • Posts: 118
  • Karma: +5/-0
  • Systems Engineer
    • View Profile
Re: Inheriting Signal attributes
« Reply #1 on: May 14, 2024, 12:55:30 am »
Right-click on s2, choose 'Compartment Visibility' and select 'Inherited Attributes'. The inherited Attribute will then be displayed.

Do you need to be able to manipulate that variable from s2?
Phil

mse

  • EA User
  • **
  • Posts: 308
  • Karma: +1/-0
    • View Profile
Re: Inheriting Signal attributes
« Reply #2 on: May 14, 2024, 01:01:51 am »
Showing the compartment with inherited attributes works fine, it's the manipulating of the signal attribute in a statechart simulation for example that is the problem

If I run a simulation, I do not get the parameters dialog box to change the attribute. I have to create a separate signal with the attribute. That defeats the purpose of what I am trying to do, which is to create a base signal, and modify it in one location as I learn more about the signal. That way, all the child signals will inherit the updated attributes.