ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | Public Attributes | List of all members
ocpp::v2::period_entry_t Struct Reference

Returns elements from a specific ChargingProfile and ChargingSchedulePeriod for use in the calculation of the CompositeSchedule within a specific slice of time. These are aggregated by Profile. More...

#include <profile.hpp>

Public Member Functions

void init (const ocpp::DateTime &in_start, int in_duration, const ChargingSchedulePeriod &in_period, const ChargingProfile &in_profile)
 populate a schedule period More...
 
bool validate (const ChargingProfile &profile, const ocpp::DateTime &now)
 
bool equals (const period_entry_t &other) const
 

Public Attributes

ocpp::DateTime start
 
ocpp::DateTime end
 
float limit
 
std::optional< std::int32_t > number_phases
 
std::optional< std::int32_t > phase_to_use
 
std::int32_t stack_level
 
ChargingRateUnitEnum charging_rate_unit
 
std::optional< float > min_charging_rate
 

Detailed Description

Returns elements from a specific ChargingProfile and ChargingSchedulePeriod for use in the calculation of the CompositeSchedule within a specific slice of time. These are aggregated by Profile.

Parameters
in_startThe starting time
in_durationThe duration for the specific slice of time
in_periodthe details of this period
in_profilethe charging profile
Returns
an entry with smart charging information for a specific period in time

Member Function Documentation

◆ init()

void ocpp::v2::period_entry_t::init ( const ocpp::DateTime in_start,
int  in_duration,
const ChargingSchedulePeriod in_period,
const ChargingProfile in_profile 
)

populate a schedule period

Parameters
in_startthe start time of the profile
in_durationthe time in seconds from the start of the profile to the end of this period
in_periodthe details of this period

The documentation for this struct was generated from the following files: