将xwot模型转换为各种代码片段
xWoTModelTranslator的Python项目详细描述
#model2code model2code converter
>将xwot元模型转换成可执行的python代码。
/>txt文件编译项目并将其安装到pyhton库(例如/usr/local/lib/python2.7/dist packages/xwot_model_translator-1.1-py2.7.egg)。此外,它还将在/usr/local/bin/:
*physical2virtualities
*model2python
*model2wadl
将configuration和logging.conf复制到/etc/model2wadl/中,但也可以通过在用户主页中放置一个同名文件(但前缀为dot-eg.logging.conf)来覆盖它们。目录或当前工作目录中同名的文件。
sudo python setup.py clean--all
>sudo rm-rf-build/dist/xwotmodelttranslator.egg.egg-info/files.txt
;卸载
;方法1
cat files.txt\sudo xargs rm-rf
;方法2
首先找到安装了pip的软件包并将其卸载
/>
~/documents/programming/python/model2wadl[master 1…1]
12:13$pip freeze grep xwot*
3:xwotmodelttranslator==1.1
~/documents/programming/python/model2wadl[master 1…1]
12:13$sudo pip uninstall xwotmodelttranslator
卸载xwotmodelttranslator:
/library/python/2.7/site packages/xwotmodelttranslator-1.1-py2.7.egg
/usr/local/bin/model2python
/usr/local/bin/model2wadl
/usr/local/bin/physical2virtualities
继续(y/n)?y
成功地卸载了xwotmodeltranslator
~/documents/programming/python/model2wadl[master 1…1]
12:13$
第一个用于增强xwot模型(使用相应的eclipse插件创建,请参见https://github.com/aruppen/architecture4xwot了解如何获取此eclipse插件),该模型仅包含设备的虚拟端和相应的虚拟端。第二个脚本采用最终的xwot模型并将其转换为代码骨架。sekeltons代码将所选的层次结构反映为基于python和autobahn的restful web服务。
>将xwot元模型转换成可执行的python代码。
/>txt文件编译项目并将其安装到pyhton库(例如/usr/local/lib/python2.7/dist packages/xwot_model_translator-1.1-py2.7.egg)。此外,它还将在/usr/local/bin/:
*physical2virtualities
*model2python
*model2wadl
将configuration和logging.conf复制到/etc/model2wadl/中,但也可以通过在用户主页中放置一个同名文件(但前缀为dot-eg.logging.conf)来覆盖它们。目录或当前工作目录中同名的文件。
sudo python setup.py clean--all
>sudo rm-rf-build/dist/xwotmodelttranslator.egg.egg-info/files.txt
;卸载
;方法1
cat files.txt\sudo xargs rm-rf
;方法2
首先找到安装了pip的软件包并将其卸载
/>
~/documents/programming/python/model2wadl[master 1…1]
12:13$pip freeze grep xwot*
3:xwotmodelttranslator==1.1
~/documents/programming/python/model2wadl[master 1…1]
12:13$sudo pip uninstall xwotmodelttranslator
卸载xwotmodelttranslator:
/library/python/2.7/site packages/xwotmodelttranslator-1.1-py2.7.egg
/usr/local/bin/model2python
/usr/local/bin/model2wadl
/usr/local/bin/physical2virtualities
继续(y/n)?y
成功地卸载了xwotmodeltranslator
~/documents/programming/python/model2wadl[master 1…1]
12:13$
第一个用于增强xwot模型(使用相应的eclipse插件创建,请参见https://github.com/aruppen/architecture4xwot了解如何获取此eclipse插件),该模型仅包含设备的虚拟端和相应的虚拟端。第二个脚本采用最终的xwot模型并将其转换为代码骨架。sekeltons代码将所选的层次结构反映为基于python和autobahn的restful web服务。