Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PyI40AAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informations- und Automatisierungssysteme
PyI40AAS
Commits
1ba9dff0
Commit
1ba9dff0
authored
5 years ago
by
Michael Thies
Browse files
Options
Downloads
Patches
Plain Diff
model: Make Operation a Namespace for refering to its variables
Fixes
#28
parent
7a88844b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#217568
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
aas/model/submodel.py
+7
-8
7 additions, 8 deletions
aas/model/submodel.py
with
7 additions
and
8 deletions
aas/model/submodel.py
+
7
−
8
View file @
1ba9dff0
...
...
@@ -781,7 +781,7 @@ class OperationVariable(SubmodelElement):
self
.
value
:
SubmodelElement
=
value
class
Operation
(
SubmodelElement
):
class
Operation
(
SubmodelElement
,
base
.
Namespace
):
"""
An operation is a submodel element with input and output variables.
...
...
@@ -791,9 +791,9 @@ class Operation(SubmodelElement):
"""
def
__init__
(
self
,
id_short
:
str
,
input_variable
:
Optional
[
Set
[
OperationVariable
]
]
=
None
,
output_variable
:
Optional
[
Set
[
OperationVariable
]
]
=
None
,
in_output_variable
:
Optional
[
Set
[
OperationVariable
]
]
=
None
,
input_variable
:
Iterable
[
OperationVariable
]
=
()
,
output_variable
:
Iterable
[
OperationVariable
]
=
()
,
in_output_variable
:
Iterable
[
OperationVariable
]
=
()
,
category
:
Optional
[
str
]
=
None
,
description
:
Optional
[
base
.
LangStringSet
]
=
None
,
parent
:
Optional
[
base
.
Namespace
]
=
None
,
...
...
@@ -827,10 +827,9 @@ class Operation(SubmodelElement):
"""
super
().
__init__
(
id_short
,
category
,
description
,
parent
,
data_specification
,
semantic_id
,
qualifier
,
kind
)
self
.
input_variable
:
Set
[
OperationVariable
]
=
set
()
if
input_variable
is
None
else
input_variable
self
.
output_variable
:
Set
[
OperationVariable
]
=
set
()
if
output_variable
is
None
else
output_variable
self
.
in_output_variable
:
Set
[
OperationVariable
]
=
set
()
\
if
in_output_variable
is
None
else
in_output_variable
self
.
input_variable
:
base
.
NamespaceSet
[
OperationVariable
]
=
base
.
NamespaceSet
(
self
,
input_variable
)
self
.
output_variable
:
base
.
NamespaceSet
[
OperationVariable
]
=
base
.
NamespaceSet
(
self
,
output_variable
)
self
.
in_output_variable
:
base
.
NamespaceSet
[
OperationVariable
]
=
base
.
NamespaceSet
(
self
,
in_output_variable
)
class
Capability
(
SubmodelElement
):
...
...
This diff is collapsed.
Click to expand it.
Michael Thies
@mhthies
mentioned in commit
2d3ea45a
·
5 years ago
mentioned in commit
2d3ea45a
mentioned in commit 2d3ea45a92572e688ecefce8855e88f286cbec69
Toggle commit list
Michael Thies
@mhthies
mentioned in commit
b6dc493d
·
5 years ago
mentioned in commit
b6dc493d
mentioned in commit b6dc493d6fa8c71be1957907fe3f8a9c532a1655
Toggle commit list
Michael Thies
@mhthies
mentioned in commit
0fee9b12
·
5 years ago
mentioned in commit
0fee9b12
mentioned in commit 0fee9b12537ed7b49ce3586d870bbc9cca93f636
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment