Class StandbyAutomatonImpl
java.lang.Object
com.powsybl.commons.extensions.AbstractExtension<T>
com.powsybl.iidm.network.impl.AbstractMultiVariantIdentifiableExtension<StaticVarCompensator>
com.powsybl.iidm.network.impl.extensions.StandbyAutomatonImpl
- All Implemented Interfaces:
Extension<StaticVarCompensator>
,StandbyAutomaton
,MultiVariantObject
public class StandbyAutomatonImpl
extends AbstractMultiVariantIdentifiableExtension<StaticVarCompensator>
implements StandbyAutomaton
- Author:
- Jérémy Labous <jlabous at silicom.fr>
-
Field Summary
Fields inherited from interface com.powsybl.iidm.network.extensions.StandbyAutomaton
NAME
-
Constructor Summary
ConstructorDescriptionStandbyAutomatonImpl
(StaticVarCompensator svc, double b0, boolean standby, double lowVoltageSetpoint, double highVoltageSetpoint, double lowVoltageThreshold, double highVoltageThreshold) -
Method Summary
Modifier and TypeMethodDescriptionvoid
allocateVariantArrayElement
(int[] indexes, int sourceIndex) Called to allocate a variant array element.void
deleteVariantArrayElement
(int i) Called to delete a variant array element.void
extendVariantArraySize
(int initVariantArraySize, int number, int sourceIndex) Called to extend the variant array.double
getB0()
Get the fix part of the susceptance (in S) used when the static var compensator is in stand by.double
Get the voltage setpoint (in kV) used when the high voltage threshold is reached.double
Get the high voltage threshold (in kV).double
Get the voltage setpoint (in kV) used when the low voltage threshold is reached.double
Get the low voltage threshold (in kV).boolean
Get the status of the automaton.void
reduceVariantArraySize
(int number) Called to reduce the variant array.setB0
(double b0) Set the fix part of the susceptance (in S) used when the static var compensator is in stand by.setHighVoltageSetpoint
(double highVoltageSetpoint) Set the voltage setpoint (in kV) used when the high voltage threshold is reached.setHighVoltageThreshold
(double highVoltageThreshold) Set the high voltage threshold (in kV).setLowVoltageSetpoint
(double lowVoltageSetpoint) Set the voltage setpoint (in kV) used when the low voltage threshold is reached.setLowVoltageThreshold
(double lowVoltageThreshold) Set the low voltage threshold (in kV).setStandby
(boolean standby) Methods inherited from class com.powsybl.iidm.network.impl.AbstractMultiVariantIdentifiableExtension
getVariantIndex, getVariantManagerHolder
Methods inherited from class com.powsybl.commons.extensions.AbstractExtension
cleanup, getExtendable, setExtendable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.commons.extensions.Extension
getExtendable, setExtendable
Methods inherited from interface com.powsybl.iidm.network.extensions.StandbyAutomaton
getHighVoltageSetPoint, getLowVoltageSetPoint, getName, setHighVoltageSetPoint, setLowVoltageSetPoint
-
Constructor Details
-
StandbyAutomatonImpl
public StandbyAutomatonImpl(StaticVarCompensator svc, double b0, boolean standby, double lowVoltageSetpoint, double highVoltageSetpoint, double lowVoltageThreshold, double highVoltageThreshold)
-
-
Method Details
-
isStandby
public boolean isStandby()Description copied from interface:StandbyAutomaton
Get the status of the automaton. Use true if in service, false otherwise.- Specified by:
isStandby
in interfaceStandbyAutomaton
-
setStandby
- Specified by:
setStandby
in interfaceStandbyAutomaton
-
getB0
public double getB0()Description copied from interface:StandbyAutomaton
Get the fix part of the susceptance (in S) used when the static var compensator is in stand by. Should be between the mininal and the maximal susceptance of the static var compensator.- Specified by:
getB0
in interfaceStandbyAutomaton
-
setB0
Description copied from interface:StandbyAutomaton
Set the fix part of the susceptance (in S) used when the static var compensator is in stand by. Should be between the mininal and the maximal susceptance of the static var compensator.- Specified by:
setB0
in interfaceStandbyAutomaton
-
getHighVoltageSetpoint
public double getHighVoltageSetpoint()Description copied from interface:StandbyAutomaton
Get the voltage setpoint (in kV) used when the high voltage threshold is reached.- Specified by:
getHighVoltageSetpoint
in interfaceStandbyAutomaton
-
setHighVoltageSetpoint
Description copied from interface:StandbyAutomaton
Set the voltage setpoint (in kV) used when the high voltage threshold is reached.- Specified by:
setHighVoltageSetpoint
in interfaceStandbyAutomaton
-
getHighVoltageThreshold
public double getHighVoltageThreshold()Description copied from interface:StandbyAutomaton
Get the high voltage threshold (in kV). Above this value, the static var compensator controls voltage at high voltage setpoint.- Specified by:
getHighVoltageThreshold
in interfaceStandbyAutomaton
-
setHighVoltageThreshold
Description copied from interface:StandbyAutomaton
Set the high voltage threshold (in kV). Above this value, the static var compensator controls voltage at high voltage setpoint.- Specified by:
setHighVoltageThreshold
in interfaceStandbyAutomaton
-
getLowVoltageSetpoint
public double getLowVoltageSetpoint()Description copied from interface:StandbyAutomaton
Get the voltage setpoint (in kV) used when the low voltage threshold is reached.- Specified by:
getLowVoltageSetpoint
in interfaceStandbyAutomaton
-
setLowVoltageSetpoint
Description copied from interface:StandbyAutomaton
Set the voltage setpoint (in kV) used when the low voltage threshold is reached.- Specified by:
setLowVoltageSetpoint
in interfaceStandbyAutomaton
-
getLowVoltageThreshold
public double getLowVoltageThreshold()Description copied from interface:StandbyAutomaton
Get the low voltage threshold (in kV). Under this value, the static var compensator controls voltage at low voltage setpoint.- Specified by:
getLowVoltageThreshold
in interfaceStandbyAutomaton
-
setLowVoltageThreshold
Description copied from interface:StandbyAutomaton
Set the low voltage threshold (in kV). Under this value, the static var compensator controls voltage at low voltage setpoint.- Specified by:
setLowVoltageThreshold
in interfaceStandbyAutomaton
-
extendVariantArraySize
public void extendVariantArraySize(int initVariantArraySize, int number, int sourceIndex) Description copied from interface:MultiVariantObject
Called to extend the variant array.- Specified by:
extendVariantArraySize
in interfaceMultiVariantObject
- Parameters:
initVariantArraySize
- initial variant array sizenumber
- number of element to addsourceIndex
- the variant index to use to initialize new variants
-
reduceVariantArraySize
public void reduceVariantArraySize(int number) Description copied from interface:MultiVariantObject
Called to reduce the variant array.- Specified by:
reduceVariantArraySize
in interfaceMultiVariantObject
- Parameters:
number
- number of element to remove
-
deleteVariantArrayElement
public void deleteVariantArrayElement(int i) Description copied from interface:MultiVariantObject
Called to delete a variant array element.- Specified by:
deleteVariantArrayElement
in interfaceMultiVariantObject
- Parameters:
i
- the index of the variant array to delete
-
allocateVariantArrayElement
public void allocateVariantArrayElement(int[] indexes, int sourceIndex) Description copied from interface:MultiVariantObject
Called to allocate a variant array element. All new variants will be initialize using values of the variant sourceIndex.- Specified by:
allocateVariantArrayElement
in interfaceMultiVariantObject
- Parameters:
indexes
- the indexes of the variant array to allocatesourceIndex
- the variant index to use to initialize new variants
-