public abstract class AbstractOcppEvcsComponent extends AbstractOpenemsComponent implements Evcs, MeasuringEvcs, org.osgi.service.event.EventHandler, TimedataProvider
Modifier and Type | Class and Description |
---|---|
static class |
AbstractOcppEvcsComponent.ChannelId |
Modifier and Type | Field and Description |
---|---|
protected OcppServer |
ocppServer |
protected java.util.Set<OcppProfileType> |
profileTypes |
protected java.util.UUID |
sessionId |
Modifier | Constructor and Description |
---|---|
protected |
AbstractOcppEvcsComponent(OcppProfileType[] profileTypes,
ChannelId[] firstInitialChannelIds,
ChannelId[]... furtherInitialChannelIds) |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context,
java.lang.String id,
java.lang.String alias,
boolean enabled)
Handles @Activate of implementations.
|
protected void |
deactivate()
Handles @Deactivate of implementations.
|
java.lang.String |
debugLog()
Gets some output that is suitable for a continuous Debug log.
|
abstract java.lang.Integer |
getConfiguredConnectorId() |
abstract java.lang.Integer |
getConfiguredMaximumHardwarePower() |
abstract java.lang.Integer |
getConfiguredMinimumHardwarePower() |
abstract java.lang.String |
getConfiguredOcppId() |
ChargingProperty |
getLastChargingProperty() |
abstract java.util.List<eu.chargetime.ocpp.model.Request> |
getRequiredRequestsAfterConnection()
Required requests that should be sent after a connection was established.
|
abstract java.util.List<eu.chargetime.ocpp.model.Request> |
getRequiredRequestsDuringConnection()
Required requests that should be sent permanently during a session.
|
ChargeSessionStamp |
getSessionEnd() |
java.util.UUID |
getSessionId() |
ChargeSessionStamp |
getSessionStart() |
abstract OcppStandardRequests |
getStandardRequests()
Default requests that every OCPP EVCS should have.
|
abstract java.util.Set<OcppInformations> |
getSupportedMeasurements() |
Timedata |
getTimedata()
Gets the
Timedata service. |
void |
handleEvent(org.osgi.service.event.Event event) |
protected void |
logInfo(org.slf4j.Logger log,
java.lang.String message)
Log an info message including the Component ID.
|
protected void |
logWarn(org.slf4j.Logger log,
java.lang.String message)
Log a warn message including the Component ID.
|
void |
lostSession() |
void |
newSession(OcppServer server,
java.util.UUID sessionId) |
abstract boolean |
returnsSessionEnergy() |
void |
setLastChargingProperty(ChargingProperty chargingProperty) |
_channel, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_setActiveConsumptionEnergy, _setActiveConsumptionEnergy, _setChargePower, _setChargePower, _setChargingstationCommunicationFailed, _setChargingType, _setEnergySession, _setEnergySession, _setMaximumHardwarePower, _setMaximumHardwarePower, _setMaximumPower, _setMaximumPower, _setMinimumHardwarePower, _setMinimumHardwarePower, _setMinimumPower, _setMinimumPower, _setPhases, _setPhases, _setStatus, getActiveConsumptionEnergy, getActiveConsumptionEnergyChannel, getChargePower, getChargePowerChannel, getChargingstationCommunicationFailed, getChargingstationCommunicationFailedChannel, getChargingType, getChargingTypeChannel, getEnergySession, getEnergySessionChannel, getMaximumHardwarePower, getMaximumHardwarePowerChannel, getMaximumPower, getMaximumPowerChannel, getMinimumHardwarePower, getMinimumHardwarePowerChannel, getMinimumPower, getMinimumPowerChannel, getModbusSlaveNatureTable, getPhases, getPhasesChannel, getStatus, getStatusChannel
_channel, _getChannelAs, alias, channel, channel, channels, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
protected final java.util.Set<OcppProfileType> profileTypes
protected OcppServer ocppServer
protected java.util.UUID sessionId
protected AbstractOcppEvcsComponent(OcppProfileType[] profileTypes, ChannelId[] firstInitialChannelIds, ChannelId[]... furtherInitialChannelIds)
protected void activate(org.osgi.service.component.ComponentContext context, java.lang.String id, java.lang.String alias, boolean enabled)
AbstractOpenemsComponent
activate
in class AbstractOpenemsComponent
context
- the OSGi ComponentContextid
- the unique OpenEMS Component IDalias
- Human-readable name of this Component. Typically
'config.alias()'. Defaults to 'id' if emptyenabled
- is the Component enabled?public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
protected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsComponent
public void newSession(OcppServer server, java.util.UUID sessionId)
public void lostSession()
public abstract java.util.Set<OcppInformations> getSupportedMeasurements()
public abstract java.lang.String getConfiguredOcppId()
public abstract java.lang.Integer getConfiguredConnectorId()
public abstract java.lang.Integer getConfiguredMaximumHardwarePower()
public abstract java.lang.Integer getConfiguredMinimumHardwarePower()
public abstract boolean returnsSessionEnergy()
public abstract java.util.List<eu.chargetime.ocpp.model.Request> getRequiredRequestsAfterConnection()
public abstract java.util.List<eu.chargetime.ocpp.model.Request> getRequiredRequestsDuringConnection()
public abstract OcppStandardRequests getStandardRequests()
public java.util.UUID getSessionId()
public ChargingProperty getLastChargingProperty()
public void setLastChargingProperty(ChargingProperty chargingProperty)
public ChargeSessionStamp getSessionStart()
public ChargeSessionStamp getSessionEnd()
public Timedata getTimedata()
TimedataProvider
Timedata
service.getTimedata
in interface TimedataProvider
protected void logInfo(org.slf4j.Logger log, java.lang.String message)
AbstractOpenemsComponent
logInfo
in class AbstractOpenemsComponent
log
- the Logger instancemessage
- the messageprotected void logWarn(org.slf4j.Logger log, java.lang.String message)
AbstractOpenemsComponent
logWarn
in class AbstractOpenemsComponent
log
- the Logger instancemessage
- the messagepublic java.lang.String debugLog()
OpenemsComponent
debugLog
in interface OpenemsComponent