Overview of different classes#
Create an actor#
The class IActor implements an interface to emulate a function.
>>> import openalea.core as core
>>> a = openalea.core.actor.IActor()
Create a new package#
>>> p = core.Package
The package manager#
The module openalea.core.pkgmanager contains a class to manage the packages, which is called PackageManager.
>>> pm = pkgmanager.PackageManager()
>>> pm.init(verbose=False)
The PackageManager is a Dictionary of Packages. You can access to its keys using the standard dict methods. If you want to access to a particular Package, use the packageManager instance as a dictionary. r instance:
>>> pm.keys()
>>> pm['openalea.math']
that returns a list of nodes. To access to a particular node, use:
>>> pm['openalea.math']['floor']
<openalea.core.node.NodeFactory object at 0x936906c>
The floor node exists in the openalea.math package. The node floor is managed through a NodeFactory.