Book a Demo

Author Topic: Changing Inherited Tagged Values Possible?  (Read 14561 times)

FlunkStort

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Changing Inherited Tagged Values Possible?
« on: November 19, 2021, 08:00:16 am »
I'm using 15.2, trying to understand SysML.

I have a generalization structure:  SysAdmin User Station -> User Station

The User Station is composed of a Monitor (so Monitor is considered a "part" within User Station, according to the compartments on a BDD). The monitor has a TaggedValue, "provider", and I have its value set to "us".

I make sure that SysAdmin User Station has a property for the monitor (as inherited from User Station). Now, I want to modify the monitor's provider TV from "us" to "them". But I can't. I can only modify the TV if the owning element is a child part (when Monitor is a direct composition to User Station). If the element is a child property (Monitor does not directly compose SysAdmin User Station, it's inherited from User Station) I cannot modify the TV.

Am I trying to do something abnormal? I was hoping to have a monitor with multiple properties, that I could tweak anywhere along the generalization hierarchy. Is this achievable?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Changing Inherited Tagged Values Possible?
« Reply #1 on: November 19, 2021, 09:08:39 am »
Hi,


No, what you are trying to do is not abnormal, but you will need to "take the scenic route" to get there.
The reason you can't change the TV in Admin User Station (AUS) is that it does not have its own TV (at present).  You are literally looking at the TV in User Station (US)!  (change the value in US and you will see the value change in AUS)  You will need to create a TV in AUS so that you can manipulate its value directly.


HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

FlunkStort

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Changing Inherited Tagged Values Possible?
« Reply #2 on: November 19, 2021, 11:16:08 pm »
Thanks!

The reason you can't change the TV in Admin User Station (AUS) is that it does not have its own TV (at present).  You are literally looking at the TV in User Station (US)!  (change the value in US and you will see the value change in AUS)

Yes, this is exactly what I'm seeing. Just to be pedantic, to make sure I don't overassume, I'm trying to change the TV in monitor, which is a composition child to US, not the TVs in US or AUS.

Quote
You will need to create a TV in AUS so that you can manipulate its value directly.

But this is what I cannot do. If I click on the Monitor property under AUS in the project explorer and look at tags, I cannot add a "provider" TV (by clicking the add button). The "new" TV just goes away. I do have "show duplicate tags" checked.

What I expect to see is what happens if I go to the Monitor part under US, which is that when I change the value of the TV, a new property pops up to the top of the tag stack with the newly assigned value.

What I'm afraid of (only because of the time required to change everything) is that I am misunderstanding TV's vs SysML value properties. Is what I am trying to do with the monitor (label various properties of it such that I can tweak them wherever it's used) something that value properties would be easier to use?

FlunkStort

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Changing Inherited Tagged Values Possible?
« Reply #3 on: November 20, 2021, 01:15:48 am »
Just to followup, I created a test project with just the setup described in the first post. I created a Value Property, price (via instructions in "Simple SysML for Beginners: Using Sparx Enterprise Architect", chapter 4). It has units dollars. Then I went to the Monitor block and added the price twice: once named as unit and once named as yearly (for initial and recurring costs).

Monitor now shows two value properties.

I went into the User Station block and clicked on the monitor property. In Features|Parts/Properties it lists both prices. I right-clicked and said "redefine" on both. This gave me an instance for the US Monitor. I gave different prices and confirmed that the prices did not adjust in the Monitor block, just in the monitor part under US.

Then I went into Admin User Station and tried to do the same thing on the monitor part there. I can't redefine, no option on the right-click menu.

So how can I have properties that change values per "instance?" TVs dont work, Value Properties dont work?

Or I'm doing something completely wrong!

Edit: OK, that's weird... sometimes when I click on the Monitor in AUS it greys out the Redefine selection, other times it's not greyed out, but it does nothing.
« Last Edit: November 20, 2021, 01:23:49 am by FlunkStort »

FlunkStort

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Changing Inherited Tagged Values Possible?
« Reply #4 on: November 23, 2021, 02:28:35 am »
I’ve done some more testing. I’ve figured out how to update TVs in inherited properties. I was trying to use the properties pane (you can’t change the TVs there nor create a new TV), but if you click on the triangle button on the properties pane to bring up the properties window, everything works as I expected.

Seems like maybe this is a bug in the properties pane? (talking with Sparx support)

I still have not figured out how to adjust value property values of inherited properties.

Edit: Sorry, spoke too soon. Doing the above allows me to change the TV value, but then the monitor in User Station also changes it’s value. More to the point, it also changes the TV value in all blocks that inherit from User Station. (I created another block, named it Type1 User Station, and drew a generalization relationship to User Station.) When I change the TV value of Monitor in SysAdmin User Station, the value changes in User Station and in Type1 User Station.
« Last Edit: November 23, 2021, 02:34:52 am by FlunkStort »