Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Ocarina
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
Ocarina
Commits
b597f33d
Commit
b597f33d
authored
Aug 06, 2016
by
Jerome Hugues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Bind getSourcePorts and getDestinationPorts
parent
f5e51267
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
resources/runtime/python/ocarina/ocarina.py
resources/runtime/python/ocarina/ocarina.py
+21
-1
No files found.
resources/runtime/python/ocarina/ocarina.py
View file @
b597f33d
...
...
@@ -122,6 +122,26 @@ def getPropertyValue (nodeId,propertyId):
################################################################################
def
getPropertyValueByName
(
nodeId
,
propertyString
):
'''Get the value of the property
'''Get the value of the property propertyString applied to model
element nodeId.
'''
return
runOcarinaFunction
(
libocarina_python
.
getPropertyValueByName
,
nodeId
,
propertyString
)
################################################################################
def
getSourcePorts
(
feature_nodeId
):
'''Get the source port associated to the feature_nodeId passed as
parameter, in the case feature_nodeId participates in a
connection.
'''
return
runOcarinaFunction
(
libocarina_python
.
getSourcePorts
,
nodeId
)
################################################################################
def
getDestinationPorts
(
nodeId
):
'''Get the destination port associated to the feature_nodeId passed as
parameter, in the case feature_nodeId participates in a
connection.
'''
return
runOcarinaFunction
(
libocarina_python
.
getDestinationPorts
,
nodeId
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment