Section#

class relsad.network.containers.Section(parent_section, lines: list, switches: list)[source]#

Common class for sections

lines#

List of lines in the section

Type

list

switches#

List of switches in the section

Type

list

parent_section#

The parent section for the section

Type

Section

child_sections#

List of child sections

Type

list

state#

The state of the section

Type

SectionState

add_child_section(section)[source]#

Adds child section to section

attach_to_lines()[source]#

Adds lines to section and child section

connect(dt)[source]#

Connects the sections, connects the lines in the section and closes the switches in the section

connect_manually()[source]#

Connects the sections, connects the lines in the section and closes the switches in the section. Used when no ICT

get_disconnect_time(dt)[source]#

Returns the total outage time (the time the section is disconnected) of the section

disconnect()[source]#

Disconnects the section, the lines in the section, and opens the switches in the section

Section.add_child_section(section)

Adds child section to section

Section.attach_to_lines()

Adds lines to section and child section

Section.connect(dt, controller)

Connects the sections, connects the lines in the section and closes the switches in the section

Section.connect_manually()

Connects the sections, connects the lines in the section and closes the switches in the section.

Section.disconnect()

Disconnects the section, the lines in the section, and opens the switches in the section

Section.get_disconnect_time(dt, controller)

Returns the total outage time (the time the section is disconnected) of the section

Section.rank

Section.lines

Section.switches

Section.parent_section

Section.child_sections

Section.state