cars.applications.application

This module contains class application factory.

Module Contents

Classes

Application

Application factory:

class cars.applications.application.Application

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)

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}

classmethod print_applications()

Print all registered applications

classmethod register(app_name: str)

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