CircuitBreaker#

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

Common base class for circuit breakers

name#

Name of the circuit breaker

Type

string

line#

The line the circuit breaker is connected to

Type

Line

is_open#

Indicates if the circuit breaker is open or closed

Type

bool

outage_time#

The outage time of the circuit breaker

Type

Time

coordinate#

Coordinate of the circuit breaker

Type

list

initial_state#

The initial state of the circuit breaker

Type

bool

failed#

True if the circuit breaker is in a failed state, False if not

Type

bool

history#

Dictonary attribute that stores the historic variables

Type

dict

close()[source]#

Closes the circuit breaker and the disconnectors connected to the host line

open()[source]#

Opens the circuit breaker and the disconnectors connected to the host line

fail()[source]#

Sets the circuit breaker to failed and opens the circuit breaker

not_fail()[source]#

Sets the circuit breaker to not failed and closes the circuit breaker

update_fail_status(dt)[source]#

Updates the failure status of the circuit breaker

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

print_status()[source]#

Prints the status

reset_status(save_flag)[source]#

Resets and sets the status of the system parameters

CircuitBreaker.add_random_instance(random_gen)

Adds global random seed

CircuitBreaker.close()

Closes the circuit breaker and the disconnectors connected to the circuit breaker

CircuitBreaker.fail()

Sets the circuit breaker to failed and opens the circuit breaker

CircuitBreaker.get_history(attribute)

Returns the history variables of an attribute

CircuitBreaker.initialize_history()

Initializes the history variables

CircuitBreaker.not_fail()

Sets the circuit breaker to not failed and closes the circuit breaker

CircuitBreaker.open()

Opens the circuit breaker and the disconnectors connected to the circuit breaker

CircuitBreaker.print_status()

Prints the status :param None:

CircuitBreaker.reset_status(save_flag)

Resets and sets the status of the class parameters

CircuitBreaker.update_fail_status(dt)

Updates the failuer status of the circuit breaker

CircuitBreaker.update_history(prev_time, ...)

Updates the history variables

CircuitBreaker.color

CircuitBreaker.edgecolor

CircuitBreaker.handle

CircuitBreaker.line

CircuitBreaker.marker

CircuitBreaker.ps_random

CircuitBreaker.size