Skip to content

e-clearing-net/OCHP-DATEX2-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Converter for OCHP 1.4 location data to DATEX II v3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages