Skip to content

Improve java#10

Merged
tom-hg57 merged 8 commits intosogno-platform:mainfrom
tom-hg57:improve-java
Jun 7, 2025
Merged

Improve java#10
tom-hg57 merged 8 commits intosogno-platform:mainfrom
tom-hg57:improve-java

Conversation

@tom-hg57
Copy link
Copy Markdown
Collaborator

@tom-hg57 tom-hg57 commented May 25, 2025

  • Update generated java files created by cimgen
    • Change getter and setter to static functions
    • Set cimType and rdfid in BaseClass constructor (fixing this-escape warnings with Java >= 21)
    • Remove setter for cimType and rdfid (they are fixed now after creation of a CIM object)
    • Fix parsing objects with changing types (e.g. first as Equipment, than as PowerTransformer)
    • Add method toString to BaseClass
    • Improve logging of unknown attributes in java reader
    • Fix parsing objects with overriding attributes
    • Add option --log-level to java main program
    • Fix collision of label and class_name (e.g. AvailabilitySchedule in profile AvailabilitySchedule)
    • Add logging of used memory in java reader
    • Optimize java writer: iterate over used attributes only
    • Fix attribute comments
  • Adapt unit tests and add more unit tests for reader and writer
    • test024-test028 to test parsing objects with changing types
    • test029-test032 to test parsing objects with overriding attributes
  • Fix exception caused by wrong attribute type
  • Add more unit tests for reader and writer
  • Improve java reader with class HandleSetLater
  • Improve java reader using robust two-phase algorithm: 1. create objects, 2. add attributes (avoiding any complicated set-later algorithms)
  • Set log4jEnabled = false in Logging.java
  • Add descriptions to unit tests for reader and writer

@tom-hg57 tom-hg57 requested a review from m-mirz May 25, 2025 20:10
tom-hg57 added 2 commits May 26, 2025 23:57
- Change getter and setter to static functions
- Set cimType and rdfid in BaseClass constructor (fixing this-escape warnings with Java >= 21)
- Remove setter for cimType and rdfid (they are fixed now after creation of a CIM object)
- Fix parsing objects with changing types (e.g. first as Equipment, than as PowerTransformer)
- Add method toString to BaseClass
- Improve logging of unknown attributes in java reader
- Fix parsing objects with overriding attributes
- Add option --log-level to java main program
- Fix collision of label and class_name (e.g. AvailabilitySchedule in profile AvailabilitySchedule)
- Add logging of used memory in java reader
- Optimize java writer: iterate over used attributes only
- Fix attribute comments

Signed-off-by: Thomas Günther <tom@toms-cafe.de>
- test024-test028 to test parsing objects with changing types
- test029-test032 to test parsing objects with overriding attributes

Signed-off-by: Thomas Günther <tom@toms-cafe.de>
tom-hg57 added 6 commits June 4, 2025 21:04
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
…ts, 2. add attributes (avoiding any complicated set-later algorithms)

Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
@tom-hg57 tom-hg57 merged commit 3e13bc9 into sogno-platform:main Jun 7, 2025
4 checks passed
@tom-hg57 tom-hg57 deleted the improve-java branch June 7, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants