Disconnector#

class relsad.network.components.Disconnector(name: str, line: relsad.network.components.Line.Line, bus: relsad.network.components.Bus.Bus, is_open: bool = False, fail_rate: float = 0.014, outage_time: relsad.Time.Time = HOUR_1)[source]#

Common base class for disconnectors

name#

Name of the disconnector

Type

string

coordinate#

The coordinate of the disconnector

Type

list

initial_state#

The initial state of the disconnector (open or colsed)

Type

bool

is_open#

Tells if the switch is open (True) or closed (False)

Type

bool

failed#

True if the disconnector is in a failed state, False if not

Type

bool

fail_rate#

The failure rate of the disconnector [no. of fails per year]

Type

float

outage_time#

The outage time of the diconnector

Type

Time

line#

The line the disconnecor is connected to

Type

Line

base_bus#

Wich bus the disconnector is closes to (for setting coordinates)

Type

Bus

intelligent_switch#

Returns the intelligent switch connected to the disconnector if any

Type

IntelligentSwitch

history#

Dictonary attribute that stores the historic variables

Type

dict

close()[source]#

Closes the disconnector

open()[source]#

Opens the disconnector

fail()[source]#

Sets the disconnector to failed and opens the disconnector

not_fail()[source]#

Sets the doconnector to not failed and closes the disconnector

initialize_history()[source]#

Initializes the history variables

update_history(prev_time, curr_time, save_flag)[source]#

Updates the history variables

get_history(attribute)[source]#

Returns the history variables of an attribute

add_random_instance(random_gen)[source]#

Adds global random seed

reset_status(save_falg)[source]#

Resets and sets the status of the system parameters

Disconnector.add_random_instance(random_gen)

Adds global random seed

Disconnector.close()

Closes the disconnector

Disconnector.fail()

Sets the disconnector to failed and opens the disconnector

Disconnector.get_history(attribute)

Returns the history variables of an attribute

Disconnector.initialize_history()

Initializes the history variables

Disconnector.not_fail()

Sets the disconnector to not failed and closes the disconnector

Disconnector.open()

Opens the disconnector

Disconnector.print_status()

rtype

None

Disconnector.reset_status(save_flag)

Resets and sets the status of the class parameters

Disconnector.update_fail_status(dt)

param dt

The current time step

Disconnector.update_history(prev_time, ...)

Updates the history variables

Disconnector.color

Disconnector.edgecolor

Disconnector.handle

Disconnector.line

Disconnector.marker

Disconnector.ps_random

Disconnector.size