Class AbstractLfGenerator
- java.lang.Object
-
- com.powsybl.openloadflow.network.impl.AbstractLfGenerator
-
- All Implemented Interfaces:
LfGenerator
- Direct Known Subclasses:
LfDanglingLineGenerator
,LfGeneratorImpl
,LfStaticVarCompensatorImpl
,LfVscConverterStationImpl
public abstract class AbstractLfGenerator extends Object implements LfGenerator
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description protected LfBus
bus
protected double
calculatedQ
protected String
controlledBusId
protected boolean
hasVoltageControl
protected double
targetP
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractLfGenerator(double targetP)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
checkVoltageControlConsistency(com.powsybl.openloadflow.network.impl.LfNetworkLoadingReport report)
LfBus
getBus()
double
getCalculatedQ()
LfBus
getControlledBus(LfNetwork lfNetwork)
double
getMaxQ()
double
getMaxRangeQ()
double
getMinQ()
protected abstract Optional<com.powsybl.iidm.network.ReactiveLimits>
getReactiveLimits()
OptionalDouble
getRemoteControlReactiveKey()
double
getTargetP()
double
getTargetV()
boolean
hasVoltageControl()
void
setBus(LfBus bus)
void
setCalculatedQ(double calculatedQ)
void
setTargetP(double targetP)
protected void
setTargetV(double targetV)
protected void
setVoltageControl(double targetV, com.powsybl.iidm.network.Terminal regulatingTerminal, boolean breakers, com.powsybl.openloadflow.network.impl.LfNetworkLoadingReport report)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.openloadflow.network.LfGenerator
getDroop, getId, getMaxP, getMinP, getSlope, getTargetQ, isParticipating, setSlope, updateState
-
-
-
-
Method Detail
-
getBus
public LfBus getBus()
- Specified by:
getBus
in interfaceLfGenerator
-
setBus
public void setBus(LfBus bus)
- Specified by:
setBus
in interfaceLfGenerator
-
getTargetP
public double getTargetP()
- Specified by:
getTargetP
in interfaceLfGenerator
-
setTargetP
public void setTargetP(double targetP)
- Specified by:
setTargetP
in interfaceLfGenerator
-
getTargetV
public double getTargetV()
- Specified by:
getTargetV
in interfaceLfGenerator
-
hasVoltageControl
public boolean hasVoltageControl()
- Specified by:
hasVoltageControl
in interfaceLfGenerator
-
getRemoteControlReactiveKey
public OptionalDouble getRemoteControlReactiveKey()
- Specified by:
getRemoteControlReactiveKey
in interfaceLfGenerator
-
getReactiveLimits
protected abstract Optional<com.powsybl.iidm.network.ReactiveLimits> getReactiveLimits()
-
getMinQ
public double getMinQ()
- Specified by:
getMinQ
in interfaceLfGenerator
-
getMaxQ
public double getMaxQ()
- Specified by:
getMaxQ
in interfaceLfGenerator
-
getMaxRangeQ
public double getMaxRangeQ()
- Specified by:
getMaxRangeQ
in interfaceLfGenerator
-
getCalculatedQ
public double getCalculatedQ()
- Specified by:
getCalculatedQ
in interfaceLfGenerator
-
setCalculatedQ
public void setCalculatedQ(double calculatedQ)
- Specified by:
setCalculatedQ
in interfaceLfGenerator
-
getControlledBus
public LfBus getControlledBus(LfNetwork lfNetwork)
- Specified by:
getControlledBus
in interfaceLfGenerator
-
setVoltageControl
protected void setVoltageControl(double targetV, com.powsybl.iidm.network.Terminal regulatingTerminal, boolean breakers, com.powsybl.openloadflow.network.impl.LfNetworkLoadingReport report)
-
checkVoltageControlConsistency
protected boolean checkVoltageControlConsistency(com.powsybl.openloadflow.network.impl.LfNetworkLoadingReport report)
-
setTargetV
protected void setTargetV(double targetV)
-
-