Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.59 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.59 KB

Introduction

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:

Getting Started

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;

Build and Test

Maven clean, compile, test, etc.
Unit tests are included for each mapper class. \

Datex II sample data