Fork me on GitHub

bolero.wrapper.CppBLLoader

class bolero.wrapper.CppBLLoader

Behavior learning loader.

This is the Python wrapper around the C++ library.

__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

acquire_behavior()

Get a behavior.

Parameters:
name : str

Name of the corresponding shared library.

Returns:
behavior : CppLoadableBehavior

Behavior instance.

Get a behavior search.

Parameters:
name : str

Name of the corresponding shared library.

Returns:
optimizer : CppBehaviorSearch

Behavior search instance.

acquire_contextual_environment()

Get an contextual environment.

name : CppContextualEnvironment
ContextualEnvironment instance.
acquire_environment()

Get an environment.

Parameters:
name : str

Name of the corresponding shared library.

Returns:
optimizer : CppEnvironment

Environment instance.

acquire_optimizer()

Get an optimizer.

Parameters:
name : str

Name of the corresponding shared library.

Returns:
optimizer : CppOptimizer

Optimizer instance.

acquire_parameterized_environment()

Get an parameterized environment.

name : CppParameterizedEnvironment
ParameterizedEnvironment instance.
load_config_file()

Load list of libraries for the libManager from a file.

Parameters:
config_file : str

Path to the configuration file for the libManager. The file should contain a list of shared libraries that can be loaded by the libManager.

load_library()

Load library from a file.

Parameters:
lib_path : str

Path to the library file for the libManager.

release_library()

Release a C++ library.