Package com.powsybl.openloadflow.network
Class PiModelArray
- java.lang.Object
-
- com.powsybl.openloadflow.network.PiModelArray
-
-
Constructor Summary
Constructors Constructor Description PiModelArray(List<PiModel> models, int lowTapPosition, int tapPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getA1()
double
getB1()
double
getB2()
double
getContinuousR1()
double
getG1()
double
getG2()
double
getKsi()
double
getR()
double
getR1()
int
getTapPosition()
org.apache.commons.lang3.Range<Integer>
getTapPositionRange()
double
getX()
double
getY()
double
getZ()
void
roundA1ToClosestTap()
void
roundR1ToClosestTap()
PiModelArray
setA1(double a1)
void
setBranch(LfBranch branch)
boolean
setMinZ(double minZ, boolean dc)
PiModel
setR(double r)
PiModelArray
setR1(double r1)
PiModel
setTapPosition(int tapPosition)
PiModel
setX(double x)
boolean
shiftOneTapPositionToChangeA1(Direction direction)
Optional<Direction>
updateTapPositionToExceedNewA1(double deltaA1, int maxTapShift, AllowedDirection allowedDirection)
Optional<Direction>
updateTapPositionToReachNewA1(double deltaA1, int maxTapShift, AllowedDirection allowedDirection)
Optional<Direction>
updateTapPositionToReachNewR1(double deltaR1, int maxTapShift, AllowedDirection allowedDirection)
-
-
-
Method Detail
-
getContinuousR1
public double getContinuousR1()
- Specified by:
getContinuousR1
in interfacePiModel
-
setA1
public PiModelArray setA1(double a1)
-
setR1
public PiModelArray setR1(double r1)
-
roundA1ToClosestTap
public void roundA1ToClosestTap()
- Specified by:
roundA1ToClosestTap
in interfacePiModel
-
roundR1ToClosestTap
public void roundR1ToClosestTap()
- Specified by:
roundR1ToClosestTap
in interfacePiModel
-
shiftOneTapPositionToChangeA1
public boolean shiftOneTapPositionToChangeA1(Direction direction)
- Specified by:
shiftOneTapPositionToChangeA1
in interfacePiModel
-
updateTapPositionToReachNewR1
public Optional<Direction> updateTapPositionToReachNewR1(double deltaR1, int maxTapShift, AllowedDirection allowedDirection)
- Specified by:
updateTapPositionToReachNewR1
in interfacePiModel
-
updateTapPositionToExceedNewA1
public Optional<Direction> updateTapPositionToExceedNewA1(double deltaA1, int maxTapShift, AllowedDirection allowedDirection)
- Specified by:
updateTapPositionToExceedNewA1
in interfacePiModel
-
updateTapPositionToReachNewA1
public Optional<Direction> updateTapPositionToReachNewA1(double deltaA1, int maxTapShift, AllowedDirection allowedDirection)
- Specified by:
updateTapPositionToReachNewA1
in interfacePiModel
-
getTapPosition
public int getTapPosition()
- Specified by:
getTapPosition
in interfacePiModel
-
setTapPosition
public PiModel setTapPosition(int tapPosition)
- Specified by:
setTapPosition
in interfacePiModel
-
getTapPositionRange
public org.apache.commons.lang3.Range<Integer> getTapPositionRange()
- Specified by:
getTapPositionRange
in interfacePiModel
-
-