Class ActivePowerControlImpl<T extends Injection<T>>
java.lang.Object
com.powsybl.commons.extensions.AbstractExtension<T>
com.powsybl.iidm.network.impl.AbstractMultiVariantIdentifiableExtension<T>
com.powsybl.iidm.network.impl.extensions.ActivePowerControlImpl<T>
- All Implemented Interfaces:
Extension<T>
,ActivePowerControl<T>
,MultiVariantObject
public class ActivePowerControlImpl<T extends Injection<T>>
extends AbstractMultiVariantIdentifiableExtension<T>
implements ActivePowerControl<T>
- Author:
- Ghiles Abdellah <ghiles.abdellah at rte-france.com>
-
Field Summary
Fields inherited from interface com.powsybl.iidm.network.extensions.ActivePowerControl
NAME
-
Constructor Summary
ConstructorDescriptionActivePowerControlImpl
(T component, boolean participate, double droop, double participationFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
allocateVariantArrayElement
(int[] indexes, int sourceIndex) Called to allocate a variant array element.void
deleteVariantArrayElement
(int index) Called to delete a variant array element.void
extendVariantArraySize
(int initVariantArraySize, int number, int sourceIndex) Called to extend the variant array.double
getDroop()
This is the change in generator power output divided by the change in frequency normalized by the nominal power of the generator and the nominal frequency and expressed in percent and negated.double
Generating unit participation factor.boolean
void
reduceVariantArraySize
(int number) Called to reduce the variant array.void
setDroop
(double droop) void
setParticipate
(boolean participate) void
setParticipationFactor
(double participationFactor) 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.iidm.network.extensions.ActivePowerControl
getName
Methods inherited from interface com.powsybl.commons.extensions.Extension
getExtendable, setExtendable
-
Constructor Details
-
ActivePowerControlImpl
public ActivePowerControlImpl(T component, boolean participate, double droop, double participationFactor)
-
-
Method Details
-
isParticipate
public boolean isParticipate()- Specified by:
isParticipate
in interfaceActivePowerControl<T extends Injection<T>>
-
setParticipate
public void setParticipate(boolean participate) - Specified by:
setParticipate
in interfaceActivePowerControl<T extends Injection<T>>
-
getDroop
public double getDroop()Description copied from interface:ActivePowerControl
This is the change in generator power output divided by the change in frequency normalized by the nominal power of the generator and the nominal frequency and expressed in percent and negated. A positive value of speed change droop provides additional generator output upon a drop in frequency.- Specified by:
getDroop
in interfaceActivePowerControl<T extends Injection<T>>
- Returns:
- Governor Speed Changer Droop.
-
setDroop
public void setDroop(double droop) - Specified by:
setDroop
in interfaceActivePowerControl<T extends Injection<T>>
- Parameters:
droop
- new Governor Speed Changer Droop value
-
getParticipationFactor
public double getParticipationFactor()Description copied from interface:ActivePowerControl
Generating unit participation factor. The sum of the participation factors across generating units does not have to sum to one. It is used for representing distributed slack participation factor. The attribute shall be a positive value or zero.- Specified by:
getParticipationFactor
in interfaceActivePowerControl<T extends Injection<T>>
- Returns:
- Generating unit participation factor.
-
setParticipationFactor
public void setParticipationFactor(double participationFactor) - Specified by:
setParticipationFactor
in interfaceActivePowerControl<T extends Injection<T>>
- Parameters:
participationFactor
- new Generating unit participation factor value
-
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 index) Description copied from interface:MultiVariantObject
Called to delete a variant array element.- Specified by:
deleteVariantArrayElement
in interfaceMultiVariantObject
- Parameters:
index
- 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
-