-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modeling the "gray box" indicating that an inherited attribute is not to be used #199
Comments
FYI @ReesePlews @Chika96 |
hello @ronaldtse thank you very much for researching this option. i am still grappling with UML, so i am wondering what happens if we change the structure of Building by adding this new attribute? i have been told that the specific order of attributes, and other constructs matters. if i understand your idea correctly: (based on the snippet image from doc01v4, shown below) do we create identical attributes for "boundedBy", "relativeToTerrain", "relativeToWater", etc in the bldg class and set their multiplicity to [0..0]? does this same method also work for the inherited roles? thank you again for researching this. |
Yes you're right we have to do it for all greyed out attributes. I actually haven't tried the role override. Will report back. |
EA's website said there's an easier way to create Relationships, but I can't seem to get it working. The "Link Type" does not provide a selection of what can a relationship be built with. |
thank you @ronaldtse that is quite a set of steps. i am really going to have to study how that works. thank you for figuring this out and for documenting it so carefully. i am sure the Plateau Team and @Chika96 will be interested in checking this. thank you! |
We will implement something like this: ---
targets:
- type: package
name: CityGML 2.0
targets:
- type: package
name: bldg
targets:
- type: class
name: Building
targets:
- type: attribute
name: boundedBy
used: false
guidance: |
この属性は使用されていません。
- type: attribute
name: relativeToTerrain
used: false
guidance: |
この属性は使用されていません。
- type: attribute
name: relativeToWater
used: false
guidance: |
この属性は使用されていません。
- type: attribute
name: function
used: false
guidance: |
この属性は使用されていません。
- type: attribute
name: storeyHeightsAboveGround
used: false
guidance: |
この属性は使用されていません。
- type: attribute
name: storeyHeightsBelowGround
used: false
guidance: |
この属性は使用されていません。
- type: association
name: lod2MultiSurface
used: false
guidance: |
この関連役割は使用されていません。
- type: association
name: lod3MultiSurface
used: false
guidance: |
この関連役割は使用されていません。 |
thank you for the updated idea @ronaldtse , this looks like one external "guidance file" per table? i am wondering though how a list of the "types" and "names" are produced? |
Hi @ReesePlews, according to my preliminary study, it is supposed to use a single yaml file to define the guidances. The path of the yaml file will be configured in the config file. |
In Enterprise Architect 16, I've created a
usage
attribute inBuilding
that overrides theusage
attribute in_AbstractBuilding
.It looks like this:
You have to manually set its "Multiplicity" to "0..0" in the EA Properties pane.
Then the result in XMI as you will see below, says
<bounds lower="0" upper="0"/>
:This way we are able to detect which attributes are meant to be disabled, and the reason of why that attribute is disabled can also be entered in the Notes.
The text was updated successfully, but these errors were encountered: