xarconverter
converter
node
choregraphe_project.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
6
7
""" Contains a class that holds diagram informations
8
.. module:: node
9
"""
10
11
import
converter.node
as
node
12
13
14
class
ChoregrapheProject
(
node.Node
):
15
""" Stores informations about behavior entry point
16
"""
17
18
def
__init__
(self, attrs):
19
super(ChoregrapheProject, self).
__init__
(
"ChoregrapheProject"
)
20
21
# Attributes
22
self.
name
= attrs.getValue(
"name"
)
23
self.
format_version
= attrs.getValue(
"format_version"
)
24
25
# Elements
26
self.
root_box
=
None
27
28
# Function map to speed up process
29
self.
_function_map
= {
30
'BoxInstance'
: ChoregrapheProject.attach_root_box}
31
32
def
beacon
(self):
33
return
"ChoregrapheProject"
34
35
def
attach_root_box
(self, root_box):
36
self.
root_box
= root_box
converter.node.choregraphe_project.ChoregrapheProject.format_version
format_version
Definition:
choregraphe_project.py:23
converter.node
Definition:
xarconverter/converter/node/__init__.py:1
converter.node.choregraphe_project.ChoregrapheProject.beacon
def beacon(self)
Definition:
choregraphe_project.py:32
converter.node.choregraphe_project.ChoregrapheProject.__init__
def __init__(self, attrs)
Definition:
choregraphe_project.py:18
converter.node.Node._function_map
_function_map
Definition:
xarconverter/converter/node/__init__.py:25
converter.node.choregraphe_project.ChoregrapheProject.root_box
root_box
Definition:
choregraphe_project.py:26
converter.node.choregraphe_project.ChoregrapheProject.attach_root_box
def attach_root_box(self, root_box)
Definition:
choregraphe_project.py:35
converter.node.choregraphe_project.ChoregrapheProject
Definition:
choregraphe_project.py:14
converter.node.Node.name
name
Definition:
xarconverter/converter/node/__init__.py:18
converter.node.Node
Definition:
xarconverter/converter/node/__init__.py:12
naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41