Package com.powsybl.iidm.mergingview
Class TerminalAdapter
- java.lang.Object
-
- com.powsybl.iidm.mergingview.TerminalAdapter
-
- All Implemented Interfaces:
MultiVariantObject
,Terminal
public class TerminalAdapter extends Object implements Terminal, MultiVariantObject
- Author:
- Thomas Adam
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.iidm.network.Terminal
Terminal.BusBreakerView, Terminal.BusView, Terminal.NodeBreakerView, Terminal.TopologyTraverser
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cloneVariant(String sourceVariantId, List<String> targetVariantIds)
boolean
connect()
Try to connect the terminal.boolean
disconnect()
Disconnect the terminal.Terminal.BusBreakerView
getBusBreakerView()
Get a view to access to bus/breaker topology informations at the terminal.Terminal.BusView
getBusView()
Get a view to access to bus topology informations at the terminal.Connectable
getConnectable()
Get the equipment that is connected to the terminal.protected I
getDelegate()
double
getI()
Get the current in A at the terminal.protected com.powsybl.iidm.mergingview.MergingViewIndex
getIndex()
Terminal.NodeBreakerView
getNodeBreakerView()
Get a view to access to node/breaker topology informations at the terminal.double
getP()
Get the active power in MW injected at the terminal.double
getQ()
Get the reactive power in MVAR injected at the terminal.com.powsybl.iidm.mergingview.AbstractVoltageLevelAdapter
getVoltageLevel()
Get the substation to which the terminal belongs.boolean
isConnected()
Test if the terminal is connected.void
removeVariant(String variantId)
Terminal
setP(double p)
Set the active power in MW injected at the terminal.Terminal
setQ(double q)
Set the reactive power in MVAR injected at the terminal.void
traverse(Terminal.TopologyTraverser traverser)
Traverse the full network topology graph.
-
-
-
Method Detail
-
getVoltageLevel
public com.powsybl.iidm.mergingview.AbstractVoltageLevelAdapter getVoltageLevel()
Description copied from interface:Terminal
Get the substation to which the terminal belongs.- Specified by:
getVoltageLevel
in interfaceTerminal
-
getNodeBreakerView
public Terminal.NodeBreakerView getNodeBreakerView()
Description copied from interface:Terminal
Get a view to access to node/breaker topology informations at the terminal.- Specified by:
getNodeBreakerView
in interfaceTerminal
-
getBusBreakerView
public Terminal.BusBreakerView getBusBreakerView()
Description copied from interface:Terminal
Get a view to access to bus/breaker topology informations at the terminal.- Specified by:
getBusBreakerView
in interfaceTerminal
-
getBusView
public Terminal.BusView getBusView()
Description copied from interface:Terminal
Get a view to access to bus topology informations at the terminal.- Specified by:
getBusView
in interfaceTerminal
-
getConnectable
public Connectable getConnectable()
Description copied from interface:Terminal
Get the equipment that is connected to the terminal.- Specified by:
getConnectable
in interfaceTerminal
-
getP
public double getP()
Description copied from interface:Terminal
Get the active power in MW injected at the terminal.Depends on the working variant.
- Specified by:
getP
in interfaceTerminal
- See Also:
VariantManager
-
setP
public Terminal setP(double p)
Description copied from interface:Terminal
Set the active power in MW injected at the terminal.Depends on the working variant.
- Specified by:
setP
in interfaceTerminal
- See Also:
VariantManager
-
getQ
public double getQ()
Description copied from interface:Terminal
Get the reactive power in MVAR injected at the terminal.Depends on the working variant.
- Specified by:
getQ
in interfaceTerminal
- See Also:
VariantManager
-
setQ
public Terminal setQ(double q)
Description copied from interface:Terminal
Set the reactive power in MVAR injected at the terminal.Depends on the working variant.
- Specified by:
setQ
in interfaceTerminal
- See Also:
VariantManager
-
getI
public double getI()
Description copied from interface:Terminal
Get the current in A at the terminal.Depends on the working variant.
- Specified by:
getI
in interfaceTerminal
- See Also:
VariantManager
-
connect
public boolean connect()
Description copied from interface:Terminal
Try to connect the terminal.Depends on the working variant.
- Specified by:
connect
in interfaceTerminal
- Returns:
- true if terminal has been connected, false otherwise
- See Also:
VariantManager
-
disconnect
public boolean disconnect()
Description copied from interface:Terminal
Disconnect the terminal.Depends on the working variant.
- Specified by:
disconnect
in interfaceTerminal
- Returns:
- true if terminal has been disconnected, false otherwise
- See Also:
VariantManager
-
isConnected
public boolean isConnected()
Description copied from interface:Terminal
Test if the terminal is connected.- Specified by:
isConnected
in interfaceTerminal
- Returns:
- true if the terminal is connected, false otherwise
-
cloneVariant
public void cloneVariant(String sourceVariantId, List<String> targetVariantIds)
- Specified by:
cloneVariant
in interfaceMultiVariantObject
-
removeVariant
public void removeVariant(String variantId)
- Specified by:
removeVariant
in interfaceMultiVariantObject
-
traverse
public void traverse(Terminal.TopologyTraverser traverser)
Description copied from interface:Terminal
Traverse the full network topology graph.
-
getDelegate
protected I getDelegate()
-
getIndex
protected com.powsybl.iidm.mergingview.MergingViewIndex getIndex()
-
-