af.controller.hierarchies package

Submodules

af.controller.hierarchies.BaseHierarchyController module

class af.controller.hierarchies.BaseHierarchyController.BaseHierarchyController(hierarchy=None)[source]

Bases: object

Class that is intended to be used for the load and save of BaseHierarchy instances

get_hierarchy_representation()[source]

Returns the representation of the hierarchy (If it exists)

Return type:dict
load_hierarchy(config, attribute_type='string')[source]

Given a configuration, it loads the hierarchy that was saved.

Parameters:
  • config – Configuration in the form of a dictionary that associates values with its parent level values. If its a string, then it is assumed that the hierarchy was a suprression hierarchy.
  • attribute_type (string) – The specific type of the attribute.

Module contents