cars.applications.application

This module contains class application factory.

Classes

Application

Application factory:

Module Contents

class cars.applications.application.Application[source]

Application factory: A class designed for registered all available Cars application and instantiate when needed.

available_applications
classmethod create_app(name: str, cfg: cars.conf.input_parameters.ConfigType, scaling_coeff: float = 1)[source]

Factory command to create the application Return the instance of application associated with the application name given as parameter

Parameters:
  • app_name (str) – name of the application.

  • cfg (dictionary) – configuration {‘matching_cost_method’: value}

  • scaling_coeff (float) – scaling factor for resolution

classmethod print_applications()[source]

Print all registered applications

classmethod register(app_name: str)[source]

Allows to register the application with its name :param app_name: the application to be registered :type app_name: string