Abstract Factory classes and methods.

A Factory build Functor (Nodes or Pluggings) from its description. Factories instantiates Functors.

class core.factory.AbstractFactory[source]

Bases: object

Abstract Factory is Factory base class.

Properties:
  • name
  • metainfo
  • module
  • distribution (aka egg name)
instantiate(call_stack=[])[source]

Return a node instance

Parameters:call_stack -- the list of NodeFactory id already in call stack (in order to avoir infinite recursion)
is_valid()[source]

Return True if the factory is valid else raise an exception

mimetype = 'openalea/factory'

Previous topic

<no title>

Next topic

<no title>

This Page