Class ChargingPointTypeUtils
java.lang.Object
edu.ie3.datamodel.models.input.system.type.chargingpoint.ChargingPointTypeUtils
Utility class to create either custom instances of
ChargingPointType
s or to retrieve
common standard ChargingPointType
s based on their id- Since:
- 26.07.20
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ChargingPointType
static final ChargingPointType
static final ChargingPointType
static final ChargingPointType
static final ChargingPointType
static final ChargingPointType
static final ChargingPointType
static final ChargingPointType
protected static final Map<String,
ChargingPointType> all common charging point types accessible mapped on their id and all synonymous idsstatic final ChargingPointType
static final ChargingPointType
static final ChargingPointType
static final ChargingPointType
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ChargingPointType>
fromIdString
(String id) Retrieve a common standard charging point type based on its id or one of its synonymous idsstatic ChargingPointType
Parse a given string into either a customChargingPointType
or a standardChargingPointType
.
-
Field Details
-
HouseholdSocket
-
BlueHouseholdSocket
-
Cee16ASocket
-
Cee32ASocket
-
Cee63ASocket
-
ChargingStationType1
-
ChargingStationType2
-
ChargingStationCcsComboType1
-
ChargingStationCcsComboType2
-
TeslaSuperChargerV1
-
TeslaSuperChargerV2
-
TeslaSuperChargerV3
-
commonChargingPointTypes
all common charging point types accessible mapped on their id and all synonymous ids
-
-
Method Details
-
parse
Parse a given string into either a customChargingPointType
or a standardChargingPointType
. A custom charging point type can be created if the prsable string matches the following regex(\w+\d*)\s*\(\s*(\d+\.?\d+)\s*\|\s*(AC|DC)\s*\)
e.g.FastCharger(50|DC)
is a valid custom charging point definition. The apparent power value is expected to be in kVA.For all available common standard charging point types see
commonChargingPointTypes
.- Parameters:
parsableString
- the string to be parsed. Either a valid custom string or the id of a common standard charging point- Returns:
- instance of a
ChargingPointType
- Throws:
ChargingPointTypeException
- if the string is neither a valid custom charging point string nor a valid common standard charging point id
-
fromIdString
Retrieve a common standard charging point type based on its id or one of its synonymous idsFor all available common standard charging point types see
commonChargingPointTypes
.- Parameters:
id
- the id of the common standard charging point type- Returns:
- optional containing id matching
ChargingPointType
or an empty optional if no common charging point type matching the provided id can be found
-