Package com.powsybl.ucte.network
Class UcteNodeCode
java.lang.Object
com.powsybl.ucte.network.UcteNodeCode
- All Implemented Interfaces:
Comparable<UcteNodeCode>
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
ConstructorDescriptionUcteNodeCode
(UcteCountryCode ucteCountryCode, String geographicalSpot, UcteVoltageLevelCode voltageLevelCode, Character busbar) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(UcteNodeCode ucteNodeCode) boolean
Gets letter or figure for differentiating bus bars (optional).Gets short description of the geographical spot.Gets UCTE country code.Gets voltage level.int
hashCode()
static boolean
isUcteNodeId
(String id) static Optional<UcteNodeCode>
Convert a string into a UcteNodeCode if possible, i.e. the string is compatible with the ucteNodeCode formatvoid
Sets letter or figure for differentiating bus bars (optional).void
setGeographicalSpot
(String geographicalSpot) Sets short description of the geographical spot.void
setUcteCountryCode
(UcteCountryCode ucteCountryCode) Sets UCTE country code.void
setVoltageLevelCode
(UcteVoltageLevelCode voltageLevelCode) Sets voltage level.toString()
-
Constructor Details
-
UcteNodeCode
public UcteNodeCode(UcteCountryCode ucteCountryCode, String geographicalSpot, UcteVoltageLevelCode voltageLevelCode, Character busbar)
-
-
Method Details
-
getUcteCountryCode
Gets UCTE country code.- Returns:
- UCTE country code
-
setUcteCountryCode
Sets UCTE country code.- Parameters:
ucteCountryCode
- UCTE country code
-
getGeographicalSpot
Gets short description of the geographical spot.- Returns:
- short description of the geographical spot
-
setGeographicalSpot
Sets short description of the geographical spot.- Parameters:
geographicalSpot
- short description of the geographical spot
-
getVoltageLevelCode
Gets voltage level.- Returns:
- voltage level
-
setVoltageLevelCode
Sets voltage level.- Parameters:
voltageLevelCode
- voltage level
-
getBusbar
Gets letter or figure for differentiating bus bars (optional).- Returns:
- letter or figure for differentiating bus bars
-
setBusbar
Sets letter or figure for differentiating bus bars (optional).- Parameters:
busbar
- letter or figure for differentiating bus bars
-
parseUcteNodeCode
Convert a string into a UcteNodeCode if possible, i.e. the string is compatible with the ucteNodeCode format- Parameters:
id
- to convert into a UcteNodeCode- Returns:
- an Optional that may contain a UcteNodeCode
-
isUcteNodeId
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<UcteNodeCode>
-