private starting: boolean
private stopping: boolean
public readonly connectorsStatus: Map<number, Status>
-
public started: boolean
private constructor (chargingStation: ChargingStation) {
public starting: boolean
public stationInfo?: ChargingStationInfo
public readonly templateFile: string
-
public wsConnection: null | WebSocket
constructor (index: number, templateFile: string, options?: ChargingStationOptions) {
export class OCPP16ResponseService extends OCPPResponseService {
protected payloadValidateFunctions: Map<OCPP16RequestCommand, ValidateFunction<JsonType>>
-
private readonly responseHandlers: Map<OCPP16RequestCommand, ResponseHandler>
public incomingRequestResponsePayloadValidateFunctions: Map<
OCPP16IncomingRequestCommand,
export class OCPP20ResponseService extends OCPPResponseService {
protected payloadValidateFunctions: Map<OCPP20RequestCommand, ValidateFunction<JsonType>>
-
private readonly responseHandlers: Map<OCPP20RequestCommand, ResponseHandler>
public incomingRequestResponsePayloadValidateFunctions: Map<
OCPP20IncomingRequestCommand,
protected emptyResponseHandler = Constants.EMPTY_FUNCTION
protected abstract payloadValidateFunctions: Map<RequestCommand, ValidateFunction<JsonType>>
private readonly version: OCPPVersion
-
public abstract incomingRequestResponsePayloadValidateFunctions: Map<
IncomingRequestCommand,
ValidateFunction<JsonType>
protected readonly uiServices: Map<ProtocolVersion, AbstractUIService>
public readonly chargingStations: Map<string, ChargingStationData>
-
public readonly chargingStationTemplates: Set<string>
public constructor (protected readonly uiServerConfiguration: UIServerConfiguration) {
)
}
- // public sendRequest (
- // uuid: `${string}-${string}-${string}-${string}-${string}`,
- // procedureName: ProcedureName,
- // requestPayload: RequestPayload
- // ): void {
- // this.uiServer.sendRequest(
- // this.uiServer.buildProtocolRequest(uuid, procedureName, requestPayload)
- // )
- // }
-
private async handleAddChargingStations (
_uuid?: `${string}-${string}-${string}-${string}-${string}`,
_procedureName?: ProcedureName,
}
}
+ // public sendRequest (
+ // uuid: `${string}-${string}-${string}-${string}-${string}`,
+ // procedureName: ProcedureName,
+ // requestPayload: RequestPayload
+ // ): void {
+ // this.uiServer.sendRequest(
+ // this.uiServer.buildProtocolRequest(uuid, procedureName, requestPayload)
+ // )
+ // }
+
public sendResponse (
uuid: `${string}-${string}-${string}-${string}-${string}`,
responsePayload: ResponsePayload
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
export class Configuration {
public static configurationChangeCallback?: () => Promise<void>
-
private static configurationData?: ConfigurationData
private static configurationFile: string | undefined
private static configurationFileReloading = false
private started: boolean
private readonly workerSet: Set<WorkerSetElement>
-
private workerStartup: boolean
public readonly emitter: EventEmitterAsyncResource | undefined