public class UcteNodeCode extends Object implements Comparable<UcteNodeCode>
Constructor and Description |
---|
UcteNodeCode(UcteCountryCode ucteCountryCode,
String geographicalSpot,
UcteVoltageLevelCode voltageLevelCode,
Character busbar) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UcteNodeCode ucteNodeCode) |
boolean |
equals(Object obj) |
Character |
getBusbar()
Gets letter or figure for differentiating bus bars (optional).
|
String |
getGeographicalSpot()
Gets short description of the geographical spot.
|
UcteCountryCode |
getUcteCountryCode()
Gets UCTE country code.
|
UcteVoltageLevelCode |
getVoltageLevelCode()
Gets voltage level.
|
int |
hashCode() |
static boolean |
isUcteNodeId(String id) |
static Optional<UcteNodeCode> |
parseUcteNodeCode(String id)
Convert a string into a UcteNodeCode if possible, i.e. the string is compatible with the ucteNodeCode format
|
void |
setBusbar(Character busbar)
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.
|
String |
toString() |
public UcteNodeCode(UcteCountryCode ucteCountryCode, String geographicalSpot, UcteVoltageLevelCode voltageLevelCode, Character busbar)
public UcteCountryCode getUcteCountryCode()
public void setUcteCountryCode(UcteCountryCode ucteCountryCode)
ucteCountryCode
- UCTE country codepublic String getGeographicalSpot()
public void setGeographicalSpot(String geographicalSpot)
geographicalSpot
- short description of the geographical spotpublic UcteVoltageLevelCode getVoltageLevelCode()
public void setVoltageLevelCode(UcteVoltageLevelCode voltageLevelCode)
voltageLevelCode
- voltage levelpublic Character getBusbar()
public void setBusbar(Character busbar)
busbar
- letter or figure for differentiating bus barspublic static Optional<UcteNodeCode> parseUcteNodeCode(String id)
id
- to convert into a UcteNodeCodepublic static boolean isUcteNodeId(String id)
public int compareTo(UcteNodeCode ucteNodeCode)
compareTo
in interface Comparable<UcteNodeCode>
Copyright © 2020. All rights reserved.