|
| | Evse (const int32_t evse_id, const int32_t number_of_connectors, DeviceModel &device_model, std::shared_ptr< DatabaseHandler > database_handler, std::shared_ptr< ComponentStateManagerInterface > component_state_manager, const std::function< void(const MeterValue &meter_value, EnhancedTransaction &transaction)> &transaction_meter_value_req, const std::function< void(int32_t evse_id)> &pause_charging_callback) |
| | Construct a new Evse object. More...
|
| |
| int32_t | get_id () const |
| | Return the evse_id of this EVSE. More...
|
| |
| uint32_t | get_number_of_connectors () const |
| | Returns the number of connectors of this EVSE. More...
|
| |
| bool | does_connector_exist (const ConnectorEnum connector_type) const override |
| | Check if the given connector type exists on this evse. More...
|
| |
| std::optional< ConnectorStatusEnum > | get_connector_status (std::optional< ConnectorEnum > connector_type) override |
| | Get connector status. More...
|
| |
| void | open_transaction (const std::string &transaction_id, const int32_t connector_id, const DateTime ×tamp, const MeterValue &meter_start, const std::optional< IdToken > &id_token, const std::optional< IdToken > &group_id_token, const std::optional< int32_t > reservation_id, const ChargingStateEnum charging_state) |
| | Opens a new transaction. More...
|
| |
| void | close_transaction (const DateTime ×tamp, const MeterValue &meter_stop, const ReasonEnum &reason) |
| | Closes the transaction on this evse by adding the given timestamp meter_stop and reason . More...
|
| |
| void | start_checking_max_energy_on_invalid_id () |
| | Start checking if the max energy on invalid id has exceeded. Will call pause_charging_callback when that happens. More...
|
| |
| bool | has_active_transaction () const |
| | Indicates if a transaction is active at this evse. More...
|
| |
| bool | has_active_transaction (const int32_t connector_id) const |
| | Indicates if a transaction is active at this evse at the given connector_id. More...
|
| |
| void | release_transaction () |
| | Releases the reference of the transaction on this evse. More...
|
| |
| std::unique_ptr< EnhancedTransaction > & | get_transaction () |
| | Returns a pointer to the EnhancedTransaction of this evse. More...
|
| |
| void | submit_event (const int32_t connector_id, ConnectorEvent event) |
| | Submits the given event to the state machine controller of the connector with the given connector_id. More...
|
| |
| void | on_meter_value (const MeterValue &meter_value) |
| | Event handler that should be called when a new meter_value for this evse is present. More...
|
| |
| MeterValue | get_meter_value () |
| | Returns the last present meter value for this evse. More...
|
| |
| MeterValue | get_idle_meter_value () |
| | Return the idle meter values for this evse. More...
|
| |
| void | clear_idle_meter_values () |
| | Clear the idle meter values for this evse. More...
|
| |
| Connector * | get_connector (int32_t connector_id) const |
| | Returns a pointer to the connector with ID. More...
|
| |
| OperationalStatusEnum | get_effective_operational_status () |
| | Gets the effective Operative/Inoperative status of this EVSE. More...
|
| |
| void | set_evse_operative_status (OperationalStatusEnum new_status, bool persist) |
| | Switches the operative status of the EVSE. More...
|
| |
| void | set_connector_operative_status (int32_t connector_id, OperationalStatusEnum new_status, bool persist) |
| | Switches the operative status of a connector within this EVSE. More...
|
| |
| void | restore_connector_operative_status (int32_t connector_id) |
| | Restores the operative status of a connector within this EVSE to the persisted status and recomputes its effective status. More...
|
| |
| OperationalStatusEnum | get_connector_effective_operational_status (const int32_t connector_id) override |
| | Get the operational status of a connector within this evse. More...
|
| |
| CurrentPhaseType | get_current_phase_type () |
| | Returns the phase type for the EVSE based on its SupplyPhases. It can be AC, DC, or Unknown. More...
|
| |
| void | set_meter_value_pricing_triggers (std::optional< double > trigger_metervalue_on_power_kw, std::optional< double > trigger_metervalue_on_energy_kwh, std::optional< DateTime > trigger_metervalue_at_time, std::function< void(const std::vector< MeterValue > &meter_values)> send_metervalue_function, boost::asio::io_service &io_service) |
| | Set pricing triggers to send the meter value. More...
|
| |
| virtual int32_t | get_id () const =0 |
| | Return the evse_id of this EVSE. More...
|
| |
| virtual uint32_t | get_number_of_connectors () const =0 |
| | Returns the number of connectors of this EVSE. More...
|
| |
| virtual bool | does_connector_exist (ConnectorEnum connector_type) const =0 |
| | Check if the given connector type exists on this evse. More...
|
| |
| virtual std::optional< ConnectorStatusEnum > | get_connector_status (std::optional< ConnectorEnum > connector_type)=0 |
| | Get connector status. More...
|
| |
| virtual void | open_transaction (const std::string &transaction_id, const int32_t connector_id, const DateTime ×tamp, const MeterValue &meter_start, const std::optional< IdToken > &id_token, const std::optional< IdToken > &group_id_token, const std::optional< int32_t > reservation_id, const ChargingStateEnum charging_state)=0 |
| | Opens a new transaction. More...
|
| |
| virtual void | close_transaction (const DateTime ×tamp, const MeterValue &meter_stop, const ReasonEnum &reason)=0 |
| | Closes the transaction on this evse by adding the given timestamp meter_stop and reason . More...
|
| |
| virtual void | start_checking_max_energy_on_invalid_id ()=0 |
| | Start checking if the max energy on invalid id has exceeded. Will call pause_charging_callback when that happens. More...
|
| |
| virtual bool | has_active_transaction () const =0 |
| | Indicates if a transaction is active at this evse. More...
|
| |
| virtual bool | has_active_transaction (const int32_t connector_id) const =0 |
| | Indicates if a transaction is active at this evse at the given connector_id. More...
|
| |
| virtual void | release_transaction ()=0 |
| | Releases the reference of the transaction on this evse. More...
|
| |
| virtual std::unique_ptr< EnhancedTransaction > & | get_transaction ()=0 |
| | Returns a pointer to the EnhancedTransaction of this evse. More...
|
| |
| virtual void | submit_event (const int32_t connector_id, ConnectorEvent event)=0 |
| | Submits the given event to the state machine controller of the connector with the given connector_id. More...
|
| |
| virtual void | on_meter_value (const MeterValue &meter_value)=0 |
| | Event handler that should be called when a new meter_value for this evse is present. More...
|
| |
| virtual MeterValue | get_meter_value ()=0 |
| | Returns the last present meter value for this evse. More...
|
| |
| virtual MeterValue | get_idle_meter_value ()=0 |
| | Return the idle meter values for this evse. More...
|
| |
| virtual void | clear_idle_meter_values ()=0 |
| | Clear the idle meter values for this evse. More...
|
| |
| virtual Connector * | get_connector (int32_t connector_id) const =0 |
| | Returns a pointer to the connector with ID. More...
|
| |
| virtual OperationalStatusEnum | get_effective_operational_status ()=0 |
| | Gets the effective Operative/Inoperative status of this EVSE. More...
|
| |
| virtual void | set_evse_operative_status (OperationalStatusEnum new_status, bool persist)=0 |
| | Switches the operative status of the EVSE. More...
|
| |
| virtual void | set_connector_operative_status (int32_t connector_id, OperationalStatusEnum new_status, bool persist)=0 |
| | Switches the operative status of a connector within this EVSE. More...
|
| |
| virtual void | restore_connector_operative_status (int32_t connector_id)=0 |
| | Restores the operative status of a connector within this EVSE to the persisted status and recomputes its effective status. More...
|
| |
| virtual OperationalStatusEnum | get_connector_effective_operational_status (const int32_t connector_id)=0 |
| | Get the operational status of a connector within this evse. More...
|
| |
| virtual CurrentPhaseType | get_current_phase_type ()=0 |
| | Returns the phase type for the EVSE based on its SupplyPhases. It can be AC, DC, or Unknown. More...
|
| |
| virtual void | set_meter_value_pricing_triggers (std::optional< double > trigger_metervalue_on_power_kw, std::optional< double > trigger_metervalue_on_energy_kwh, std::optional< DateTime > trigger_metervalue_at_time, std::function< void(const std::vector< MeterValue > &meter_values)> send_metervalue_function, boost::asio::io_service &io_service)=0 |
| | Set metervalue triggers for California Pricing. More...
|
| |
Represents an EVSE. An EVSE can contain multiple Connector objects, but can only supply energy to one of them.