// SPDX-License-Identifier: Apache-2.0 // Copyright Pionix GmbH and Contributors to EVerest #ifndef ISO15118_CHARGERIMPLSTUB_H_ #define ISO15118_CHARGERIMPLSTUB_H_ #include #include #include "ModuleAdapterStub.hpp" #include //----------------------------------------------------------------------------- namespace module::stub { struct ISO15118_chargerImplStub : public ISO15118_chargerImplBase { ISO15118_chargerImplStub(ModuleAdapterStub& adapter) : ISO15118_chargerImplBase(&adapter, "EvseV2G"){}; ISO15118_chargerImplStub(ModuleAdapterStub* adapter) : ISO15118_chargerImplBase(adapter, "EvseV2G"){}; virtual void init() { } virtual void ready() { } virtual void handle_setup(types::iso15118::EVSEID& evse_id, types::iso15118::SaeJ2847BidiMode& sae_j2847_mode, bool& debug_mode) { std::cout << "ISO15118_chargerImplBase::handle_setup called" << std::endl; } virtual void handle_update_energy_transfer_modes( std::vector& supported_energy_transfer_modes) { std::cout << "ISO15118_chargerImplBase::handle_update_energy_transfer_modes called" << std::endl; } virtual void handle_set_charging_parameters(types::iso15118::SetupPhysicalValues& physical_values) { std::cout << "ISO15118_chargerImplBase::handle_set_charging_parameters called" << std::endl; } virtual void handle_session_setup(std::vector& payment_options, bool& supported_certificate_service, bool& central_contract_validation_allowed) { std::cout << "ISO15118_chargerImplBase::handle_session_setup called" << std::endl; } virtual void handle_authorization_response(types::authorization::AuthorizationStatus& authorization_status, types::authorization::CertificateStatus& certificate_status) { std::cout << "ISO15118_chargerImplBase::handle_authorization_response called" << std::endl; } virtual void handle_bpt_setup(types::iso15118::BptSetup& config) { std::cout << "ISO15118_chargerImplBase::handle_bpt_setup called" << std::endl; } virtual void handle_set_powersupply_capabilities(types::power_supply_DC::Capabilities& capabilities) { std::cout << "ISO15118_chargerImplBase::handle_set_powersupply_capabilities called" << std::endl; } virtual void handle_ac_contactor_closed(bool& status) { std::cout << "ISO15118_chargerImplBase::handle_ac_contactor_closed called" << std::endl; } virtual void handle_dlink_ready(bool& value) { std::cout << "ISO15118_chargerImplBase::handle_dlink_ready called" << std::endl; } virtual void handle_cable_check_finished(bool& status) { std::cout << "ISO15118_chargerImplBase::handle_cable_check_finished called" << std::endl; } virtual void handle_receipt_is_required(bool& receipt_required) { std::cout << "ISO15118_chargerImplBase::handle_receipt_is_required called" << std::endl; } virtual void handle_stop_charging(bool& stop) { std::cout << "ISO15118_chargerImplBase::handle_stop_charging called" << std::endl; } virtual void handle_pause_charging(bool& pause) { std::cout << "ISO15118_chargerImplBase::handle_pause_charging called" << std::endl; } virtual void handle_no_energy_pause_charging(types::iso15118::NoEnergyPauseMode& mode) { std::cout << "ISO15118_chargerImplBase::handle_no_energy_pause_charging called" << std::endl; } virtual bool handle_update_supported_app_protocols(types::iso15118::SupportedAppProtocols& supported_app_protocols) { std::cout << "ISO15118_chargerImplBase::handle_update_supported_app_protocols called" << std::endl; return true; } virtual void handle_update_ac_max_current(double& max_current) { std::cout << "ISO15118_chargerImplBase::handle_update_ac_max_current called" << std::endl; } virtual void handle_update_ac_parameters(types::iso15118::AcParameters& ac_parameters) { std::cout << "ISO15118_chargerImplBase::handle_update_ac_parameters called" << std::endl; } virtual void handle_update_ac_maximum_limits(types::iso15118::AcEvseMaximumPower& maximum_limits) { std::cout << "ISO15118_chargerImplBase::handle_update_ac_maximum_limits called" << std::endl; } virtual void handle_update_ac_minimum_limits(types::iso15118::AcEvseMinimumPower& minimum_limits) { std::cout << "ISO15118_chargerImplBase::handle_update_ac_minimum_limits called" << std::endl; } virtual void handle_update_ac_target_values(types::iso15118::AcTargetValues& target_values) { std::cout << "ISO15118_chargerImplBase::handle_update_ac_target_values called" << std::endl; } virtual void handle_update_ac_present_power(types::units::Power& present_power) { std::cout << "ISO15118_chargerImplBase::handle_update_ac_present_power called" << std::endl; } virtual void handle_update_dc_maximum_limits(types::iso15118::DcEvseMaximumLimits& maximum_limits) { std::cout << "ISO15118_chargerImplBase::handle_update_dc_maximum_limits called" << std::endl; } virtual void handle_update_dc_minimum_limits(types::iso15118::DcEvseMinimumLimits& minimum_limits) { std::cout << "ISO15118_chargerImplBase::handle_update_dc_minimum_limits called" << std::endl; } virtual void handle_update_isolation_status(types::iso15118::IsolationStatus& isolation_status) { std::cout << "ISO15118_chargerImplBase::handle_update_isolation_status called" << std::endl; } virtual void handle_update_dc_present_values(types::iso15118::DcEvsePresentVoltageCurrent& present_voltage_current) { std::cout << "ISO15118_chargerImplBase::handle_update_dc_present_values called" << std::endl; } virtual void handle_update_meter_info(types::powermeter::Powermeter& powermeter) { std::cout << "ISO15118_chargerImplBase::handle_update_meter_info called" << std::endl; } virtual void handle_send_error(types::iso15118::EvseError& error) { std::cout << "ISO15118_chargerImplBase::handle_send_error called" << std::endl; } virtual void handle_reset_error() { std::cout << "ISO15118_chargerImplBase::handle_reset_error called" << std::endl; } }; } // namespace module::stub #endif // ISO15118_CHARGERIMPLSTUB_H_