Virtual Laboratory Environment pyvle
A multi-modeling and simulation environment to study complex systems
Brought to you by:
quesnel
| File | Date | Author | Commit |
|---|---|---|---|
| cmake | 2008-06-06 |
|
[db0dc9] Initial commit |
| src | 2013-05-31 |
|
[3150ba] Remove deprecated pyvle_open function |
| tests | 2014-05-28 |
|
[472024] switch to vle 1.3 |
| AUTHORS | 2012-04-16 |
|
[4ab88c] Update AUTHORS |
| CMakeCPack.cmake | 2013-07-09 |
|
[b99a08] fix cpack script |
| CMakeLists.txt | 2014-05-28 |
|
[472024] switch to vle 1.3 |
| COPYING | 2008-06-06 |
|
[db0dc9] Initial commit |
| ChangeLog | 2014-05-28 |
|
[472024] switch to vle 1.3 |
| NEWS | 2008-06-06 |
|
[db0dc9] Initial commit |
| README.rst | 2014-05-28 |
|
[472024] switch to vle 1.3 |
A Python binding for the VFL.
See AUTHORS and COPYRIGHT for the list of contributors.
The source tree is currently hosted on Github and Sourceforge. To view the repository online: https://github.com/vle-forge/pyvle The URL to clone it:
git clone git://github.com/vle-forge/pyvle.git
Once you have met requirements, compiling and installing is simple:
cd pyvle mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo .. make make install
PYTHONPATH=$HOME/usr/lib/python2.7:$HOME/usr/lib/python2.7/lib-dynload
cd pyvle mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=$HOME/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo .. make make install
This software in GPLv3 or later. See the file COPYING. Some files are under a different license. Check the headers for the copyright info.
$ python
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyvle
>>> from pyvle import Vle
>>> dir(pyvle.Vle)
>>> f = Vle("my_vpz","my_package")
>>> print(f)
<pyvle.Vle instance at 0x7fe231515e60>
>>> f.listConditions()
['cond', 'cond_A', 'cond_B', 'cond_C', 'cond_D', 'cond_sum' ]
>>> f.listConditionPorts('cond_A')
['name', 'value']
>>> f.getConditionPortValues('cond_A', 'value')
0.0
>>> f.clearConditionPort('cond_A', 'value')
>>> f.addRealCondition('cond_A', 'value', 1)
>>> f.getConditionPortVal