-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into svc_export
- Loading branch information
Showing
55 changed files
with
2,522 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
iidm-network-api/src/main/java/eu/itesla_project/iidm/network/HvdcConverterStation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.iidm.network; | ||
|
||
/** | ||
* HVDC converter station. This is the base class for VSC and LCC. | ||
* AC side of the converter is connected inside a substation. | ||
* | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
* @author Mathieu Bague <mathieu.bague at rte-france.com> | ||
*/ | ||
public interface HvdcConverterStation<T extends HvdcConverterStation<T>> extends SingleTerminalConnectable<T> { | ||
|
||
/** | ||
* HDVC type: VSC or LCC | ||
*/ | ||
enum HvdcType { | ||
VSC, | ||
LCC | ||
} | ||
|
||
/** | ||
* Get HVDC type. | ||
* @return HVDC type | ||
*/ | ||
HvdcType getHvdcType(); | ||
|
||
} |
113 changes: 113 additions & 0 deletions
113
iidm-network-api/src/main/java/eu/itesla_project/iidm/network/HvdcLine.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.iidm.network; | ||
|
||
/** | ||
* A HVDC line connected to two HVDC converters on DC side. | ||
* It has to be connected to the same <code>{@link HvdcConverterStation}</code> subclass. | ||
* | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
* @author Mathieu Bague <mathieu.bague at rte-france.com> | ||
*/ | ||
public interface HvdcLine extends Identifiable<HvdcLine> { | ||
|
||
/** | ||
* Converters mode used to known the sign of the active power of the HVDC line. | ||
*/ | ||
enum ConvertersMode { | ||
SIDE_1_RECTIFIER_SIDE_2_INVERTER, | ||
SIDE_1_INVERTER_SIDE_2_RECTIFIER | ||
} | ||
|
||
/** | ||
* Get the network this HVDC line belongs. | ||
* @return the network this HVDC line belongs | ||
*/ | ||
Network getNetwork(); | ||
|
||
/** | ||
* Get converters mode. | ||
* @return converters mode | ||
*/ | ||
ConvertersMode getConvertersMode(); | ||
|
||
/** | ||
* Change converters mode. | ||
* @param mode converters mode | ||
* @return the station itself to allow method chaining. | ||
*/ | ||
HvdcLine setConvertersMode(ConvertersMode mode); | ||
|
||
/** | ||
* Get resistance (in Ω) of the line. | ||
* @return the resistance of the line | ||
*/ | ||
float getR(); | ||
|
||
/** | ||
* Set the resistance (in Ω) of the line. | ||
* @param r the resistance of the line | ||
* @return the HVDC line itself to allow method chaining | ||
*/ | ||
HvdcLine setR(float r); | ||
|
||
/** | ||
* Get the nominal voltage (in Kv). | ||
* @return the nominal voltage. | ||
*/ | ||
float getNominalV(); | ||
|
||
/** | ||
* Set the nominal voltage. | ||
* @param nominalV the nominal voltage. | ||
* @return the HVDC line itself to allow method chaining | ||
*/ | ||
HvdcLine setNominalV(float nominalV); | ||
|
||
/** | ||
* Get the active power setpoint target (in MW). | ||
* @return the active power setpoint target | ||
*/ | ||
float getActivePowerSetPoint(); | ||
|
||
/** | ||
* Set the active power setpoint target (in MW). | ||
* @param activePowerSetPoint the active power setpoint target | ||
* @return the HVDC line itself to allow method chaining | ||
*/ | ||
HvdcLine setActivePowerSetPoint(float activePowerSetPoint); | ||
|
||
/** | ||
* Get the maximum active power (in MW). | ||
* @return the maximum active power | ||
*/ | ||
float getMaxP(); | ||
|
||
/** | ||
* Set the maximum active power (in MW). | ||
* @param maxP the maximum active power | ||
* @return the HVDC line itself to allow method chaining | ||
*/ | ||
HvdcLine setMaxP(float maxP); | ||
|
||
/** | ||
* Get the HVDC converter station connected on side 1. | ||
* @return the HVDC converter station connected on side 1 | ||
*/ | ||
HvdcConverterStation<?> getConverterStation1(); | ||
|
||
/** | ||
* Get the HVDC converter station connected on side 2. | ||
* @return the HVDC converter station connected on side 2 | ||
*/ | ||
HvdcConverterStation<?> getConverterStation2(); | ||
|
||
/** | ||
* Remove the HVDC line | ||
*/ | ||
void remove(); | ||
} |
32 changes: 32 additions & 0 deletions
32
iidm-network-api/src/main/java/eu/itesla_project/iidm/network/HvdcLineAdder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.iidm.network; | ||
|
||
/** | ||
* HVDC line builder and adder. | ||
* | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
* @author Mathieu Bague <mathieu.bague at rte-france.com> | ||
*/ | ||
public interface HvdcLineAdder extends IdentifiableAdder<HvdcLineAdder> { | ||
|
||
HvdcLineAdder setR(float r); | ||
|
||
HvdcLineAdder setConvertersMode(HvdcLine.ConvertersMode convertersMode); | ||
|
||
HvdcLineAdder setNominalV(float nominalV); | ||
|
||
HvdcLineAdder setActivePowerSetPoint(float activePowerSetPoint); | ||
|
||
HvdcLineAdder setMaxP(float maxP); | ||
|
||
HvdcLineAdder setConverterStationId1(String converterStationId1); | ||
|
||
HvdcLineAdder setConverterStationId2(String converterStationId2); | ||
|
||
HvdcLine add(); | ||
} |
60 changes: 60 additions & 0 deletions
60
iidm-network-api/src/main/java/eu/itesla_project/iidm/network/LccConverterStation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.iidm.network; | ||
|
||
/** | ||
* LCC converter station. | ||
* | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
* @author Mathieu Bague <mathieu.bague at rte-france.com> | ||
*/ | ||
public interface LccConverterStation extends HvdcConverterStation<LccConverterStation> { | ||
|
||
/** | ||
* Get power factor (ratio of the active power and the apparent power) | ||
* @return the power factor. | ||
*/ | ||
float getPowerFactor(); | ||
|
||
/** | ||
* Set the power factor. Has to be greater that zero. | ||
* @param powerFactor the new power factor | ||
* @return the converter itself to allow method chaining | ||
*/ | ||
LccConverterStation setPowerFactor(float powerFactor); | ||
|
||
/** | ||
* Get a builder to create a new filter. | ||
* @return a builder to create a new filter | ||
*/ | ||
LccFilterAdder newFilter(); | ||
|
||
/** | ||
* Get filter count. | ||
* @return filter count | ||
*/ | ||
int getFilterCount(); | ||
|
||
/** | ||
* Remove a filter based on its index. | ||
* @param index index of the filter to remove | ||
*/ | ||
void removeFilterAt(int index); | ||
|
||
/** | ||
* Get a filter based on its index. | ||
* @param index index of the filter to get | ||
* @return the filter corresponding to the index | ||
*/ | ||
LccFilter getFilterAt(int index); | ||
|
||
/** | ||
* Return all the filters. | ||
* @return all the filters. | ||
*/ | ||
Iterable<LccFilter> getFilters(); | ||
} |
20 changes: 20 additions & 0 deletions
20
iidm-network-api/src/main/java/eu/itesla_project/iidm/network/LccConverterStationAdder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.iidm.network; | ||
|
||
/** | ||
* LCC converter station builder and adder. | ||
* | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com> | ||
* @author Mathieu Bague <mathieu.bague at rte-france.com> | ||
*/ | ||
public interface LccConverterStationAdder extends SingleTerminalConnectableAdder<LccConverterStationAdder> { | ||
|
||
LccConverterStationAdder setPowerFactor(float powerFactor); | ||
|
||
LccConverterStation add(); | ||
} |
44 changes: 44 additions & 0 deletions
44
iidm-network-api/src/main/java/eu/itesla_project/iidm/network/LccFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.iidm.network; | ||
|
||
/** | ||
* Harmonic filter. | ||
* q = b * v^2 | ||
* | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
* @author Mathieu Bague <mathieu.bague at rte-france.com> | ||
*/ | ||
public interface LccFilter { | ||
|
||
/** | ||
* Get filter susceptance (Ω). | ||
* @return | ||
*/ | ||
float getB(); | ||
|
||
/** | ||
* Set filter susceptance (Ω). | ||
* @param b filter susceptance; | ||
* @return the filter itself to allow method chaining | ||
*/ | ||
LccFilter setB(float b); | ||
|
||
/** | ||
* Check the filter is connected. | ||
* @return true if the filter is connected, false otherwise. | ||
*/ | ||
boolean isConnected(); | ||
|
||
/** | ||
* Set the connection status of the filter. | ||
* @param connected the new connection status of the filter | ||
* @return the filter itself to allow method chaining | ||
*/ | ||
LccFilter setConnected(boolean connected); | ||
} | ||
|
20 changes: 20 additions & 0 deletions
20
iidm-network-api/src/main/java/eu/itesla_project/iidm/network/LccFilterAdder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.iidm.network; | ||
|
||
/** | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
* @author Mathieu Bague <mathieu.bague at rte-france.com> | ||
*/ | ||
public interface LccFilterAdder { | ||
|
||
LccFilterAdder setB(float b); | ||
|
||
LccFilterAdder setConnected(boolean connected); | ||
|
||
LccFilter add(); | ||
} |
Oops, something went wrong.