com.powsybl.iidm.network.CurrentLimits interface is used to model current limits for branches,
dangling lines and three windings transformers.
Current limits are defined by at most one permanent limit and/or any number of temporary limits.
A permanent limit is modeled by a double.
A temporary limit has an acceptable duration. The component on which the current limits are applied can safely remain
between the preceding limit (it could be another temporary limit or a permanent limit) and this limit for a duration up to the acceptable duration.
NaN value for the acceptable duration of a temporary limit means an infinite duration.
This example shows how to create a new
CurrentLimits currentLimits = network.getDanglingLine("DL").newCurrentLimits() .setPermanentLimit(100.0) .beginTemporaryLimit() .setName("TL1") .setValue(120.0) .setAcceptableDuration(20 * 60) .endTemporaryLimit() .beginTemporaryLimit() .setName("TL2") .setValue(140.0) .setAcceptableDuration(10 * 60) .endTemporaryLimit() .add();