Skip to content

Releases: cogu/autosar

v0.5.4

28 Oct 18:17
Compare
Choose a tag to compare

Added

XML - Software component elements

  • PModeGroupInAtomicSwcInstanceRef | P-MODE-GROUP-IN-ATOMIC-SWC-INSTANCE-REF
  • POperationInAtomicSwcInstanceRef | P-OPERATION-IN-ATOMIC-SWC-INSTANCE-REF
  • PTriggerInAtomicSwcTypeInstanceRef | P-TRIGGER-IN-ATOMIC-SWC-TYPE-INSTANCE-REF
  • RModeInAtomicSwcInstanceRef | R-MODE-IN-ATOMIC-SWC-INSTANCE-REF
  • RTriggerInAtomicSwcInstanceRef | R-TRIGGER-IN-ATOMIC-SWC-INSTANCE-REF
  • RVariableInAtomicSwcInstanceRef | R-VARIABLE-IN-ATOMIC-SWC-INSTANCE-REF

XML - SWC internal behavior elements

  • AsynchronousServerCallReturnsEvent | ASYNCHRONOUS-SERVER-CALL-RETURNS-EVENT
  • BackgroundEvent | BACKGROUND-EVENT
  • DataReceivedEvent | DATA-RECEIVED-EVENT
  • DataReceiveErrorEvent | DATA-RECEIVE-ERROR-EVENT
  • DataSendCompletedEvent | DATA-SEND-COMPLETED-EVENT
  • DataWriteCompletedEvent | DATA-WRITE-COMPLETED-EVENT
  • ExclusiveAreaRefConditional | EXCLUSIVE-AREA-REF-CONDITIONAL
  • ExecutableEntityActivationReason | EXECUTABLE-ENTITY-ACTIVATION-REASON
  • ExternalTriggerOccurredEvent | EXTERNAL-TRIGGER-OCCURRED-EVENT
  • InitEvent | INIT-EVENT
  • InternalTriggerOccurredEvent | INTERNAL-TRIGGER-OCCURRED-EVENT
  • ModeSwitchedAckEvent | MODE-SWITCHED-ACK-EVENT
  • OperationInvokedEvent | OPERATION-INVOKED-EVENT
  • RunnableEntity | RUNNABLE-ENTITY
  • SwcInternalBehavior | SWC-INTERNAL-BEHAVIOR (Partly implemented)
    • events
    • runnables
  • SwcModeManagerErrorEvent | SWC-MODE-MANAGER-ERROR-EVENT
  • SwcModeSwitchEvent | SWC-MODE-SWITCH-EVENT
  • TimingEvent | TIMING-EVENT
  • TransformerHardErrorEvent | TRANSFORMER-HARD-ERROR-EVENT

XML - Reference elements

  • AbstractProvidedPortPrototypeRef
  • AbstractRequiredPortPrototypeRef
  • AsynchronousServerCallResultPointRef
  • ExclusiveAreaNestingOrderRef
  • ExclusiveAreaRef
  • InternalTriggeringPointRef
  • ModeSwitchPointRef
  • RunnableEntityRef
  • SwcImplementationRef
  • SwcInternalBehaviorRef
  • TriggerRef
  • VariableAccessRef

Fixed

  • Fixed parsing error on elements containing ADMIN-DATA

Changed

  • Reader class attempts to resume parsing at next element if an error occurs
    • To stop parsing on first error, give the option stop_on_error=True to method Reader.read_file

v0.5.3

31 Mar 10:51
Compare
Choose a tag to compare

Added

XML - Common structure elements

  • DataFilter | DATA-FILTER

XML - System template elements

  • E2EProfileCompatibilityProps | E-2-E-PROFILE-COMPATIBILITY-PROPS | collectable
  • EndToEndTransformationComSpecProps | END-TO-END-TRANSFORMATION-COM-SPEC-PROPS

XML - Software component elements

  • ApplicationSoftwareComponentType | APPLICATION-SW-COMPONENT-TYPE | collectable
  • CompositionSwComponentType | COMPOSITION-SW-COMPONENT-TYPE | collectable
  • SwComponentPrototype | SW-COMPONENT-PROTOTYPE
  • PortInCompositionTypeInstanceRef | Merge of P-PORT-IN-COMPOSITION-INSTANCE-REF, R-PORT-IN-COMPOSITION-INSTANCE-REF
  • AssemblySwConnector | ASSEMBLY-SW-CONNECTOR
  • DelegationSwConnector | DELEGATION-SW-CONNECTOR
  • PassThroughSwConnector | PASS-THROUGH-SW-CONNECTOR
  • ClientComSpec | CLIENT-COM-SPEC
  • ModeSwitchedAckRequest | MODE-SWITCHED-ACK-REQUEST
  • ModeSwitchReceiverComSpec | MODE-SWITCH-RECEIVER-COM-SPEC
  • ModeSwitchSenderComSpec | MODE-SWITCH-SENDER-COM-SPEC
  • NonqueuedReceiverComSpec | NONQUEUED-RECEIVER-COM-SPEC
  • NonqueuedSenderComSpec | NONQUEUED-SENDER-COM-SPEC
  • NvProvideComSpec | NV-PROVIDE-COM-SPEC
  • NvRequireComSpec | NV-REQUIRE-COM-SPEC
  • ParameterProvideComSpec | PARAMETER-PROVIDE-COM-SPEC
  • ParameterRequireComSpec | PARAMETER-REQUIRE-COM-SPEC
  • QueuedReceiverComSpec | QUEUED-RECEIVER-COM-SPEC
  • QueuedSenderComSpec | QUEUED-SENDER-COM-SPEC
  • ReceptionComSpecProps | RECEPTION-COM-SPEC-PROPS
  • ServerComSpec | SERVER-COM-SPEC
  • TransmissionAcknowledgementRequest | TRANSMISSION-ACKNOWLEDGEMENT-REQUEST
  • TransmissionComSpecProps | TRANSMISSION-COM-SPEC-PROPS
  • ProvidePortPrototype | P-PORT-PROTOTYPE
  • RequirePortPrototype | R-PORT-PROTOTYPE
  • PRPortPrototype | PR-PORT-PROTOTYPE

XML - SWC internal behavior elements

  • ArVariableInImplementationDataInstanceRef | AR-VARIABLE-IN-IMPLEMENTATION-DATA-INSTANCE-REF
  • AutosarVariableRef | AUTOSAR-VARIABLE-REF
  • VariableAccess | VARIABLE-ACCESS
  • VariableInAtomicSWCTypeInstanceRef | VARIABLE-IN-ATOMIC-SWC-TYPE-INSTANCE-REF

XML - Reference elements

  • ApplicationCompositeElementDataPrototypeRef
  • AutosarDataPrototypeRef
  • ClientServerOperationRef
  • E2EProfileCompatibilityPropsRef
  • ModeDeclarationGroupPrototypeRef
  • ParameterDataPrototypeRef
  • PortPrototypeRef
  • SwComponentTypeRef
  • SwComponentPrototypeRef

Workspace class

New methods:

  • create_package_map
  • add_element
  • find_element
  • get_package
  • create_document_mapping

Changed

  • The method Workspace.make_packages should not be called directly anymore. Use Workspace.create_package_map instead.

v0.4.2

30 Mar 10:54
Compare
Choose a tag to compare

Fixes and Improvements

  • Fixed: AR4 record parser returns AR3 record value

v0.5.2

11 Feb 18:14
Compare
Choose a tag to compare

Added

Workspace

  • Various improvements to template classes
  • Support project config files

XML - Data type elements

  • ArgumentDataPrototype | ARGUMENT-DATA-PROTOTYPE
  • ParameterDataPrototype | PARAMETER-DATA-PROTOTYPE
  • VariableDataPrototype | VARIABLE-DATA-PROTOTYPE

Mode declaration elements

  • ModeDeclarationGroup | MODE-DECLARATION-GROUP | collectable
  • ModeDeclaration | MODE-DECLARATION
  • ModeDeclarationGroupPrototype | MODE-DECLARATION-GROUP-PROTOTYPE
  • ModeErrorBehavior | MODE-ERROR-BEHAVIOR
  • ModeTransition | MODE-TRANSITION

XML Port interface elements

  • ClientServerInterface | CLIENT-SERVER-INTERFACE | collectable
  • ModeSwitchInterface | MODE-SWITCH-INTERFACE | collectable
  • NvDataInterface | NV-DATA-INTERFACE | collectable
  • ParameterInterface | PARAMETER-INTERFACE | collectable
  • SenderReceiverInterface | SENDER-RECEIVER-INTERFACE | collectable
  • ApplicationError | APPLICATION-ERROR
  • ClientServerOperation | CLIENT-SERVER-OPERATION
  • InvalidationPolicy | INVALIDATION-POLICY

XML - Reference elements

  • ApplicationErrorRef
  • ModeDeclarationGroupRef
  • ModeDeclarationRef
  • VariableDataPrototypeRef

v0.5.1

09 Nov 17:26
Compare
Choose a tag to compare

Added

  • Value checker for positive integers

XML - Data type elements

  • ValueList | VALUE-LIST

XML - Calibration elements

  • SwValueCont | SW-VALUE-CONT
  • SwAxisCont | SW-AXIS-CONT
  • SwValues | SW-VALUES
  • ValueGroup | VALUE-GROUP

XML - Constant and Value specification elements

  • ConstantSpecification | CONSTANT-SPECIFICATION | collectable
  • ApplicationValueSpecification | APPLICATION-VALUE-SPECIFICATION
  • ArrayValueSpecification | ARRAY-VALUE-SPECIFICATION
  • ConstantReference | CONSTANT-REFERENCE
  • NotAvailableValueSpecification | NOT-AVAILABLE-VALUE-SPECIFICATION
  • NumericalValueSpecification | NUMERICAL-VALUE-SPECIFICATION
  • RecordValueSpecification | RECORD-VALUE-SPECIFICATION
  • TextValueSpecification | TEXT-VALUE-SPECIFICATION

XML - Reference elements

  • ConstantRef

v0.5.0

27 Oct 14:55
Compare
Choose a tag to compare

Main changes

  • New class hierachy
  • Snake-case naming of variables and methods (Follow PEP8)
  • Modern type hinting
  • Python Enum classes for enumeration types
  • Improved XML reading and writing with lxml
  • Linting support (Pylint and flake8)
  • New unit test suite
  • New RTE generator

Notes

Only supports XML data type elements. More will be added later.

v0.4.1

13 May 14:51
Compare
Choose a tag to compare

Fixes and Improvements

  • Fix: Deprecated use of collections module in parts of the code. Updated to collections.abc. (Python 3.10)

v0.4.0

27 Mar 18:39
Compare
Choose a tag to compare

Fixes and Improvements

  • Fix: Helper method autosar.DataElement not working.
  • Fix: (AUTOSAR4) Queued property of data-elements not reflected in ARXML.
  • Add new method behavior.appendDataTypeMappingRef for associating an SWC with a data-type mapping-set.

v0.3.11

05 Jul 12:25
Compare
Choose a tag to compare

Fixes and Improvements

  • Fix: Parsing of sub-packages in AUTOSAR 3 XML not working correctly.
  • Fix: Adding DataTypeMap to DataTypeMappingSet not working.
  • Fix: Issues reported by Pylint.
  • Improvement: Classes derived from ComponentType now supports AdminData.
  • Improvement: Moved SoftwareAddressMethod class from portinterface to elements package.
  • Improvement: The element parameter is now optional in method Package.createApplicationRecordDataType.

Documentation Updates

  • Common documentation
    • Getting Started (updated)
    • Basic Concepts (new)
  • Updated AUTOSAR 4 API documentation
    • autosar (new)
    • base.SwDataDefPropsConditional (new)
    • base.SwPointerTargetProps (new)
    • base.SwPointerTargetProps (new)
    • base.SymbolProps (new)
    • datatype.ApplicationArrayDataType (new)
    • datatype.ApplicationArrayElement (new)
    • datatype.ApplicationDataType (updated)
    • datatype.ApplicationPrimitiveDataType (new)
    • datatype.ApplicationRecordDataType (new)
    • datatype.ApplicationRecordElement (new)
    • datatype.CompuMethod (new)
    • datatype.CompuScaleElement (new)
    • datatype.Computation (new)
    • datatype.DataConstraint (new)
    • datatype.DataTypeMap (updated)
    • datatype.DataTypeMappingSet (updated)
    • datatype.ImplementationDataType (updated)
    • datatype.ImplementationDataTypeElement (new)
    • datatype.ModeRequestTypeMap (updated)
    • datatype.SwBaseType (updated)
    • datatype.Unit (new)
    • element.DataElement (updated)
    • element.Element (updated)
    • element.SoftwareAddressMethod (new)
    • datatype.ApplicationArrayDataType (new)
    • package (updated)
    • workspace (updated)
  • AUTOSAR 4 Developer Guides
    • Package Roles (new)

v0.3.10

09 Mar 10:12
Compare
Choose a tag to compare
  • Fixes highlighted by pylint
    • Fixed AUTOSAR3-related issue with constants created from array of record data type.
  • Improvements to mode-related classes
    • ModeDeclarationGroup now supports explicit values in ARXML when defined using tuples.
  • Support for mode request type mapping
    • Application data type mapping was already supported but not documented.
  • New/Improved documentation (AUTOSAR4 API)
    • ApplicationDataType
    • DataTypeMap
    • DataTypeMappingSet
    • ModeDeclaration
    • ModeDeclarationGroup
    • ModeGroup
    • ModeRequestTypeMap