ICTLine
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
- parent_network#
The parent ICT network of the line
- Type
- fail_rate_per_year#
Failure rate per year [fault/year/km]
- Type
float
- connected#
Indicates if the line is connected or disconnected
- Type
bool
- failed#
Failure status of the line
- Type
bool
- history#
Dictonary attribute that stores the historic variables
- Type
dict
- 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
- 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.handleICTLine.lineCountICTLine.linestyleICTLine.ps_random