public class LineAdapter extends Object implements Line
Branch.Overload, Branch.Side
Modifier and Type | Method and Description |
---|---|
<E extends Extension<I>> |
addExtension(Class<? super E> type,
E extension)
Add en extension to this extendable object.
|
boolean |
checkPermanentLimit(Branch.Side side) |
boolean |
checkPermanentLimit(Branch.Side side,
float limitReduction) |
boolean |
checkPermanentLimit1() |
boolean |
checkPermanentLimit1(float limitReduction) |
boolean |
checkPermanentLimit2() |
boolean |
checkPermanentLimit2(float limitReduction) |
Branch.Overload |
checkTemporaryLimits(Branch.Side side) |
Branch.Overload |
checkTemporaryLimits(Branch.Side side,
float limitReduction) |
Branch.Overload |
checkTemporaryLimits1() |
Branch.Overload |
checkTemporaryLimits1(float limitReduction) |
Branch.Overload |
checkTemporaryLimits2() |
Branch.Overload |
checkTemporaryLimits2(float limitReduction) |
double |
getB1()
Get the first side shunt susceptance in S.
|
double |
getB2()
Get the second side shunt susceptance in S.
|
CurrentLimits |
getCurrentLimits(Branch.Side side) |
CurrentLimits |
getCurrentLimits1() |
CurrentLimits |
getCurrentLimits2() |
protected I |
getDelegate() |
<E extends Extension<I>> |
getExtension(Class<? super E> type)
Get an extension based on its class type.
|
<E extends Extension<I>> |
getExtensionByName(String name)
Get an extension based on its name.
|
<E extends Extension<I>> |
getExtensions()
Get all extensions associated with this extendable object..
|
double |
getG1()
Get the first side shunt conductance in S.
|
double |
getG2()
Get the second side shunt conductance in S.
|
String |
getId()
Get the unique identifier of the object.
|
String |
getImplementationName()
Returns a name that is used to find matching
ExtensionAdderProvider s
when selecting implementations of extensions in Extendable.newExtension(java.lang.Class<B>) . |
protected com.powsybl.iidm.mergingview.MergingViewIndex |
getIndex() |
String |
getNameOrId()
Get the name of the object if it exists.
|
MergingView |
getNetwork()
Get the network associated to the object.
|
Optional<String> |
getOptionalName()
Return an optional containing the name of the object if it exists.
|
int |
getOverloadDuration() |
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 |
getR()
Get the series resistance in Ω.
|
Branch.Side |
getSide(Terminal terminal) |
Terminal |
getTerminal(Branch.Side side) |
Terminal |
getTerminal(String voltageLevelId) |
Terminal |
getTerminal1()
Get the first terminal.
|
Terminal |
getTerminal2()
Get the second terminal.
|
List<? extends Terminal> |
getTerminals() |
ConnectableType |
getType()
Get the connectable type.
|
double |
getX()
Get the series reactance in Ω.
|
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
|
boolean |
isOverloaded() |
boolean |
isOverloaded(float limitReduction) |
boolean |
isTieLine() |
CurrentLimitsAdder |
newCurrentLimits1() |
CurrentLimitsAdder |
newCurrentLimits2() |
<E extends Extension<I>,B extends ExtensionAdder<I,E>> |
newExtension(Class<B> type)
Returns an extensionAdder to build and add an extension for this extendable.
|
void |
remove()
Remove the equipment.
|
<E extends Extension<I>> |
removeExtension(Class<E> type)
Remove an extension based on its class type.
|
Line |
setB1(double b1)
Set the first side shunt susceptance in S.
|
Line |
setB2(double b2)
Set the second side shunt susceptance in S.
|
void |
setFictitious(boolean fictitious)
Set the fictitious status
|
Line |
setG1(double g1)
Set the first side shunt conductance in S.
|
Line |
setG2(double g2)
Set the second side shunt conductance in S.
|
String |
setProperty(String key,
String value)
Set property value associated to specified key.
|
Line |
setR(double r)
Set the series resistance in Ω.
|
Line |
setX(double x)
Set the series reactance in Ω.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermanentLimit, checkPermanentLimit, checkPermanentLimit1, checkPermanentLimit1, checkPermanentLimit2, checkPermanentLimit2, checkTemporaryLimits, checkTemporaryLimits, checkTemporaryLimits1, checkTemporaryLimits1, checkTemporaryLimits2, checkTemporaryLimits2, getCurrentLimits, getCurrentLimits1, getCurrentLimits2, getOverloadDuration, getSide, getTerminal, getTerminal, getTerminal1, getTerminal2, isOverloaded, isOverloaded, newCurrentLimits1, newCurrentLimits2
getTerminals, getType, remove
getId, getName, getNameOrId, getNetwork, getOptionalName, getProperties, getProperty, getProperty, getPropertyNames, hasProperty, hasProperty, isFictitious, setFictitious, setProperty
addExtension, getExtension, getExtensionByName, getExtensions, getImplementationName, newExtension, removeExtension
public double getR()
LineCharacteristics
getR
in interface LineCharacteristics<Line>
public Line setR(double r)
LineCharacteristics
setR
in interface LineCharacteristics<Line>
public double getX()
LineCharacteristics
getX
in interface LineCharacteristics<Line>
public Line setX(double x)
LineCharacteristics
setX
in interface LineCharacteristics<Line>
public double getG1()
LineCharacteristics
getG1
in interface LineCharacteristics<Line>
public Line setG1(double g1)
LineCharacteristics
setG1
in interface LineCharacteristics<Line>
public double getG2()
LineCharacteristics
getG2
in interface LineCharacteristics<Line>
public Line setG2(double g2)
LineCharacteristics
setG2
in interface LineCharacteristics<Line>
public double getB1()
LineCharacteristics
getB1
in interface LineCharacteristics<Line>
public Line setB1(double b1)
LineCharacteristics
setB1
in interface LineCharacteristics<Line>
public double getB2()
LineCharacteristics
getB2
in interface LineCharacteristics<Line>
public Line setB2(double b2)
LineCharacteristics
setB2
in interface LineCharacteristics<Line>
public Terminal getTerminal1()
Branch
getTerminal1
in interface Branch<I extends Branch<I>>
public Terminal getTerminal2()
Branch
getTerminal2
in interface Branch<I extends Branch<I>>
public Terminal getTerminal(Branch.Side side)
getTerminal
in interface Branch<I extends Branch<I>>
public Terminal getTerminal(String voltageLevelId)
getTerminal
in interface Branch<I extends Branch<I>>
public Branch.Side getSide(Terminal terminal)
public CurrentLimits getCurrentLimits(Branch.Side side)
getCurrentLimits
in interface Branch<I extends Branch<I>>
public CurrentLimits getCurrentLimits1()
getCurrentLimits1
in interface Branch<I extends Branch<I>>
public CurrentLimitsAdder newCurrentLimits1()
newCurrentLimits1
in interface Branch<I extends Branch<I>>
public CurrentLimits getCurrentLimits2()
getCurrentLimits2
in interface Branch<I extends Branch<I>>
public CurrentLimitsAdder newCurrentLimits2()
newCurrentLimits2
in interface Branch<I extends Branch<I>>
public boolean isOverloaded()
isOverloaded
in interface Branch<I extends Branch<I>>
public boolean isOverloaded(float limitReduction)
isOverloaded
in interface Branch<I extends Branch<I>>
public int getOverloadDuration()
getOverloadDuration
in interface Branch<I extends Branch<I>>
public boolean checkPermanentLimit(Branch.Side side, float limitReduction)
checkPermanentLimit
in interface Branch<I extends Branch<I>>
public boolean checkPermanentLimit(Branch.Side side)
checkPermanentLimit
in interface Branch<I extends Branch<I>>
public boolean checkPermanentLimit1(float limitReduction)
checkPermanentLimit1
in interface Branch<I extends Branch<I>>
public boolean checkPermanentLimit1()
checkPermanentLimit1
in interface Branch<I extends Branch<I>>
public boolean checkPermanentLimit2(float limitReduction)
checkPermanentLimit2
in interface Branch<I extends Branch<I>>
public boolean checkPermanentLimit2()
checkPermanentLimit2
in interface Branch<I extends Branch<I>>
public Branch.Overload checkTemporaryLimits(Branch.Side side, float limitReduction)
checkTemporaryLimits
in interface Branch<I extends Branch<I>>
public Branch.Overload checkTemporaryLimits(Branch.Side side)
checkTemporaryLimits
in interface Branch<I extends Branch<I>>
public Branch.Overload checkTemporaryLimits1(float limitReduction)
checkTemporaryLimits1
in interface Branch<I extends Branch<I>>
public Branch.Overload checkTemporaryLimits1()
checkTemporaryLimits1
in interface Branch<I extends Branch<I>>
public Branch.Overload checkTemporaryLimits2(float limitReduction)
checkTemporaryLimits2
in interface Branch<I extends Branch<I>>
public Branch.Overload checkTemporaryLimits2()
checkTemporaryLimits2
in interface Branch<I extends Branch<I>>
public final ConnectableType getType()
Connectable
getType
in interface Connectable<I extends Connectable<I>>
public final List<? extends Terminal> getTerminals()
getTerminals
in interface Connectable<I extends Connectable<I>>
public final void remove()
Connectable
remove
in interface Connectable<I extends Connectable<I>>
public MergingView getNetwork()
Identifiable
getNetwork
in interface Identifiable<I extends Identifiable<I>>
public 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 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>>
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 <E extends Extension<I>> void addExtension(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(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(String name)
Extendable
getExtensionByName
in interface Extendable<I extends Identifiable<I>>
name
- the extension namepublic <E extends Extension<I>> boolean removeExtension(Class<E> type)
Extendable
removeExtension
in interface Extendable<I extends Identifiable<I>>
E
- the extension typetype
- the extension class typepublic <E extends Extension<I>> Collection<E> getExtensions()
Extendable
getExtensions
in interface Extendable<I extends Identifiable<I>>
public String getImplementationName()
Extendable
ExtensionAdderProvider
s
when selecting implementations of extensions in Extendable.newExtension(java.lang.Class<B>)
. This
is meant to be overriden by extendables when multiple implementations exist.getImplementationName
in interface Extendable<I extends Identifiable<I>>
public <E extends Extension<I>,B extends ExtensionAdder<I,E>> B newExtension(Class<B> type)
Extendable
The extension implementation is selected at runtime based on matching the
Extendable.getImplementationName()
of this extendable to the
ExtensionAdderProvider.getImplementationName()
of a provider.
Implementations are loaded with java's ServiceLoader
using
the ExtensionAdderProvider interface.
newExtension
in interface Extendable<I extends Identifiable<I>>
type
- The interface of the ExtensionAdderprotected I getDelegate()
protected com.powsybl.iidm.mergingview.MergingViewIndex getIndex()
Copyright © 2020. All rights reserved.