BalancingZones#
- class caf.base.data_structures.BalancingZones(segmentation, default_zoning, segment_zoning, segment_values=None)[source]#
Bases:
objectStores 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).
Attributes
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.
Iterate through the unique zoning systems and provides list of segments.
Attributes Documentation
- unique_zoning#
Dictionary containing a lookup of segments to zoning systems.