public class EvcsController extends AbstractOpenemsComponent implements Controller, OpenemsComponent, ModbusSlave
Controller.ChannelId
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.cm.ConfigurationAdmin |
cm |
protected ComponentManager |
componentManager |
protected Sum |
sum |
Modifier | Constructor and Description |
---|---|
|
EvcsController() |
protected |
EvcsController(java.time.Clock clock) |
Modifier and Type | Method and Description |
---|---|
void |
configUpdate(java.lang.String targetProperty,
java.lang.Object requiredValue)
Updating the configuration property to given value.
|
protected void |
deactivate()
Handles @Deactivate of implementations.
|
ModbusSlaveTable |
getModbusSlaveTable(AccessMode accessMode)
Gets the Modbus-Slave-Table for this OpenEMS-Component.
|
protected void |
logDebug(org.slf4j.Logger log,
java.lang.String message)
Log a debug message including the Component ID.
|
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 |
run()
If the EVCS is clustered the method will set the charge power request.
|
_channel, activate, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logError, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_setRunFailed, getModbusSlaveNatureTable, getRunFailed, getRunFailedChannel
protected ComponentManager componentManager
protected org.osgi.service.cm.ConfigurationAdmin cm
protected Sum sum
public EvcsController()
protected EvcsController(java.time.Clock clock)
protected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsComponent
public void run() throws OpenemsError.OpenemsNamedException
run
in interface Controller
OpenemsError.OpenemsNamedException
- on errorpublic ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode)
ModbusSlave
getModbusSlaveTable
in interface ModbusSlave
accessMode
- filters the Modbus-Records that should be shownpublic void configUpdate(java.lang.String targetProperty, java.lang.Object requiredValue)
targetProperty
- Property that should be changedrequiredValue
- Value that should be setpublic 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 messageprotected void logDebug(org.slf4j.Logger log, java.lang.String message)
AbstractOpenemsComponent
logDebug
in class AbstractOpenemsComponent
log
- the Logger instancemessage
- the message