+ this.requestHandlers.set(
+ ProcedureName.START_AUTOMATIC_TRANSACTION_GENERATOR,
+ this.handleStartAutomaticTransactionGenerator.bind(this) as ProtocolRequestHandler
+ );
+ this.requestHandlers.set(
+ ProcedureName.STOP_AUTOMATIC_TRANSACTION_GENERATOR,
+ this.handleStopAutomaticTransactionGenerator.bind(this) as ProtocolRequestHandler
+ );
+ this.requestHandlers.set(
+ ProcedureName.STATUS_NOTIFICATION,
+ this.handleStatusNotification.bind(this) as ProtocolRequestHandler
+ );
+ this.requestHandlers.set(
+ ProcedureName.HEARTBEAT,
+ this.handleHeartbeat.bind(this) as ProtocolRequestHandler
+ );
+ }
+
+ private handleStartChargingStation(uuid: string, payload: RequestPayload): void {
+ this.sendBroadcastChannelRequest(
+ uuid,
+ BroadcastChannelProcedureName.START_CHARGING_STATION,
+ payload
+ );
+ }
+
+ private handleStopChargingStation(uuid: string, payload: RequestPayload): void {
+ this.sendBroadcastChannelRequest(
+ uuid,
+ BroadcastChannelProcedureName.STOP_CHARGING_STATION,
+ payload
+ );
+ }
+
+ private handleOpenConnection(uuid: string, payload: RequestPayload): void {
+ this.sendBroadcastChannelRequest(uuid, BroadcastChannelProcedureName.OPEN_CONNECTION, payload);
+ }
+
+ private handleCloseConnection(uuid: string, payload: RequestPayload): void {
+ this.sendBroadcastChannelRequest(uuid, BroadcastChannelProcedureName.CLOSE_CONNECTION, payload);
+ }
+
+ private handleStartTransaction(uuid: string, payload: RequestPayload): void {
+ this.sendBroadcastChannelRequest(
+ uuid,
+ BroadcastChannelProcedureName.START_TRANSACTION,
+ payload
+ );