public class BatteryImpl extends AbstractExtendable<I> implements Battery
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id |
protected java.lang.String |
name |
protected java.util.Properties |
properties |
protected java.util.List<com.powsybl.iidm.network.impl.TerminalExt> |
terminals |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
java.lang.String |
getId()
Get the unique identifier of the object.
|
double |
getMaxP()
Get the maximal active power in MW.
|
java.lang.String |
getMessageHeader() |
double |
getMinP()
Get the minimal active power in MW.
|
java.lang.String |
getName()
Get an the (optional) name of the object.
|
protected com.powsybl.iidm.network.impl.NetworkImpl |
getNetwork() |
double |
getP0()
Get the constant active power in MW.
|
java.util.Properties |
getProperties()
Get properties associated to the object.
|
double |
getQ0()
Get the constant reactive power in MVar.
|
ReactiveLimits |
getReactiveLimits()
Get reactive limits of the generator.
|
<R extends ReactiveLimits> |
getReactiveLimits(java.lang.Class<R> type) |
com.powsybl.iidm.network.impl.TerminalExt |
getTerminal()
Get the terminal.
|
java.util.List<com.powsybl.iidm.network.impl.TerminalExt> |
getTerminals() |
ConnectableType |
getType()
Get the connectable type.
|
protected java.lang.String |
getTypeDescription() |
boolean |
hasProperty()
Check that this object has some properties.
|
MinMaxReactiveLimitsAdder |
newMinMaxReactiveLimits()
Get a builder to create and associate minimum and maximum reactive limits
to this generator.
|
ReactiveCapabilityCurveAdder |
newReactiveCapabilityCurve()
Get a builder to create and associate a new reactive capability curve
to this generator.
|
protected void |
notifyUpdate(java.lang.String attribute,
java.lang.Object oldValue,
java.lang.Object newValue) |
void |
reduceVariantArraySize(int number)
Called to reduce the variant array.
|
void |
remove()
Remove the equipment.
|
Battery |
setMaxP(double maxP)
Set the maximal active power in MW.
|
Battery |
setMinP(double minP)
Set the minimal active power in MW.
|
Battery |
setP0(double p0)
Set the constant active power in MW.
|
Battery |
setQ0(double q0)
Set the constant reactive power in MVar.
|
void |
setReactiveLimits(ReactiveLimits reactiveLimits) |
java.lang.String |
toString() |
addExtension, getExtension, getExtensionByName, getExtensions, removeExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTerminals, remove
getId, getName, getProperties, hasProperty
addExtension, getExtension, getExtensionByName, getExtensions, removeExtension
protected final java.util.List<com.powsybl.iidm.network.impl.TerminalExt> terminals
protected java.lang.String id
protected java.lang.String name
protected java.util.Properties properties
public ConnectableType getType()
getType
in interface Connectable<Battery>
protected java.lang.String getTypeDescription()
public double getP0()
Depends on the working variant.
getP0
in interface Battery
VariantManager
public Battery setP0(double p0)
Depends on the working variant.
setP0
in interface Battery
VariantManager
public double getQ0()
Depends on the working variant.
getQ0
in interface Battery
VariantManager
public Battery setQ0(double q0)
Depends on the working variant.
setQ0
in interface Battery
VariantManager
public double getMinP()
public Battery setMinP(double minP)
public double getMaxP()
public Battery setMaxP(double maxP)
public com.powsybl.iidm.network.impl.TerminalExt getTerminal()
getTerminal
in interface Injection<Battery>
public ReactiveLimits getReactiveLimits()
getReactiveLimits
in interface ReactiveLimitsHolder
public void setReactiveLimits(ReactiveLimits reactiveLimits)
public <R extends ReactiveLimits> R getReactiveLimits(java.lang.Class<R> type)
getReactiveLimits
in interface ReactiveLimitsHolder
public ReactiveCapabilityCurveAdder newReactiveCapabilityCurve()
newReactiveCapabilityCurve
in interface ReactiveLimitsHolder
public MinMaxReactiveLimitsAdder newMinMaxReactiveLimits()
newMinMaxReactiveLimits
in interface ReactiveLimitsHolder
public java.util.List<com.powsybl.iidm.network.impl.TerminalExt> getTerminals()
getTerminals
in interface Connectable<I extends Connectable<I>>
protected com.powsybl.iidm.network.impl.NetworkImpl getNetwork()
public void remove()
Connectable
remove
in interface Connectable<I extends Connectable<I>>
protected void notifyUpdate(java.lang.String attribute, java.lang.Object oldValue, java.lang.Object newValue)
public void extendVariantArraySize(int initVariantArraySize, int number, int sourceIndex)
MultiVariantObject
extendVariantArraySize
in interface MultiVariantObject
initVariantArraySize
- initial variant array sizenumber
- number of element to addsourceIndex
- the variant index to use to initialize new variantspublic void reduceVariantArraySize(int number)
MultiVariantObject
reduceVariantArraySize
in interface MultiVariantObject
number
- number of element to removepublic void deleteVariantArrayElement(int index)
MultiVariantObject
deleteVariantArrayElement
in interface MultiVariantObject
index
- the index of the variant array to deletepublic void allocateVariantArrayElement(int[] indexes, int sourceIndex)
MultiVariantObject
allocateVariantArrayElement
in interface MultiVariantObject
indexes
- the indexes of the variant array to allocatesourceIndex
- the variant index to use to initialize new variantspublic java.lang.String getId()
Identifiable
getId
in interface Identifiable<I extends Identifiable<I>>
public java.lang.String getName()
Identifiable
getName
in interface Identifiable<I extends Identifiable<I>>
public java.lang.String getMessageHeader()
getMessageHeader
in interface Validable
public boolean hasProperty()
Identifiable
hasProperty
in interface Identifiable<I extends Identifiable<I>>
public java.util.Properties getProperties()
Identifiable
getProperties
in interface Identifiable<I extends Identifiable<I>>
public java.lang.String toString()
toString
in class java.lang.Object