Class AbstractOcppEvcsComponent

    • Field Detail

      • profileTypes

        protected final java.util.Set<OcppProfileType> profileTypes
      • sessionId

        protected java.util.UUID sessionId
    • Constructor Detail

      • AbstractOcppEvcsComponent

        protected AbstractOcppEvcsComponent​(OcppProfileType[] profileTypes,
                                            ChannelId[] firstInitialChannelIds,
                                            ChannelId[]... furtherInitialChannelIds)
    • Method Detail

      • activate

        protected void activate​(org.osgi.service.component.ComponentContext context,
                                java.lang.String id,
                                java.lang.String alias,
                                boolean enabled)
        Description copied from class: AbstractOpenemsComponent
        Handles @Activate of implementations. Prints log output.
        Overrides:
        activate in class AbstractOpenemsComponent
        Parameters:
        context - the OSGi ComponentContext
        id - the unique OpenEMS Component ID
        alias - Human-readable name of this Component. Typically 'config.alias()'. Defaults to 'id' if empty
        enabled - is the Component enabled?
      • handleEvent

        public void handleEvent​(org.osgi.service.event.Event event)
        Specified by:
        handleEvent in interface org.osgi.service.event.EventHandler
      • newSession

        public void newSession​(OcppServer server,
                               java.util.UUID sessionId)
      • lostSession

        public void lostSession()
      • getSupportedMeasurements

        public abstract java.util.Set<OcppInformations> getSupportedMeasurements()
      • getConfiguredOcppId

        public abstract java.lang.String getConfiguredOcppId()
      • getConfiguredConnectorId

        public abstract java.lang.Integer getConfiguredConnectorId()
      • getConfiguredMaximumHardwarePower

        public abstract java.lang.Integer getConfiguredMaximumHardwarePower()
      • getConfiguredMinimumHardwarePower

        public abstract java.lang.Integer getConfiguredMinimumHardwarePower()
      • returnsSessionEnergy

        public abstract boolean returnsSessionEnergy()
      • getRequiredRequestsAfterConnection

        public abstract java.util.List<eu.chargetime.ocpp.model.Request> getRequiredRequestsAfterConnection()
        Required requests that should be sent after a connection was established.
        Returns:
        List of requests
      • getRequiredRequestsDuringConnection

        public abstract java.util.List<eu.chargetime.ocpp.model.Request> getRequiredRequestsDuringConnection()
        Required requests that should be sent permanently during a session.
        Returns:
        List of requests
      • getStandardRequests

        public abstract OcppStandardRequests getStandardRequests()
        Default requests that every OCPP EVCS should have.
        Returns:
        OcppRequests
      • getSessionId

        public java.util.UUID getSessionId()
      • setLastChargingProperty

        public void setLastChargingProperty​(ChargingProperty chargingProperty)
      • logInfo

        protected void logInfo​(org.slf4j.Logger log,
                               java.lang.String message)
        Description copied from class: AbstractOpenemsComponent
        Log an info message including the Component ID.
        Overrides:
        logInfo in class AbstractOpenemsComponent
        Parameters:
        log - the Logger instance
        message - the message
      • logWarn

        protected void logWarn​(org.slf4j.Logger log,
                               java.lang.String message)
        Description copied from class: AbstractOpenemsComponent
        Log a warn message including the Component ID.
        Overrides:
        logWarn in class AbstractOpenemsComponent
        Parameters:
        log - the Logger instance
        message - the message
      • debugLog

        public java.lang.String debugLog()
        Description copied from interface: OpenemsComponent
        Gets some output that is suitable for a continuous Debug log. Returns 'null' by default which causes no output.
        Specified by:
        debugLog in interface OpenemsComponent
        Returns:
        the debug log output