public class LoadAdapter extends java.lang.Object implements Load
Modifier and Type | Method and Description |
---|---|
<E extends Extension<I>> |
addExtension(java.lang.Class<? super E> type,
E extension)
Add en extension to this extendable object.
|
protected I |
getDelegate() |
<E extends Extension<I>> |
getExtension(java.lang.Class<? super E> type)
Get an extension based on its class type.
|
<E extends Extension<I>> |
getExtensionByName(java.lang.String name)
Get an extension based on its name.
|
<E extends Extension<I>> |
getExtensions()
Get all extensions associated with this extendable object..
|
java.lang.String |
getId()
Get the unique identifier of the object.
|
protected com.powsybl.iidm.mergingview.MergingViewIndex |
getIndex() |
LoadType |
getLoadType() |
java.lang.String |
getName()
Get an the (optional) name of the object.
|
MergingView |
getNetwork()
Get the network associated to the object.
|
double |
getP0()
Get the constant active power in MW.
|
java.lang.String |
getProperty(java.lang.String key)
Get property associated to specified key.
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Get property associated to specified key, with default value.
|
java.util.Set<java.lang.String> |
getPropertyNames()
Get properties key values.
|
double |
getQ0()
Get the constant reactive power in MVar.
|
Terminal |
getTerminal()
Get the terminal.
|
java.util.List<? extends Terminal> |
getTerminals() |
ConnectableType |
getType()
Get the connectable type.
|
boolean |
hasProperty()
Check that this object has some properties.
|
boolean |
hasProperty(java.lang.String key)
Check that this object has property with specified name.
|
void |
remove()
Remove the equipment.
|
<E extends Extension<I>> |
removeExtension(java.lang.Class<E> type)
Remove an extension based on its class type.
|
Load |
setLoadType(LoadType loadType) |
Load |
setP0(double p0)
Set the constant active power in MW.
|
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value)
Set property value associated to specified key.
|
Load |
setQ0(double q0)
Set the constant reactive power in MVar.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTerminal
getTerminals, getType, remove
getId, getName, getNetwork, getProperties, getProperty, getProperty, getPropertyNames, hasProperty, hasProperty, setProperty
addExtension, getExtension, getExtensionByName, getExtensions, removeExtension
public LoadType getLoadType()
getLoadType
in interface Load
public Load setLoadType(LoadType loadType)
setLoadType
in interface Load
public double getP0()
Load
Depends on the working variant.
getP0
in interface Load
VariantManager
public Load setP0(double p0)
Load
Depends on the working variant.
setP0
in interface Load
VariantManager
public double getQ0()
Load
Depends on the working variant.
getQ0
in interface Load
VariantManager
public Load setQ0(double q0)
Load
Depends on the working variant.
setQ0
in interface Load
VariantManager
public Terminal getTerminal()
Injection
getTerminal
in interface Injection<I extends Injection<I>>
public java.util.List<? extends Terminal> getTerminals()
getTerminals
in interface Connectable<I extends Injection<I>>
public ConnectableType getType()
Connectable
getType
in interface Connectable<I extends Injection<I>>
public void remove()
Connectable
remove
in interface Connectable<I extends Injection<I>>
public MergingView getNetwork()
Identifiable
getNetwork
in interface Identifiable<I extends Identifiable<I>>
public 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 boolean hasProperty()
Identifiable
hasProperty
in interface Identifiable<I extends Identifiable<I>>
public boolean hasProperty(java.lang.String key)
Identifiable
hasProperty
in interface Identifiable<I extends Identifiable<I>>
public java.lang.String getProperty(java.lang.String key)
Identifiable
getProperty
in interface Identifiable<I extends Identifiable<I>>
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
Identifiable
getProperty
in interface Identifiable<I extends Identifiable<I>>
public java.lang.String setProperty(java.lang.String key, java.lang.String value)
Identifiable
setProperty
in interface Identifiable<I extends Identifiable<I>>
public java.util.Set<java.lang.String> getPropertyNames()
Identifiable
getPropertyNames
in interface Identifiable<I extends Identifiable<I>>
public <E extends Extension<I>> void addExtension(java.lang.Class<? super E> type, E extension)
Extendable
addExtension
in interface Extendable<I extends Identifiable<I>>
E
- the extension typetype
- the extension class typeextension
- the extensionpublic <E extends Extension<I>> E getExtension(java.lang.Class<? super E> type)
Extendable
getExtension
in interface Extendable<I extends Identifiable<I>>
E
- the extension typetype
- the extension class typepublic <E extends Extension<I>> E getExtensionByName(java.lang.String name)
Extendable
getExtensionByName
in interface Extendable<I extends Identifiable<I>>
name
- the extension namepublic <E extends Extension<I>> boolean removeExtension(java.lang.Class<E> type)
Extendable
removeExtension
in interface Extendable<I extends Identifiable<I>>
E
- the extension typetype
- the extension class typepublic <E extends Extension<I>> java.util.Collection<E> getExtensions()
Extendable
getExtensions
in interface Extendable<I extends Identifiable<I>>
protected I getDelegate()
protected com.powsybl.iidm.mergingview.MergingViewIndex getIndex()
Copyright © 2020. All rights reserved.