Package com.powsybl.iidm.network
Interface Substation
-
- All Superinterfaces:
Container<Substation>
,Extendable<Substation>
,Identifiable<Substation>
public interface Substation extends Container<Substation>
A substation is a collection of equipments located at a the same geographical site.It is composed of several voltage levels.
A substation is located to one country and belongs to one TSO.
To create a substation, see
SubstationAdder
Characteristics
Attribute Type Unit Required Defaut value Description Id String - yes - Unique identifier of the substation Name String - yes - Human-readable name of the substation Country Countrye - no - The country where this substation is located Tso String - no - The TSO this substation belongs to GeoraphicalTags List of String - no - A list of geographical tags - Author:
- Geoffroy Jamgotchian
- See Also:
VoltageLevel
,Country
,SubstationAdder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Substation
addGeographicalTag(String tag)
Associate a new geographical tag to the substation.Optional<Country>
getCountry()
Get an optional containing the country to which the substation belongs if it is defined, Optional.empty() if not.Set<String>
getGeographicalTags()
Get geographical tags associated to the substation.Network
getNetwork()
Get the network associated to the object.Country
getNullableCountry()
Get country to which the substation belongs if it is defined, null otherwise.int
getThreeWindingsTransformerCount()
Get the three windings transformers countIterable<ThreeWindingsTransformer>
getThreeWindingsTransformers()
Get the 3 windings transformers connected to the substation.Stream<ThreeWindingsTransformer>
getThreeWindingsTransformerStream()
Get the 3 windings transformers connected to the substation.String
getTso()
Get the TSO to which the substation belongs.int
getTwoWindingsTransformerCount()
Get the two windings transformers countIterable<TwoWindingsTransformer>
getTwoWindingsTransformers()
Get the two windings transformers connected to the substation.Stream<TwoWindingsTransformer>
getTwoWindingsTransformerStream()
Get the two windings transformers connected to the substation.Iterable<VoltageLevel>
getVoltageLevels()
Get the voltage levels of the substation.Stream<VoltageLevel>
getVoltageLevelStream()
Get the voltage levels of the substation.ThreeWindingsTransformerAdder
newThreeWindingsTransformer()
Get a builder to create a new 3 windings transformer in the substation.TwoWindingsTransformerAdder
newTwoWindingsTransformer()
Get a builder to create a new two windings transformer in the substation.VoltageLevelAdder
newVoltageLevel()
Get a builder to create a new voltage level in the substation.default void
remove()
Remove this substation from the network.Substation
setCountry(Country country)
Substation
setTso(String tso)
-
Methods inherited from interface com.powsybl.iidm.network.Container
getContainerType
-
Methods inherited from interface com.powsybl.commons.extensions.Extendable
addExtension, getExtension, getExtensionByName, getExtensions, getImplementationName, newExtension, removeExtension
-
Methods inherited from interface com.powsybl.iidm.network.Identifiable
addAlias, addAlias, addAlias, addAlias, getAliases, getAliasFromType, getAliasType, getId, getName, getNameOrId, getOptionalName, getProperties, getProperty, getProperty, getPropertyNames, hasAliases, hasProperty, hasProperty, isFictitious, removeAlias, setFictitious, setProperty
-
-
-
-
Method Detail
-
getNetwork
Network getNetwork()
Description copied from interface:Identifiable
Get the network associated to the object.- Specified by:
getNetwork
in interfaceIdentifiable<Substation>
-
getCountry
Optional<Country> getCountry()
Get an optional containing the country to which the substation belongs if it is defined, Optional.empty() if not.
-
getNullableCountry
Country getNullableCountry()
Get country to which the substation belongs if it is defined, null otherwise.- Returns:
- the country to which the substation belongs if it is defined, null otherwise.
-
setCountry
Substation setCountry(Country country)
-
getTso
String getTso()
Get the TSO to which the substation belongs.
-
setTso
Substation setTso(String tso)
-
newVoltageLevel
VoltageLevelAdder newVoltageLevel()
Get a builder to create a new voltage level in the substation.
-
getVoltageLevels
Iterable<VoltageLevel> getVoltageLevels()
Get the voltage levels of the substation.
-
getVoltageLevelStream
Stream<VoltageLevel> getVoltageLevelStream()
Get the voltage levels of the substation.
-
newTwoWindingsTransformer
TwoWindingsTransformerAdder newTwoWindingsTransformer()
Get a builder to create a new two windings transformer in the substation.
-
getTwoWindingsTransformers
Iterable<TwoWindingsTransformer> getTwoWindingsTransformers()
Get the two windings transformers connected to the substation.
-
getTwoWindingsTransformerStream
Stream<TwoWindingsTransformer> getTwoWindingsTransformerStream()
Get the two windings transformers connected to the substation.
-
getTwoWindingsTransformerCount
int getTwoWindingsTransformerCount()
Get the two windings transformers count
-
newThreeWindingsTransformer
ThreeWindingsTransformerAdder newThreeWindingsTransformer()
Get a builder to create a new 3 windings transformer in the substation.
-
getThreeWindingsTransformers
Iterable<ThreeWindingsTransformer> getThreeWindingsTransformers()
Get the 3 windings transformers connected to the substation.
-
getThreeWindingsTransformerStream
Stream<ThreeWindingsTransformer> getThreeWindingsTransformerStream()
Get the 3 windings transformers connected to the substation.
-
getThreeWindingsTransformerCount
int getThreeWindingsTransformerCount()
Get the three windings transformers count
-
getGeographicalTags
Set<String> getGeographicalTags()
Get geographical tags associated to the substation.
-
addGeographicalTag
Substation addGeographicalTag(String tag)
Associate a new geographical tag to the substation.
-
remove
default void remove()
Remove this substation from the network.
-
-