-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autosarfactory now respects the order/sequence of elements as specifi…
…ed by Autosar schema. The xml serialization is done respecting the schema. Also further improvements made to autosarfactory * Fixed issue: - The xml is not serialized according to the order specified in the autosar schema - Now, it's possible to properly generate the elements SwBaseType, CompuMethod etc. - Updated example with SwBaseType, CompuMethod, DataConstr creation - Added a new context menu action in the ui to copy the file path of the respective node * Fixed issues reported by Christian regarding the broken re-arrangement of elements in the xml node. Now, the file is properly serialized as expected by Autosar schema. * Added changelog entry wrt xml serialization improvement * Added unit tests * Added unit tests for checking order of elements when the model has invisible model elements like BaseTypeDirectDefinition inside SwBaseType * Fixed issues reported by Christian. Elements are added respecting the order * the xml elements are now removed when the value is unset or if it's set to None * Update CHANGELOG.md * Added support for ordering of elements as specified by Autosar. And now the tool is able to properly manage RoleWrapperElements and normal elements which is added as a list of containment elements. Added additional compu method in the example script for rational coeffs to see if the V are added as per the order * Updated changelog to modify the date * Fixed issue with resolving references for the elements of type "roleTypeWrapper" * Fixed issue wrt processing of elements which are choice eg: SdgContentType inside Sdg. Added unit test and updated example script. * Fixed issues wrt non-removal of elements when using remove function for containtment elements * Added support for exporting ColleableElements(ArPackage and all packageableElements) into a file * Fixed an issue with xml ordering of elements when a same base class is inherited from different levels. * Fixed issues with reference setting and reading when a parent node of the referenced object has no short-name * Added autosarfactory implementation for more autosar versions(done since this was requested by many users) * Fixed issues when the autosar ecore file doesn't have proper references which caused generation of some objects inconsistent * Fixed issues with respect to processing elements which were of type choice in the schema/ecore model * Fixed issues with creating nodes on the fly when the insertion order was not respected * Added proper autosar version to the python implementations of the respective autosar versions. * Fixed issues with generation of multi-reference nodes * Doc update for export function * Update README.md * Update README.md * Updated autosarfactory with some minor updates (do not report an error when elements are added to a list which are not Referrable) * Fixed issues with non-removal of reference elements from arxml if all the elements are removed using the remove api. Also, fixed issue with reading of elements when there is only concrete sub type available in the autosar metamodel * Update README.md * Fixed a small typo in the factory --------- Co-authored-by: Girish Chandran <[email protected]>
- Loading branch information
1 parent
559010e
commit 11f4bd6
Showing
37 changed files
with
3,591,346 additions
and
229,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<AUTOSAR xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org/schema/r4.0 AUTOSAR_00051.xsd"> | ||
<AR-PACKAGES> | ||
<AR-PACKAGE> | ||
<SHORT-NAME>types</SHORT-NAME> | ||
<ELEMENTS> | ||
<STD-CPP-IMPLEMENTATION-DATA-TYPE> | ||
<SHORT-NAME>Array</SHORT-NAME> | ||
<CATEGORY>ARRAY</CATEGORY> | ||
<ARRAY-SIZE>6</ARRAY-SIZE> | ||
<NAMESPACES> | ||
<SYMBOL-PROPS> | ||
<SHORT-NAME>namespace_ns</SHORT-NAME> | ||
<SYMBOL>ns</SYMBOL> | ||
</SYMBOL-PROPS> | ||
</NAMESPACES> | ||
<TEMPLATE-ARGUMENTS> | ||
<CPP-TEMPLATE-ARGUMENT/> | ||
</TEMPLATE-ARGUMENTS> | ||
<TYPE-EMITTER>TYPE_EMITTER_ARA</TYPE-EMITTER> | ||
</STD-CPP-IMPLEMENTATION-DATA-TYPE> | ||
</ELEMENTS> | ||
</AR-PACKAGE> | ||
</AR-PACKAGES> | ||
</AUTOSAR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.