Exemplo n.º 1
0
    def get_point(self, sequence_number: int) -> Optional[PositionPoint]:
        """
        Get the `sequence_number` `PositionPoint` for this `DiagramObject`.

        `sequence_number` The sequence number of the `PositionPoint` to get.
        Returns The `PositionPoint` identified by `sequence_number`
        Raises IndexError if this `Location` didn't contain `sequence_number` points.
        """
        return self._position_points[sequence_number] if 0 < nlen(
            self._position_points) < sequence_number else None
Exemplo n.º 2
0
 def num_energizing_substations(self):
     """Return the number of end `zepben.evolve.cim.iec61970.base.core.substation.Substation`s associated with this `Loop`"""
     return nlen(self._energizing_substations)
Exemplo n.º 3
0
 def num_phases(self):
     """Get the number of `EnergySourcePhase`s for this `EnergyConsumer`."""
     return nlen(self._energy_consumer_phases)
Exemplo n.º 4
0
 def num_points(self):
     """
     Returns the number of `DiagramObjectPoint`s associated with this `DiagramObject`
     """
     return nlen(self._diagram_object_points)
Exemplo n.º 5
0
 def num_agreements(self) -> int:
     """
     Get the number of `zepben.evolve.iec61968.customers.customer_agreement.CustomerAgreement`s associated with this `Customer`.
     """
     return nlen(self._customer_agreements)
Exemplo n.º 6
0
 def num_substations(self) -> int:
     """
     Returns The number of `zepben.evolve.iec61970.base.core.substation.Substation`s associated with this `SubGeographicalRegion`
     """
     return nlen(self._substations)
Exemplo n.º 7
0
 def num_circuits(self):
     """
     Returns The number of `zepben.evolve.cim.infiec61970.feeder.circuit.Circuit`s associated with this `Substation`
     """
     return nlen(self._circuits)
Exemplo n.º 8
0
 def num_usage_points(self):
     """
     Returns The number of `zepben.evolve.cim.iec61968.metering.metering.UsagePoint`s associated with this `EndDevice`
     """
     return nlen(self._usage_points)
 def num_tariffs(self):
     """
     Returns The number of `zepben.evolve.cim.iec61968.customers.tariff.Tariff`s associated with this `PricingStructure`
     """
     return nlen(self._tariffs)
Exemplo n.º 10
0
 def num_equipment(self):
     """
     Returns the number of `zepben.evolve.cim.iec61970.base.core.equipment.Equipment` associated with this `OperationalRestriction`
     """
     return nlen(self._equipment)
Exemplo n.º 11
0
 def num_streetlights(self) -> int:
     """
     Get the number of `zepben.evolve.cim.iec61968.assets.streetlight.Streetlight`s associated with this `Pole`.
     """
     return nlen(self._streetlights)
Exemplo n.º 12
0
 def num_restrictions(self) -> int:
     """
     Returns The number of `zepben.evolve.cim.iec61968.operations.operational_restriction.OperationalRestriction`s associated with this `Equipment`
     """
     return nlen(self._operational_restrictions)
Exemplo n.º 13
0
 def num_current_feeders(self) -> int:
     """
     Returns The number of `zepben.evolve.cim.iec61970.base.core.equipment_container.Feeder`s associated with this `Equipment`
     """
     return nlen(self._current_feeders)
 def num_equipment(self):
     """
     Returns The number of `zepben.evolve.iec61970.base.core.equipment.Equipment` associated with this `EquipmentContainer`
     """
     return nlen(self._equipment)
Exemplo n.º 15
0
 def num_circuits(self):
     """Return the number of end `zepben.evolve.cim.infiec61970.base.core.circuit.Circuit`s associated with this `Loop`"""
     return nlen(self._circuits)
Exemplo n.º 16
0
 def num_end_devices(self):
     """
     Returns The number of `zepben.evolve.cim.iec61968.metering.metering.EndDevice`s associated with this `UsagePoint`
     """
     return nlen(self._end_devices)
Exemplo n.º 17
0
 def is_metered(self):
     """
     Check whether this `UsagePoint` is metered. A `UsagePoint` is metered if it's associated with at least one `EndDevice`.
     Returns True if this `UsagePoint` has an `EndDevice`, False otherwise.
     """
     return nlen(self._end_devices) > 0
Exemplo n.º 18
0
 def num_end_terminals(self):
     """Return the number of end `Terminal`s associated with this `Circuit`"""
     return nlen(self._end_terminals)
Exemplo n.º 19
0
 def num_energized_loops(self):
     """
     Returns The number of `zepben.evolve.cim.infiec61970.feeder.loop.Loop`s associated with this `Substation`
     """
     return nlen(self._energized_loops)
Exemplo n.º 20
0
 def num_end_substations(self):
     """Return the number of end `Substation`s associated with this `Circuit`"""
     return nlen(self._end_substations)
Exemplo n.º 21
0
 def num_feeders(self):
     """
     Returns The number of `zepben.evolve.cim.iec61970.base.core.equipment_container.Feeder`s associated with this `Substation`
     """
     return nlen(self._normal_energized_feeders)
Exemplo n.º 22
0
 def has_phases(self):
     """
     Check if this source has any associated `EnergySourcePhase`s
     Returns True if there is at least one `EnergySourcePhase`, otherwise False
     """
     return nlen(self._energy_source_phases) > 0
Exemplo n.º 23
0
 def num_sub_geographical_regions(self) -> int:
     """
     Returns The number of `SubGeographicalRegion`s associated with this `GeographicalRegion`
     """
     return nlen(self._sub_geographical_regions)
Exemplo n.º 24
0
 def num_phases(self):
     """Return the number of `EnergySourcePhase`s associated with this `EnergySource`"""
     return nlen(self._energy_source_phases)
Exemplo n.º 25
0
 def num_objects(self):
     """
     Returns The number of `DiagramObject`s associated with this `Diagram`
     """
     return nlen(self._diagram_objects)
Exemplo n.º 26
0
 def num_points(self):
     """
     Returns The number of `PositionPoint`s in this `Location`
     """
     return nlen(self._position_points)
Exemplo n.º 27
0
 def has_phases(self):
     """
     Check if this consumer has any associated `EnergyConsumerPhases`
     Returns True if there is at least one `EnergyConsumerPhase`, otherwise False
     """
     return nlen(self._energy_consumer_phases) > 0
Exemplo n.º 28
0
 def num_equipment(self):
     """
     Returns The number of `zepben.evolve.cim.iec61970.base.core.equipment.Equipment`s associated with this `UsagePoint`
     """
     return nlen(self._equipment)
Exemplo n.º 29
0
 def num_ends(self):
     """
     Get the number of `PowerTransformerEnd`s for this `PowerTransformer`.
     """
     return nlen(self._power_transformer_ends)
 def num_pricing_structures(self):
     """
     The number of `zepben.evolve.cim.iec61968.customers.pricing_structure.PricingStructure`s associated with this `CustomerAgreement`
     """
     return nlen(self._pricing_structures)