options

Module Contents

class Option_class_interface[source]

Bases: abc.ABC

Interface of the class ‘Option_class’. It defines all the necessary methods to manage a set of options.

abstract __str__(self)[source]
abstract get_optionValue(self, optionId: int)[source]
abstract set_optionValue(self, optionId: int, value)[source]
abstract get_all_options(self)[source]

Return a dictionnary containing tuples (name of the option, value of the option) :return: dict

abstract set_all_options(self, options: Option_class_interface)[source]

The method allows to define all the options from another object of type ‘Option_class_interface’ :param options: Option_class_interface :return:

abstract add_option(self, idOption: int, name: str, value)[source]
class Options[source]
get_name(self, idOption)[source]
get_value(self, idOption)[source]
add_option(self, idOption, name, value)[source]
set_option(self, idOption, value)[source]
copy(self)[source]
set_self(self, the_options)[source]
__str__(self)[source]
class Option_class[source]

Bases: optimeed.core.options.Option_class_interface

__str__(self)[source]
get_optionValue(self, optionId)[source]
set_optionValue(self, optionId, value)[source]
get_all_options(self)[source]
set_all_options(self, options)[source]
add_option(self, idOption, name, value)[source]
class Option_class_typed[source]

Bases: optimeed.core.options.Option_class_interface

my_names :Dict[int, str]
my_map :Dict[int, str]
my_options_0 :Dict[int, int]
my_options_1 :Dict[int, float]
my_options_2 :Dict[int, bool]
my_options_3 :Dict[int, str]
my_options_4 :Dict[int, List[int]]
my_options_5 :Dict[int, List[float]]
my_options_6 :Dict[int, List[str]]
my_options_7 :Dict[int, List[bool]]
static __get_types()
get_optionValue(self, optionId: int)[source]
set_optionValue(self, optionId: int, value)[source]
get_all_options(self)[source]
add_option(self, idOption: int, name: str, value)[source]
static __match(value, theType)
set_all_options(self, options: Option_class_interface)[source]
__str__(self)[source]