ICTLine#

class relsad.network.components.ICTLine(name: str, fnode: relsad.network.components.ICTNode.ICTNode, tnode: relsad.network.components.ICTNode.ICTNode, repair_time_dist: relsad.StatDist.StatDist.StatDist = <relsad.StatDist.StatDist.StatDist object>, fail_rate_per_year: float = 0.0, connected=True)[source]#

A class used to represent an ICT Line

name#

Name of the line

Type

str

fnode#

Sending ICT node

Type

ICTNode

tnode#

Receiving ICT node

Type

ICTNode

parent_network#

The parent ICT network of the line

Type

ICTNetwork

fail_rate_per_year#

Failure rate per year [fault/year/km]

Type

float

repair_time_dist#

The repair time of the line [hours/fault]

Type

StatDist

connected#

Indicates if the line is connected or disconnected

Type

bool

failed#

Failure status of the line

Type

bool

remaining_outage_time#

The remaining outage time of the line

Type

Time

history#

Dictonary attribute that stores the historic variables

Type

dict

disconnect()[source]#

Disconnects a line and removes the line for the list of lines

connect()[source]#

Connects a line and append the line to the list of lines

draw_repair_time(dt)[source]#

Decides and returns the repair time of the line based on a statistical distribution

fail(dt)[source]#

Sets the fail status of the line to True and opens the connected disconnectors and the connected circuit breaker

not_fail()[source]#

Sets the fail status of the line to False and closes the connected disconnectors and connected circuit breaker

change_direction()[source]#

Changes the direction of the line

update_fail_status(dt)[source]#

Updates the fail status of the line

print_status()[source]#

Prints the line status

add_parent_network(network)[source]#

Adds the parent network to the line

initialize_history()[source]#

Initialize 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()[source]#

Resets and sets the status of the class parameters

ICTLine.add_parent_network(network)

Adds the parent network to the line

ICTLine.add_random_instance(random_gen)

Adds global random seed

ICTLine.change_direction()

Changes the direction of the line

ICTLine.connect()

Connects a line and append the line to the list of lines

ICTLine.disconnect()

Disconnects a line and removes the line from the list of lines

ICTLine.draw_repair_time(dt)

Decides and returns the repair time of the line based on a statistical distribution

ICTLine.fail(dt)

Sets the fail status of the line to False

ICTLine.get_history(attribute)

Returns the history variables of an attribute

ICTLine.initialize_history()

Initializes the history variables

ICTLine.not_fail()

Sets the fail status of the line to False

ICTLine.print_status()

Prints the line status

ICTLine.reset_status(save_flag)

Resets and sets the status of the class parameters

ICTLine.update_fail_status(dt)

Updates the fail status of the line

ICTLine.update_history(prev_time, curr_time, ...)

Updates the history variables

ICTLine.handle

ICTLine.lineCount

ICTLine.linestyle

ICTLine.ps_random