Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
8fce76cf
Commit
8fce76cf
authored
Apr 15, 2014
by
yoogx
Browse files
* Update documentation of ocarina module
parent
e4ed68a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/runtime/python/ocarina.py
View file @
8fce76cf
#! /usr/bin/python
'''Python binding to the Ocarina AADL processor'''
'''
:mod:`ocarina` -- Python binding to the Ocarina AADL processor
==============================================================
.. moduleauthor:: Jerome Hugues
This module provides direct access to top-level functions of Ocarina
to load, parse, instantiate AADL models, and to invoke backends.
'''
################################################################################
import
libocarina_python
;
# Ocarina bindings
...
...
@@ -37,12 +46,18 @@ def analyze ():
################################################################################
def
instantiate
(
root_system
):
'''Instantiate models'''
'''Instantiate model, starting from root_system
:param root_system: name of the root system to instantiate
:type root_system: string
'''
libocarina_python
.
instantiate
(
root_system
);
################################################################################
Backends
=
Enum
([
"polyorb_hi_ada"
,
"polyorb_hi_c"
]);
'''Supported backends'''
# Note, this list should match backend names as specific in Ocarina CLI
def
generate
(
generator
):
'''Generate code
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment