here.content.hmc2.environmental_zone_conditions module
here.content.hmc2.environmental_zone_conditions module
Bindings for the Associated Segments from Navigation Attributes and Environmental Zones Layers.
class here.content.hmc2.environmental_zone_conditions.EnvironmentalZoneConditions(content: Content, layer_id: str, adapter: Adapter | None = None)
Bases: BaseAttributesMultiLayerBinding
class to associate segment with environmental zones
classmethod associate_ezc_ez(environmental_zone_condition: Iterable[object], partition_id: str) List[SegmentToEnvironmentalZone]
Associate environmental_zone_condition with environment_zone.
Parameters:
-
environmental_zone_condition – a dict of segment to environmental zone condition.
-
partition_id – partition id of the base layer.
Returns:
list of SegmentToEnvironmentalZone object.
classmethod associated_layers() Dict[str, SingleLayerBinding]
Provide associated dependent/independent layers to the base layer.
Returns:
dict of key as single layer and value as SingleLayerBinding Object.
classmethod object_types() Mapping[str, type]
Returns:
the types of attributes supported by this binding
classmethod parse_and_index(partition_id: str, msg: Message) ContentPartition
Parse and index decoded message.
Parameters:
-
partition_id – identifier of the partition
-
msg – decoded content from the layer, in the form of a Protobuf message
Returns:
the content of a partition parsed and indexed in its own data structure
classmethod schema_hrn() List[str]
Returns:
the HRN of schema this binding can parse and index
class here.content.hmc2.environmental_zone_conditions.SegmentToEnvironmentalZone(partition_id: Partition, segment_ref: SegmentRef, forward: bool, backward: bool, applies_to: Dict[str, bool], zone: Zone)
Bases: object
Segment to Ennvironmental Zone
applies_to: Dict[str, bool]
backward: bool
forward: bool
indexer = ContentIndexer(partition='partition_id', identifier=None, refs={'location':</span> <span class="pre"><function</span> <span class="pre">SegmentToEnvironmentalZone.<lambda>>,</span> <span class="pre">'segment':</span> <span class="pre"><function</span> <span class="pre">SegmentToEnvironmentalZone.<lambda>>})
partition_id: Partition
segment_ref: SegmentRef
zone: Zone