This module provides an actor interface

class core.actor.IActor[source]

Bases: object

Interface to emulate a function

The class IActor implements an interface to emulate a function. It has functions to inputs() and outputs().

Examples:
>>> import openalea.core
>>> a = openalea.core.actor.IActor()
eval()[source]

Computes output values when input is set

inputs()[source]

Iterates on all input descriptions

Returns:iter of (input key, input interface)
output(key)[source]

Get value computed of the output

Parameters:key -- a specified key
Returns:the corresponding value
outputs()[source]

Iterates on all output descriptions

Returns:iter of (output key, output interface)
set_input(key, value)[source]

Set input specified by a key to the given value

Parameters:
  • key -- the input key
  • value -- the value key corresponding to the key

Previous topic

<no title>

Next topic

<no title>

This Page