Class TargetVector
- java.lang.Object
-
- com.powsybl.openloadflow.network.AbstractLfNetworkListener
-
- com.powsybl.openloadflow.equations.TargetVector
-
- All Implemented Interfaces:
EquationSystemListener
,LfNetworkListener
public class TargetVector extends AbstractLfNetworkListener implements EquationSystemListener
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description TargetVector(LfNetwork network, EquationSystem equationSystem)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double[]
createArray(LfNetwork network, EquationSystem equationSystem)
void
onEquationChange(Equation equation, EquationEventType eventType)
void
onEquationTermChange(EquationTerm term, EquationTermEventType eventType)
void
onGenerationActivePowerTargetChange(LfGenerator generator, double oldGenerationTargetP, double newGenerationTargetP)
void
onGenerationReactivePowerTargetChange(LfBus bus, double oldGenerationTargetQ, double newGenerationTargetQ)
void
onLoadActivePowerTargetChange(LfBus bus, double oldLoadTargetP, double newLoadTargetP)
void
onLoadReactivePowerTargetChange(LfBus bus, double oldLoadTargetQ, double newLoadTargetQ)
void
onStateUpdate(double[] x)
double[]
toArray()
-
Methods inherited from class com.powsybl.openloadflow.network.AbstractLfNetworkListener
onPhaseControlModeChange, onVoltageControlChange, onVoltageControlModeChange
-
-
-
-
Constructor Detail
-
TargetVector
public TargetVector(LfNetwork network, EquationSystem equationSystem)
-
-
Method Detail
-
onLoadActivePowerTargetChange
public void onLoadActivePowerTargetChange(LfBus bus, double oldLoadTargetP, double newLoadTargetP)
- Specified by:
onLoadActivePowerTargetChange
in interfaceLfNetworkListener
- Overrides:
onLoadActivePowerTargetChange
in classAbstractLfNetworkListener
-
onLoadReactivePowerTargetChange
public void onLoadReactivePowerTargetChange(LfBus bus, double oldLoadTargetQ, double newLoadTargetQ)
- Specified by:
onLoadReactivePowerTargetChange
in interfaceLfNetworkListener
- Overrides:
onLoadReactivePowerTargetChange
in classAbstractLfNetworkListener
-
onGenerationActivePowerTargetChange
public void onGenerationActivePowerTargetChange(LfGenerator generator, double oldGenerationTargetP, double newGenerationTargetP)
- Specified by:
onGenerationActivePowerTargetChange
in interfaceLfNetworkListener
- Overrides:
onGenerationActivePowerTargetChange
in classAbstractLfNetworkListener
-
onGenerationReactivePowerTargetChange
public void onGenerationReactivePowerTargetChange(LfBus bus, double oldGenerationTargetQ, double newGenerationTargetQ)
- Specified by:
onGenerationReactivePowerTargetChange
in interfaceLfNetworkListener
- Overrides:
onGenerationReactivePowerTargetChange
in classAbstractLfNetworkListener
-
onEquationChange
public void onEquationChange(Equation equation, EquationEventType eventType)
- Specified by:
onEquationChange
in interfaceEquationSystemListener
-
onEquationTermChange
public void onEquationTermChange(EquationTerm term, EquationTermEventType eventType)
- Specified by:
onEquationTermChange
in interfaceEquationSystemListener
-
onStateUpdate
public void onStateUpdate(double[] x)
- Specified by:
onStateUpdate
in interfaceEquationSystemListener
-
toArray
public double[] toArray()
-
createArray
public static double[] createArray(LfNetwork network, EquationSystem equationSystem)
-
-