Package net.solarnetwork.ocpp.service.cs
Interface ChargeSessionManager
- All Superinterfaces:
net.solarnetwork.service.Identifiable
public interface ChargeSessionManager
extends net.solarnetwork.service.Identifiable
This API represents the set of functionality required by an OCPP Central
System to manage charging sessions (OCPP transactions) for Charge Point
clients.
- Version:
- 2.2
- Author:
- matt
-
Field Summary
Fields inherited from interface net.solarnetwork.service.Identifiable
GROUP_UID_PROPERTY, UID_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChargingSessionReadings(ChargePointIdentity chargePointId, Integer connectorId, Iterable<SampledValue> readings) Add charge session readings.End a charging session.getActiveChargingSession(ChargePointIdentity chargePointId, int transactionId) Get an active charging session for a transaction ID.getActiveChargingSessions(ChargePointIdentity chargePointId) Get active charging sessions, optionally limited to a specific charge point ID.getChargingSessionReadings(UUID sessionId) Get all available charge session readings.Start a charging session.Methods inherited from interface net.solarnetwork.service.Identifiable
getDisplayName, getGroupUid, getUid
-
Method Details
-
startChargingSession
Start a charging session.- Parameters:
info- the start charging session info- Returns:
- the new charge session
- Throws:
AuthorizationException- if any authorization error occurs
-
getActiveChargingSession
ChargeSession getActiveChargingSession(ChargePointIdentity chargePointId, int transactionId) throws AuthorizationException Get an active charging session for a transaction ID.An active charging session is one that has not ended yet.
- Parameters:
chargePointId- the charge point IDtransactionId- the transaction ID- Returns:
- the charge session
- Throws:
AuthorizationException- if any no active charge session is available for the given criteria
-
getActiveChargingSessions
Get active charging sessions, optionally limited to a specific charge point ID.An active charging session is one that has not ended yet.
- Parameters:
chargePointId- the charge point identifier to get sessions for, or null for all sessions for all charge points- Returns:
- the active sessions, never null
-
getChargingSessionReadings
Get all available charge session readings.- Parameters:
sessionId- the charge session ID- Returns:
- the readings, never null
-
addChargingSessionReadings
void addChargingSessionReadings(ChargePointIdentity chargePointId, Integer connectorId, Iterable<SampledValue> readings) Add charge session readings.- Parameters:
chargePointId- the charge point identifier to get sessions for, or null for all sessions for all charge pointsconnectorId- the connector ID, or null to use the active charge session's informationreadings- the readings to add- Since:
- 2.2
-
endChargingSession
End a charging session.- Parameters:
info- the end charging session info- Returns:
- info if needed, otherwise null
-