-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Template classes can now choose if created element is added to package - Change argument type in element template create-method - Rename init_package_map in Workspace class to create_package_map - Create example of creating composition using element template
- Loading branch information
Showing
16 changed files
with
344 additions
and
123 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
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,88 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AUTOSAR xsi:schemaLocation="http://autosar.org/schema/r4.0 AUTOSAR_00051.xsd" xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<AR-PACKAGES> | ||
<AR-PACKAGE> | ||
<SHORT-NAME>ComponentTypes</SHORT-NAME> | ||
<ELEMENTS> | ||
<COMPOSITION-SW-COMPONENT-TYPE> | ||
<SHORT-NAME>CompositionComponent</SHORT-NAME> | ||
<PORTS> | ||
<R-PORT-PROTOTYPE> | ||
<SHORT-NAME>EngineSpeed</SHORT-NAME> | ||
<REQUIRED-COM-SPECS> | ||
<NONQUEUED-RECEIVER-COM-SPEC> | ||
<DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/PortInterfaces/EngineSpeed_I/EngineSpeed</DATA-ELEMENT-REF> | ||
<USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION> | ||
<INIT-VALUE> | ||
<CONSTANT-REFERENCE> | ||
<CONSTANT-REF DEST="CONSTANT-SPECIFICATION">/Constants/EngineSpeed_IV</CONSTANT-REF> | ||
</CONSTANT-REFERENCE> | ||
</INIT-VALUE> | ||
</NONQUEUED-RECEIVER-COM-SPEC> | ||
</REQUIRED-COM-SPECS> | ||
<REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/PortInterfaces/EngineSpeed_I</REQUIRED-INTERFACE-TREF> | ||
</R-PORT-PROTOTYPE> | ||
<R-PORT-PROTOTYPE> | ||
<SHORT-NAME>VehicleSpeed</SHORT-NAME> | ||
<REQUIRED-COM-SPECS> | ||
<NONQUEUED-RECEIVER-COM-SPEC> | ||
<DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/PortInterfaces/VehicleSpeed_I/VehicleSpeed</DATA-ELEMENT-REF> | ||
<USES-END-TO-END-PROTECTION>false</USES-END-TO-END-PROTECTION> | ||
<INIT-VALUE> | ||
<CONSTANT-REFERENCE> | ||
<CONSTANT-REF DEST="CONSTANT-SPECIFICATION">/Constants/VehicleSpeed_IV</CONSTANT-REF> | ||
</CONSTANT-REFERENCE> | ||
</INIT-VALUE> | ||
</NONQUEUED-RECEIVER-COM-SPEC> | ||
</REQUIRED-COM-SPECS> | ||
<REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/PortInterfaces/VehicleSpeed_I</REQUIRED-INTERFACE-TREF> | ||
</R-PORT-PROTOTYPE> | ||
</PORTS> | ||
<COMPONENTS> | ||
<SW-COMPONENT-PROTOTYPE> | ||
<SHORT-NAME>ReceiverComponent</SHORT-NAME> | ||
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/ComponentTypes/ReceiverComponent</TYPE-TREF> | ||
</SW-COMPONENT-PROTOTYPE> | ||
<SW-COMPONENT-PROTOTYPE> | ||
<SHORT-NAME>TimerComponent</SHORT-NAME> | ||
<TYPE-TREF DEST="APPLICATION-SW-COMPONENT-TYPE">/ComponentTypes/TimerComponent</TYPE-TREF> | ||
</SW-COMPONENT-PROTOTYPE> | ||
</COMPONENTS> | ||
<CONNECTORS> | ||
<ASSEMBLY-SW-CONNECTOR> | ||
<SHORT-NAME>TimerComponent_FreeRunningTimer_ReceiverComponent_FreeRunningTimer</SHORT-NAME> | ||
<PROVIDER-IREF> | ||
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE">/ComponentTypes/CompositionComponent/TimerComponent</CONTEXT-COMPONENT-REF> | ||
<TARGET-P-PORT-REF DEST="P-PORT-PROTOTYPE">/ComponentTypes/TimerComponent/FreeRunningTimer</TARGET-P-PORT-REF> | ||
</PROVIDER-IREF> | ||
<REQUESTER-IREF> | ||
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE">/ComponentTypes/CompositionComponent/ReceiverComponent</CONTEXT-COMPONENT-REF> | ||
<TARGET-R-PORT-REF DEST="R-PORT-PROTOTYPE">/ComponentTypes/ReceiverComponent/FreeRunningTimer</TARGET-R-PORT-REF> | ||
</REQUESTER-IREF> | ||
</ASSEMBLY-SW-CONNECTOR> | ||
<DELEGATION-SW-CONNECTOR> | ||
<SHORT-NAME>VehicleSpeed_ReceiverComponent_VehicleSpeed</SHORT-NAME> | ||
<INNER-PORT-IREF> | ||
<R-PORT-IN-COMPOSITION-INSTANCE-REF> | ||
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE">/ComponentTypes/CompositionComponent/ReceiverComponent</CONTEXT-COMPONENT-REF> | ||
<TARGET-R-PORT-REF DEST="R-PORT-PROTOTYPE">/ComponentTypes/ReceiverComponent/VehicleSpeed</TARGET-R-PORT-REF> | ||
</R-PORT-IN-COMPOSITION-INSTANCE-REF> | ||
</INNER-PORT-IREF> | ||
<OUTER-PORT-REF DEST="R-PORT-PROTOTYPE">/ComponentTypes/CompositionComponent/VehicleSpeed</OUTER-PORT-REF> | ||
</DELEGATION-SW-CONNECTOR> | ||
<DELEGATION-SW-CONNECTOR> | ||
<SHORT-NAME>EngineSpeed_ReceiverComponent_EngineSpeed</SHORT-NAME> | ||
<INNER-PORT-IREF> | ||
<R-PORT-IN-COMPOSITION-INSTANCE-REF> | ||
<CONTEXT-COMPONENT-REF DEST="SW-COMPONENT-PROTOTYPE">/ComponentTypes/CompositionComponent/ReceiverComponent</CONTEXT-COMPONENT-REF> | ||
<TARGET-R-PORT-REF DEST="R-PORT-PROTOTYPE">/ComponentTypes/ReceiverComponent/EngineSpeed</TARGET-R-PORT-REF> | ||
</R-PORT-IN-COMPOSITION-INSTANCE-REF> | ||
</INNER-PORT-IREF> | ||
<OUTER-PORT-REF DEST="R-PORT-PROTOTYPE">/ComponentTypes/CompositionComponent/EngineSpeed</OUTER-PORT-REF> | ||
</DELEGATION-SW-CONNECTOR> | ||
</CONNECTORS> | ||
</COMPOSITION-SW-COMPONENT-TYPE> | ||
</ELEMENTS> | ||
</AR-PACKAGE> | ||
</AR-PACKAGES> | ||
</AUTOSAR> |
Oops, something went wrong.