-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from melodypapa/feature/19
Issue 19: ARXML writer
- Loading branch information
Showing
40 changed files
with
4,016 additions
and
807 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ __pycache__ | |
*.log | ||
docs/py-armodel.und | ||
data | ||
src/armodel/tests/test_files/backup.arxml |
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,26 @@ | ||
Allowed combinations of a specific Type of PortInterface, a specific Type of PortPrototype, and a specific Type of ComSpec | ||
|
||
| Type of PortPrototype | Type of ComSpec | Role of Element | Type of PortInterface | Role of Type-Ref | | ||
| --------------------- | ------------------------- | --------------- | ----------------------- | ------------------------- | | ||
| PPortPrototype | NonqueuedSenderComSpec | dataElement | SenderReceiverInterface | providedInterface | | ||
| PPortPrototype | QueuedSenderComSpec | dataElement | SenderReceiverInterface | providedInterface | | ||
| RPortPrototype | NonqueuedReceiverComSpec | dataElement | SenderReceiverInterface | requiredInterface | | ||
| RPortPrototype | QueuedReceiverComSpec | dataElement | SenderReceiverInterface | requiredInterface | | ||
| PRPortPrototype | NonqueuedSenderComSpec | dataElement | SenderReceiverInterface | providedRequiredInterface | | ||
| PRPortPrototype | NonqueuedReceiverComSpec | dataElement | SenderReceiverInterface | providedRequiredInterface | | ||
| PRPortPrototype | QueuedReceiverComSpec | dataElement | SenderReceiverInterface | providedRequiredInterface | | ||
| PRPortPrototype | QueuedSenderComSpec | dataElement | SenderReceiverInterface | providedRequiredInterface | | ||
| PPortPrototype | NvProvideComSpec | nvData | NvDataInterface | providedInterface | | ||
| RPortPrototype | NvRequireComSpec | nvData | NvDataInterface | requiredInterface | | ||
| PRPortPrototype | NvProvideComSpec | nvData | NvDataInterface | providedRequiredInterface | | ||
| PRPortPrototype | NvRequireComSpec | nvData | NvDataInterface | providedRequiredInterface | | ||
| PPortPrototype | ModeSwitchSenderComSpec | modeGroup | ModeSwitchInterface | providedInterface | | ||
| RPortPrototype | ModeSwitchReceiverComSpec | modeGroup | ModeSwitchInterface | requiredInterface | | ||
| PRPortPrototype | ModeSwitchSenderComSpec | modeGroup | ModeSwitchInterface | providedRequiredInterface | | ||
| PRPortPrototype | ModeSwitchReceiverComSpec | modeGroup | ModeSwitchInterface | providedRequiredInterface | | ||
| PPortPrototype | ParameterProvideComSpec | parameter | ParameterInterface | providedInterface | | ||
| RPortPrototype | ParameterRequireComSpec | parameter | ParameterInterface | requiredInterface | | ||
| PPortPrototype | ServerComSpec | operation | ClientServerInterface | providedInterface | | ||
| RPortPrototype | ClientComSpec | operation | ClientServerInterface | requiredInterface | | ||
| PRPortPrototype | ServerComSpec | operation | ClientServerInterface | providedRequiredInterface | | ||
| PRPortPrototype | ClientComSpec | operation | ClientServerInterface | providedRequiredInterface | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
# Component Types | ||
|
||
![Figure 3.4: Overview of Component Types](figure_3_4_overview_of_component_types.png) |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .models import * | ||
from .parser import ARXMLParser | ||
from .parser import * |
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
File renamed without changes.
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,22 @@ | ||
class SwConnectorData: | ||
def __init__(self) -> None: | ||
self.short_name = "" | ||
|
||
class DelegationSwConnectorData(SwConnectorData): | ||
def __init__(self) -> None: | ||
super().__init__() | ||
|
||
self.inner_swc = "" | ||
self.inner_pport = "" | ||
self.inner_rport = "" | ||
self.outer_pport = "" | ||
self.outer_rport = "" | ||
|
||
class AssemblySwConnectorData(SwConnectorData): | ||
def __init__(self) -> None: | ||
super().__init__() | ||
|
||
self.provider_swc= "" | ||
self.pport = "" | ||
self.requester_swc = "" | ||
self.rport = "" |
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,18 @@ | ||
|
||
from abc import ABCMeta | ||
from .ar_object import ARObject, MultilanguageLongName | ||
|
||
|
||
class GeneralAnnotation(ARObject, metaclass=ABCMeta): | ||
def __init__(self): | ||
if type(self) == ARObject: | ||
raise NotImplementedError("GeneralAnnotation is an abstract class.") | ||
|
||
self.label = None # type: MultilanguageLongName | ||
|
||
super().__init__() | ||
|
||
class Annotation(GeneralAnnotation): | ||
def __init__(self): | ||
super().__init__() | ||
|
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.