This is a converter (mapper) library to convert (map) OCHP Model to Datex II 3.2 Model for publishing.
Some of the mapping is done with the help of mapstruct.
mapstruct generates code on compile time.
Main OCHP Models are ChargePointInfo, TariffInfo and EvseStatusType (Live-Status).
Technical documentation:
- Datex II UML
- Datex II Energy and ElectricChargingPoint
- DATEX II Spannende Daten kompliziert verpackt - German
All mapping classes are located in the package de.now.mapper.ochp.
Datex II and OCHP schemas (.xsd) are located in resources/schemas/.
Classes are generated from the schema.
The methods in EnergyInfrastructureMapper are not setting all fields:
- EnergyInfrastructureStation.refillPoint (ElectricChargingPoint) needs to be set manually (source is ChargePointInfo);
- EnergyInfrastructureSite.rates (GeneralRateInformation) needs to be set manually (source is TariffInfo);
- EnergyInfrastructureTable.energyInfrastructureSite needs to be set manually;
Maven clean, compile, test, etc.
Unit tests are included for each mapper class. \