Package com.powsybl.openloadflow.network
Class SimplePiModel
- java.lang.Object
-
- com.powsybl.openloadflow.network.SimplePiModel
-
-
Constructor Summary
Constructors Constructor Description SimplePiModel()
-
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()
SimplePiModel
setA1(double a1)
SimplePiModel
setB1(double b1)
SimplePiModel
setB2(double b2)
void
setBranch(LfBranch branch)
SimplePiModel
setG1(double g1)
SimplePiModel
setG2(double g2)
boolean
setMinZ(double minZ, boolean dc)
SimplePiModel
setR(double r)
SimplePiModel
setR1(double r1)
PiModel
setTapPosition(int tapPosition)
SimplePiModel
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
-
setR
public SimplePiModel setR(double r)
-
setX
public SimplePiModel setX(double x)
-
setG1
public SimplePiModel setG1(double g1)
-
setB1
public SimplePiModel setB1(double b1)
-
setG2
public SimplePiModel setG2(double g2)
-
setB2
public SimplePiModel setB2(double b2)
-
getContinuousR1
public double getContinuousR1()
- Specified by:
getContinuousR1
in interfacePiModel
-
setR1
public SimplePiModel setR1(double r1)
-
setA1
public SimplePiModel setA1(double a1)
-
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
-
-