예제 #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
예제 #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)
예제 #3
0
 def num_phases(self):
     """Get the number of `EnergySourcePhase`s for this `EnergyConsumer`."""
     return nlen(self._energy_consumer_phases)
예제 #4
0
 def num_points(self):
     """
     Returns the number of `DiagramObjectPoint`s associated with this `DiagramObject`
     """
     return nlen(self._diagram_object_points)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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
예제 #18
0
 def num_end_terminals(self):
     """Return the number of end `Terminal`s associated with this `Circuit`"""
     return nlen(self._end_terminals)
예제 #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)
예제 #20
0
 def num_end_substations(self):
     """Return the number of end `Substation`s associated with this `Circuit`"""
     return nlen(self._end_substations)
예제 #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)
예제 #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
예제 #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)
예제 #24
0
 def num_phases(self):
     """Return the number of `EnergySourcePhase`s associated with this `EnergySource`"""
     return nlen(self._energy_source_phases)
예제 #25
0
 def num_objects(self):
     """
     Returns The number of `DiagramObject`s associated with this `Diagram`
     """
     return nlen(self._diagram_objects)
예제 #26
0
 def num_points(self):
     """
     Returns The number of `PositionPoint`s in this `Location`
     """
     return nlen(self._position_points)
예제 #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
예제 #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)
예제 #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)