CircuitBreaker
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
- is_open#
Indicates if the circuit breaker is open or closed
- Type
bool
- 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
- 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.colorCircuitBreaker.edgecolorCircuitBreaker.handleCircuitBreaker.lineCircuitBreaker.markerCircuitBreaker.ps_randomCircuitBreaker.size