-
Notifications
You must be signed in to change notification settings - Fork 1
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
Create a block macro to render table of a class in plateau #140
Comments
Refer to table in |
@kwkwan can we loop till we get to the top superclass? |
@ronaldtse Yes, it will. |
hello @kwkwan thanks for the work on the lutaml gml dictionary tool, it is working well. regarding the example table, shown below
is it possible to use a different table (shown below) for the initial test? i have prepared the most content (EA "Notes" property) for that subpackage tables. thank you. happy to test these updates when you are ready. just let me know. thanks! |
OK. I will switch the initial test to this example. |
During the test with the example (
A property named |
hello @kwkwan since these tables in the document are "model driven" i think we should always show the content from the model, as it may have been mistakenly left off in the PDF (because they were manually created). i think @ronaldtse would agree with this understanding. |
hello again @kwkwan if i wanted to confirm the version (date) of the XMI file, where should i look? want to make sure you have the newest version. |
I download the xmi file |
there is a newer version, how can i get that to you? |
I have just uploaded it to this commit: It is located in this PR: @kwkwan can you try with the newly exported XMI file? It seems to contain additional GML content. |
thanks @ronaldtse |
@kwkwan if you have any questions about the new version, please let me know. the structure has changed, with the figures now inside of the individual folders, instead of outside. |
When generating the table for class. some attributes shown in PDF are still missing in the new macro. It is because I cannot find out the logic to get these attributes from These are:
@ronaldtse Do you have any cues to link up the these attributes with |
hello @kwkwan because the UML tables in doc01 were made manually, there are attributes which are not readily accessible (through the model), in my understanding. the inherited attribute cells that are "gray" in color were manually added to those tables and are not in the individual models. are those the attributes you are mentioning? @ronaldtse and i have discussed with the client, and at this time, we can leave out the attributes from the gray cells if they are not already linked in the UML, unless Ron has directed you to do something different. i am not really the UML expert. does that help? |
@kwkwan can you please post the exact attributes/relationships that are missing and from which class? |
Update: I did some digging on the 2nd category, with |
hello @kwkwan looks like you are using the HTML output, please use the PDF, the official file plateau_doc_0001_ver04.pdf from the "reference-docs" folder. it will have gray shaded tables |
As previously agreed, things that cannot be determined from the model must be dropped. This includes:
|
@ronaldtse yes, correct "gray shading" content will not be in the model, and will be dropped. but i dont know why i cannot find gml:description, its not shaded gray. |
Update: I checked @ReesePlews we need the PLATEAU team's help here, the tables in the PDF seem to be erroneous. Let me explain There are 2
The first one is shown here: <packagedElement xmi:type="uml:Package" xmi:id="EAPK_9E3ECCD9_5472_45ce_BE7A_BC004A52B63C" name="CityGML2.0">
<packageImport xmi:type="uml:PackageImport" xmi:id="EAID_B0802E45_AF95_433a_BA7A_93EB62945730" importedPackage="EAPK_939925FF_6235_4286_82FF_7392B33F305C"/>
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_526A0DDE_1614_4df1_920F_F681125AE7C4" name="core">
<packagedElement xmi:type="uml:Class" xmi:id="EAID_60CE61DE_7E88_4e8b_BFED_13500E7DCDEC" name="_CityObject" isAbstract="true">
<!-- ... -->
<ownedAttribute xmi:type="uml:Property" xmi:id="EAID_6008181F_A953_4a0f_9F76_208235B9BC3A" name="terminationDate">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="EAID_LI004199_A953_4a0f_9F76_208235B9BC3A" value="0"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="EAID_LI004200_A953_4a0f_9F76_208235B9BC3A" value="1"/>
<type xmi:idref="EAJava_xs__date"/>
</ownedAttribute> In order for UML classes to "inherit this attribute", they need to have a Generalization relation to Classes that inherit from
i.e. Not from i.e. This means that |
Yes it is from _Feature: <packagedElement xmi:type="uml:Class" xmi:id="EAID_553A3DF9_69B8_4fb4_BF15_EC613B5B74CD" name="_Feature" isAbstract="true">
<ownedAttribute xmi:type="uml:Property" xmi:id="EAID_E52C9299_7D96_49e8_B6E1_B81E93B8C25F" name="boundedBy"> This means all classes that inherit from However, the only classes that inherit from
i.e. this is "meant to come from _Feature", but there doesn't seem to be any connection between |
@kwkwan can you update the table to show for each inherited attribute/association, from which class it is inherited from? This will help the reader. |
@ronaldtse Updated tables to show where the attributes come from via commit (84dddd3). Those attributes are all from |
@kwkwan wait, this is not the right way of doing things. The "型の定義" field is only supposed to show the definition of "bldg:Building". We should not insert the name "bldg:Building" or the definition of "bldg:_AbstractBuilding" here. The EA model is now like this: Therefore the text at the bottom right corner should be filled in "型の定義". |
@kwkwan let me double check the text in the file. i copy-pasted from another "Notes property" into the model, perhaps that is an issue. |
@kwkwan i have checked and i am not seeing those characterset issues. as shown in the image below. also, the contents in the "Notes property" is tied to class "bldg::Building" so it was that content (because it is at the class level) that i was thinking is accessible to put into that cell (shown by the pink box) above. if my understanding is not correct please let me know and discuss with @ronaldtse . |
@kwkwan : the description given by @ReesePlews seems correct. Can you help make sure this text ("居住その他の目的をもって構築された建築物。...") appears in the cell "型の定義" for "bldg:Building"? Thanks. |
@ReesePlews Updates the way to lookup definition by the
|
For example,
|
@kwkwan for The |
@kwkwan and @ronaldtse thank you for following up on this. i am sorry i am not understanding everything. i select the individual classes (boxes) attributes and roles only on the model figures, then i update (paste) the content into the "Notes property". when i go to the non-figure browser, and press on "Building" i can see my content for the class (box) Building (in the image below). because the call to lutaml to render the table used Building
that is what i was expecting would be visible in the right cell of the first row of the Building table that lutaml is generating. if my understanding is wrong, we will need to talk with the client. @ronaldtse if you have time today i will ask them if they can discuss. let me know offline. thanks |
@ReesePlews Sorry to make you confused. After discussed with @ronaldtse, this definition has been restricted to lookup the documentation from element properties. i.e.
|
thank you @kwkwan, am a UML beginner, so confusion problem is on me! i appreciate the patience from you and Ron! when you make any changes that you need me to check, just let me know. thanks for all the diligent work on this! |
hello @kwkwan and @ronaldtse i have generated the document locally after doing a "bundle update" the very positive results are shown below: it looks really good. thank you. even the other tables i have asked you to add the lutaml statement for are generating well. (but i still need to check them). my next question would be the gray coloring of the cells and the rendering of the [Content] in those cells. should i discuss those things here, or a different issue, please advise. |
Yes, I think we discuss them here. |
hello @kwkwan regarding the next questions: Q1: gray background coloring of cells:
Q2: the current status of the content as asciidoc being read from the XMI file:
if you need me to modify the contents in the 3 tables we are checking please let me know. thank you. |
Hi @ReesePlews and @ronaldtse For the styling of the table, I think it can be changed by using standard asciidoc syntax. However, the plugin will be needed to update to allow the user to specific the template path. |
thank you @kwkwan standard asciidoc syntax is important. we dont want to deviate from that. i could not find that asciidoc/asciidoctor supported such coloring except through the use of CSS. if the shading setup for the "dynamic content" (content which you parse from the .xmi file) is in the template, can it be called on a "cell by cell" or "row by row" basis... when it is needed? for example in the original document the left most cells are shaded: in our autogenerated document: i dont understand much with the template. i think you understand the issue here. a "work around" is also a possibility, such as "shading the row, not just the left most cell." please discuss these things with @ronaldtse at your earliest convenience. thank you. |
|
thanks Ron but they are still asking about it. i will say we cannot do that. i will follow up. |
@ReesePlews can’t they use another way like an additional “star” or some indication for that purpose? |
hello @kwkwan earlier in this issue we talked about the order of how attributes, and other entities from the UML model (.xmi file) will be ordered in the table. is that a "switch" that the user can invoke when they make the call to lutaml or is that something hard coded into the code? i ask because i was told about a setting in EA that could be useful to this project. in EA from the "Start > Preference pane (Preferences) > the dialogue below: let me know if i should make a new issue where i ask about this. thank you, |
Hi @ReesePlews Currently, the order of the attributes in the Class table is sorted by |
thank you @kwkwan , before i create a new issue to request some code enhancement, can you turn off the sort so that the original order from the .xmi file is used. this way we will know if there is an option in EA to handle or not. sorry to ask you to do that but i think better we test with it off at this time, and before any enhancement is requested. thank you. |
@kwkwan sorry i have another question. last month you updated branch 001-mds using the following code in the document.adoc file:
which autogenerated all of the tables from the .xmi for testing purposes (but not the other parts of the document). i tried to run it yesterday but i did not work. ran for a few hours. i think because of the change to lutaml_klass_table that document no longer is generating the previous output? if this is a minor change, can you update that so it auto generates all of the tables like it was doing a month back? if this requires an enhancement, please discuss with @ronaldtse first. i will send a new .xmi file later today. the content of the "Notes property" has been simplified. thank you. |
I will turn off the sorting to allow it follows original order in xmi. (lutaml/lutaml#88) |
I have update the document in |
The table should show:
The text was updated successfully, but these errors were encountered: