BalancingZones#

class caf.base.BalancingZones(segmentation, default_zoning, segment_zoning, segment_values=None)[source]#

Bases: object

Stores the zoning systems for the attraction model balancing.

Allows a different zone system to be defined for each segment and a default zone system. An instance of this class can be iterated through to give the groups of segments defined for each unique zone system.

Parameters:
  • segmentation (Segmentation) – Segmentation level of the attractions being balanced.

  • default_zoning (ZoningSystem) – Default zoning system to use for any segments which aren’t given in segment_zoning.

  • segment_zoning (Dict[str, ZoningSystem]) – Dictionary containing the name of the segment (key) and the zoning system for that segment (value).

  • segment_values (dict[str, list[int]] | None)

Attributes

unique_zoning

Dictionary containing a lookup of segments to zoning systems.

Methods

__init__(segmentation, default_zoning, ...)

get_zoning(segment_name)

Return ZoningSystem for given segment_name.

load(path)

Load balancing zones from config file.

save(path)

Save balancing zones to output file.

zoning_groups()

Iterate through the unique zoning systems and provides list of segments.

Attributes Documentation

unique_zoning#

Dictionary containing a lookup of segments to zoning systems.