public class BatteryImpl extends AbstractExtendable<I> implements Battery
Modifier and Type | Field and Description |
---|---|
protected boolean |
fictitious |
protected String |
id |
protected String |
name |
protected Properties |
properties |
protected 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.
|
String |
getId()
Get the unique identifier of the object.
|
double |
getMaxP()
Get the maximal active power in MW.
|
String |
getMessageHeader() |
double |
getMinP()
Get the minimal active power in MW.
|
String |
getNameOrId()
Get the name of the object if it exists.
|
com.powsybl.iidm.network.impl.NetworkImpl |
getNetwork()
Get the network associated to the object.
|
Optional<String> |
getOptionalName()
Return an optional containing the name of the object if it exists.
|
double |
getP0()
Get the constant active power in MW.
|
Properties |
getProperties()
Get properties associated to the object.
|
String |
getProperty(String key)
Get property associated to specified key.
|
String |
getProperty(String key,
String defaultValue)
Get property associated to specified key, with default value.
|
Set<String> |
getPropertyNames()
Get properties key values.
|
double |
getQ0()
Get the constant reactive power in MVar.
|
ReactiveLimits |
getReactiveLimits()
Get reactive limits of the generator.
|
<R extends ReactiveLimits> |
getReactiveLimits(Class<R> type) |
com.powsybl.iidm.network.impl.TerminalExt |
getTerminal()
Get the terminal.
|
List<com.powsybl.iidm.network.impl.TerminalExt> |
getTerminals() |
ConnectableType |
getType()
Get the connectable type.
|
protected String |
getTypeDescription() |
boolean |
hasProperty()
Check that this object has some properties.
|
boolean |
hasProperty(String key)
Check that this object has property with specified name.
|
boolean |
isFictitious()
Get the fictitious status
|
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(String attribute,
Object oldValue,
Object newValue) |
protected void |
notifyUpdate(String attribute,
String variantId,
Object oldValue,
Object newValue) |
protected void |
notifyUpdate(Supplier<String> attribute,
Object oldValue,
Object newValue) |
protected void |
notifyUpdate(Supplier<String> attribute,
String variantId,
Object oldValue,
Object newValue) |
void |
reduceVariantArraySize(int number)
Called to reduce the variant array.
|
void |
remove()
Remove the equipment.
|
void |
setFictitious(boolean fictitious)
Set the fictitious status
|
Battery |
setMaxP(double maxP)
Set the maximal active power in MW.
|
Battery |
setMinP(double minP)
Set the minimal active power in MW.
|
I |
setName(String name) |
Battery |
setP0(double p0)
Set the constant active power in MW.
|
String |
setProperty(String key,
String value)
Set property value associated to specified key.
|
Battery |
setQ0(double q0)
Set the constant reactive power in MVar.
|
void |
setReactiveLimits(ReactiveLimits reactiveLimits) |
String |
toString() |
addExtension, getExtension, getExtensionByName, getExtensions, newExtension, removeExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTerminals, remove
getId, getName, getNameOrId, getNetwork, getOptionalName, getProperties, getProperty, getProperty, getPropertyNames, hasProperty, hasProperty, isFictitious, setFictitious, setProperty
addExtension, getExtension, getExtensionByName, getExtensions, getImplementationName, newExtension, removeExtension
protected final List<com.powsybl.iidm.network.impl.TerminalExt> terminals
protected final String id
protected String name
protected boolean fictitious
protected final Properties properties
public ConnectableType getType()
getType
in interface Connectable<Battery>
protected 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(Class<R> type)
getReactiveLimits
in interface ReactiveLimitsHolder
public ReactiveCapabilityCurveAdder newReactiveCapabilityCurve()
newReactiveCapabilityCurve
in interface ReactiveLimitsHolder
public MinMaxReactiveLimitsAdder newMinMaxReactiveLimits()
newMinMaxReactiveLimits
in interface ReactiveLimitsHolder
public void extendVariantArraySize(int initVariantArraySize, int number, int sourceIndex)
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)
reduceVariantArraySize
in interface MultiVariantObject
number
- number of element to removepublic void allocateVariantArrayElement(int[] indexes, int sourceIndex)
allocateVariantArrayElement
in interface MultiVariantObject
indexes
- the indexes of the variant array to allocatesourceIndex
- the variant index to use to initialize new variantspublic I setName(String name)
public List<com.powsybl.iidm.network.impl.TerminalExt> getTerminals()
getTerminals
in interface Connectable<I extends Connectable<I>>
public com.powsybl.iidm.network.impl.NetworkImpl getNetwork()
Identifiable
getNetwork
in interface Identifiable<I extends Connectable<I>>
public void remove()
Connectable
remove
in interface Connectable<I extends Connectable<I>>
protected void notifyUpdate(Supplier<String> attribute, Object oldValue, Object newValue)
protected void notifyUpdate(Supplier<String> attribute, String variantId, Object oldValue, Object newValue)
protected void notifyUpdate(String attribute, String variantId, Object oldValue, Object newValue)
public void deleteVariantArrayElement(int index)
MultiVariantObject
deleteVariantArrayElement
in interface MultiVariantObject
index
- the index of the variant array to deletepublic String getId()
Identifiable
getId
in interface Identifiable<I extends Identifiable<I>>
public Optional<String> getOptionalName()
Identifiable
getOptionalName
in interface Identifiable<I extends Identifiable<I>>
public String getNameOrId()
Identifiable
getNameOrId
in interface Identifiable<I extends Identifiable<I>>
public boolean isFictitious()
Identifiable
isFictitious
in interface Identifiable<I extends Identifiable<I>>
public void setFictitious(boolean fictitious)
Identifiable
setFictitious
in interface Identifiable<I extends Identifiable<I>>
public String getMessageHeader()
getMessageHeader
in interface Validable
public Properties getProperties()
Identifiable
getProperties
in interface Identifiable<I extends Identifiable<I>>
public boolean hasProperty()
Identifiable
hasProperty
in interface Identifiable<I extends Identifiable<I>>
public boolean hasProperty(String key)
Identifiable
hasProperty
in interface Identifiable<I extends Identifiable<I>>
public String getProperty(String key)
Identifiable
getProperty
in interface Identifiable<I extends Identifiable<I>>
public String getProperty(String key, String defaultValue)
Identifiable
getProperty
in interface Identifiable<I extends Identifiable<I>>
public String setProperty(String key, String value)
Identifiable
setProperty
in interface Identifiable<I extends Identifiable<I>>
public Set<String> getPropertyNames()
Identifiable
getPropertyNames
in interface Identifiable<I extends Identifiable<I>>
Copyright © 2020. All rights reserved.