Module com.powsybl.iidm.impl
Class HvdcOperatorActivePowerRangeImpl
java.lang.Object
com.powsybl.commons.extensions.AbstractExtension<T>
com.powsybl.iidm.network.impl.AbstractMultiVariantIdentifiableExtension<HvdcLine>
com.powsybl.iidm.network.impl.extensions.HvdcOperatorActivePowerRangeImpl
- All Implemented Interfaces:
Extension<HvdcLine>
,HvdcOperatorActivePowerRange
,MultiVariantObject
public class HvdcOperatorActivePowerRangeImpl
extends AbstractMultiVariantIdentifiableExtension<HvdcLine>
implements HvdcOperatorActivePowerRange
- Author:
- Jérémy Labous <jlabous at silicom.fr>, Paul Bui-Quang <paul.buiquang at rte-france.com>
-
Field Summary
Fields inherited from interface com.powsybl.iidm.network.extensions.HvdcOperatorActivePowerRange
NAME
-
Constructor Summary
ConstructorDescriptionHvdcOperatorActivePowerRangeImpl
(HvdcLine hvdcLine, float oprFromCS1toCS2, float oprFromCS2toCS1) -
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.boolean
void
extendVariantArraySize
(int initVariantArraySize, int number, int sourceIndex) Called to extend the variant array.float
float
int
hashCode()
void
reduceVariantArraySize
(int number) Called to reduce the variant array.setOprFromCS1toCS2
(float oprFromCS1toCS2) setOprFromCS2toCS1
(float oprFromCS2toCS1) Methods inherited from class com.powsybl.iidm.network.impl.AbstractMultiVariantIdentifiableExtension
getVariantIndex, getVariantManagerHolder
Methods inherited from class com.powsybl.commons.extensions.AbstractExtension
getExtendable, setExtendable
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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.HvdcOperatorActivePowerRange
getName
-
Constructor Details
-
HvdcOperatorActivePowerRangeImpl
public HvdcOperatorActivePowerRangeImpl(HvdcLine hvdcLine, float oprFromCS1toCS2, float oprFromCS2toCS1)
-
-
Method Details
-
getOprFromCS1toCS2
public float getOprFromCS1toCS2()- Specified by:
getOprFromCS1toCS2
in interfaceHvdcOperatorActivePowerRange
-
setOprFromCS1toCS2
- Specified by:
setOprFromCS1toCS2
in interfaceHvdcOperatorActivePowerRange
-
getOprFromCS2toCS1
public float getOprFromCS2toCS1()- Specified by:
getOprFromCS2toCS1
in interfaceHvdcOperatorActivePowerRange
-
setOprFromCS2toCS1
- Specified by:
setOprFromCS2toCS1
in interfaceHvdcOperatorActivePowerRange
-
equals
-
hashCode
public int hashCode() -
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
-