class openalea.oalab.model.visualea.ModelNode(model, inputs=(), outputs=())[source]

Bases: openalea.core.node.Node

set_model(model)[source]
class openalea.oalab.model.visualea.ModelNodeFactory(name, lazy=True, delay=0, alias=None, **kargs)[source]

Bases: openalea.core.node.AbstractFactory

get_classobj()[source]
get_documentation()[source]
get_id()[source]
get_writer()[source]

Return the writer class

instantiate(call_stack=[])[source]

Returns a node instance. :param call_stack: the list of NodeFactory id already in call stack (in order to avoir infinite recursion)

instantiate_widget(node=None, parent=None, edit=False, autonomous=False)[source]

Return the corresponding widget initialised with node

package[source]
class openalea.oalab.model.visualea.PyModelNodeFactoryWriter(factory)[source]

Bases: object

NodeFactory python Writer

nodefactory_template = '\n\n$NAME = ModelFactory(name=$PNAME,\n inputs=$LISTIN,\n outputs=$LISTOUT,\n )\n\n'
class openalea.oalab.model.visualea.VisualeaFile(**kwargs)[source]

Bases: openalea.core.data.Data

default_file_name = 'workflow.wpy'
default_name = 'Workflow'
dtype = 'Workflow'
extension = 'wpy'
icon = ':/images/resources/openalealogo.png'
mimetype = 'text/x-visualea'
pattern = '*.wpy'
class openalea.oalab.model.visualea.VisualeaModel(**kwargs)[source]

Bases: openalea.core.model.Model

animate(*args, **kwargs)[source]

run model step by step

eval_value(value)[source]
execute(code=None)[source]

In other paradigms: Execute code (str). Here this method does not have signification (only for "script-like" paradigm), so, it make a run.

get_documentation()[source]
Returns:docstring of current workflow
init(*args, **kwargs)[source]

go back to initial step

namespace(**kwargs)[source]
repr_code()[source]
Returns:a string representation of model to save it on disk
run(*args, **kwargs)[source]

execute entire model

set_code(code)[source]
step(*args, **kwargs)[source]

execute only one step of the model

stop(*args, **kwargs)[source]

stop execution

default_file_name = 'workflow.wpy'
default_name = 'Workflow'
dtype = 'Workflow'
extension = 'wpy'
icon = ':/images/resources/openalealogo.png'
inputs_info[source]
mimetype = 'text/x-visualea'
outputs_info[source]
pattern = '*.wpy'
openalea.oalab.model.visualea.monkey_patch_instantiate_node(self, vid, call_stack=None)[source]

Previous topic

<no title>

Next topic

openalea.oalab.package package

This Page