Skip to content
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

v2.4.0 Update #5

Merged
merged 68 commits into from
Sep 3, 2024
Merged

v2.4.0 Update #5

merged 68 commits into from
Sep 3, 2024

Conversation

tbm0115
Copy link
Contributor

@tbm0115 tbm0115 commented Sep 3, 2024

Bump update MtconnectTranspiler and MtconnectTranspiler.CodeGenerators.ScribanTemplates.

  • Updated transpiler example with new code generator.
  • Updated template models.
  • Updated Scriban templates.

This update features a complete redesign of the C# library by moving away from a simple extension to the Scriban template into a fully documented reflection of the MTConnect Standard. The generated C# code from the example transpiler yields fully documented classes that represent the SysML package, class, and enum structures in C#.

These changes are in response to common feedback that the XmiDocument from the MtconnectTranspiler is difficult to navigate and requires advanced knowledge of not only the MTConnect standard, but the underlying XMI structure as well. The new C# library should eliminate the need to understand the XMI structure and reduce required understanding of the structure of the MTConnect standard.

tbm0115 added 24 commits August 15, 2024 23:02
 - Added Enums to Packages
 - Removed unnecessary XML summary prefixes (///)
 - Added Profile Packages to root MtconnectModel
Attempting to override the IClass.Properties with the custom PropertyList
Changed property name/type to reflect observation type categories
 - Added ReferenceId to IEnum
 - Added HelpUrl property and constant to IClass, IEnum, and IPackage
 - Refactored "normative remarks" in XML summary.
 - Added help url to observation type in navigation extensions
 - Changed comparison of Observation Type names ordinal with a removal of '_' characters on both sides between IClass and IEnum comparisons
 - Used the Example transpiler to generate files
@tbm0115 tbm0115 added the enhancement New feature or request label Sep 3, 2024
@tbm0115 tbm0115 self-assigned this Sep 3, 2024
@tbm0115 tbm0115 merged commit 4fa4b86 into main Sep 3, 2024
@tbm0115 tbm0115 deleted the tbm0115/hard-coded-model branch September 3, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant