Class ControlAndLogic
java.lang.Object
io.openems.edge.battery.soltaro.single.versionb.statemachine.ControlAndLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
hasError
(BatterySoltaroSingleRackVersionB singleRackVersionB, Optional<Integer> numberOfModules) protected static boolean
isSystemRunning
(BatterySoltaroSingleRackVersionB singleRackVersionB) protected static boolean
isSystemStopped
(BatterySoltaroSingleRackVersionB singleRackVersionB) protected static void
resetSystem
(BatterySoltaroSingleRackVersionB singleRackVersionB) static void
setSoCLowAlarm
(BatterySoltaroSingleRackVersionB singleRackVersionB, int soCLowAlarm) Sets the soc low alarm.static void
setWatchdog
(BatterySoltaroSingleRackVersionB singleRackVersionB, int timeSeconds) Sets the watchdog.protected static void
sleepSystem
(BatterySoltaroSingleRackVersionB singleRackVersionB) protected static void
startSystem
(BatterySoltaroSingleRackVersionB singleRackVersionB) protected static void
stopSystem
(BatterySoltaroSingleRackVersionB singleRackVersionB)
-
Field Details
-
RETRY_COMMAND_SECONDS
protected static final int RETRY_COMMAND_SECONDS- See Also:
-
RETRY_COMMAND_MAX_ATTEMPTS
protected static final int RETRY_COMMAND_MAX_ATTEMPTS- See Also:
-
-
Constructor Details
-
ControlAndLogic
public ControlAndLogic()
-
-
Method Details
-
stopSystem
protected static void stopSystem(BatterySoltaroSingleRackVersionB singleRackVersionB) throws OpenemsError.OpenemsNamedException -
startSystem
protected static void startSystem(BatterySoltaroSingleRackVersionB singleRackVersionB) throws OpenemsError.OpenemsNamedException -
resetSystem
protected static void resetSystem(BatterySoltaroSingleRackVersionB singleRackVersionB) throws OpenemsError.OpenemsNamedException -
sleepSystem
protected static void sleepSystem(BatterySoltaroSingleRackVersionB singleRackVersionB) throws OpenemsError.OpenemsNamedException -
isSystemRunning
-
isSystemStopped
-
hasError
protected static boolean hasError(BatterySoltaroSingleRackVersionB singleRackVersionB, Optional<Integer> numberOfModules) -
setWatchdog
public static void setWatchdog(BatterySoltaroSingleRackVersionB singleRackVersionB, int timeSeconds) Sets the watchdog.- Parameters:
singleRackVersionB
- the batterytimeSeconds
- the time in seconds
-
setSoCLowAlarm
public static void setSoCLowAlarm(BatterySoltaroSingleRackVersionB singleRackVersionB, int soCLowAlarm) Sets the soc low alarm.- Parameters:
singleRackVersionB
- the batterysoCLowAlarm
- the value to set
-