static_env
StaticEnv
StaticEnv()
Bases: ABC, Generic[CableT, CircuitFromCableInputSchemaT, CircuitFromCableConstructionalInputSchemaT, CircuitFromCableIdInputSchemaT, CircuitFromCableSpecsInputSchemaT]
Class that builds a static environment.
Source code in cable_thermal_model/environment/static_env.py
62 63 64 65 66 67 68 69 70 71 | |
get_cables
Returns a dict of all cables in the static environment.
Source code in cable_thermal_model/environment/static_env.py
105 106 107 | |
get_number_of_cables
get_number_of_cables() -> int
Returns the total number of cables in the static environment.
Source code in cable_thermal_model/environment/static_env.py
109 110 111 | |
add_circuit_from_cable_id
add_circuit_from_cable_id(circuit_input: CircuitFromCableIdInputSchemaT) -> None
Adds the circuit to the environment based on a Cable Id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
circuit_input
|
CircuitFromCableIdInputSchemaT
|
CircuitFromCableIdInputSchemaT containing the input parameters for the circuit. |
required |
Source code in cable_thermal_model/environment/static_env.py
151 152 153 154 155 156 157 158 159 160 161 | |
add_circuit_from_cable_specs
add_circuit_from_cable_specs(circuit_input: CircuitFromCableSpecsInputSchemaT) -> None
Adds the circuit to the environment based on Cable Specs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
circuit_input
|
CircuitFromCableSpecsInputSchemaT
|
CircuitFromCableSpecsInputSchemaT containing the input parameters for the circuit. |
required |
Source code in cable_thermal_model/environment/static_env.py
163 164 165 166 167 168 169 170 171 172 173 | |
add_circuit_from_cable_constructional_information
add_circuit_from_cable_constructional_information(circuit_input: CircuitFromCableConstructionalInputSchemaT) -> None
Adds the circuit to the environment based on a Cable Constructional Input Schema.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
circuit_input
|
CircuitFromCableConstructionalInputSchemaT
|
CircuitFromCableConstructionalInputSchemaT containing the input parameters for the circuit. |
required |
Source code in cable_thermal_model/environment/static_env.py
175 176 177 178 179 180 181 182 183 184 185 | |
add_circuit_from_cable
add_circuit_from_cable(circuit_input: CircuitFromCableInputSchemaT) -> None
Add a cable circuit consisting of one or three cables to the environment based on a given cable instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
circuit_input
|
CircuitFromCableInputSchemaT
|
CircuitFromCableInputSchemaT containing the input parameters for the circuit, including a cable instance. |
required |
Source code in cable_thermal_model/environment/static_env.py
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | |
get_circuit_type
staticmethod
get_circuit_type(cable: AbstractCable) -> CircuitType
Determines probable circuit type by number of conductors in the cable.
Source code in cable_thermal_model/environment/static_env.py
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 | |
get_cable
Gets the Cable-object corresponding to the cable_name from the environment.
Source code in cable_thermal_model/environment/static_env.py
403 404 405 | |