Class ControlAndLogic
- java.lang.Object
-
- io.openems.edge.battery.soltaro.single.versionb.statemachine.ControlAndLogic
-
public class ControlAndLogic extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
RETRY_COMMAND_MAX_ATTEMPTS
protected static int
RETRY_COMMAND_SECONDS
-
Constructor Summary
Constructors Constructor Description ControlAndLogic()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static boolean
hasError(SingleRackVersionB singleRackVersionB, java.util.Optional<java.lang.Integer> numberOfModules)
protected static boolean
isSystemRunning(SingleRackVersionB singleRackVersionB)
protected static boolean
isSystemStopped(SingleRackVersionB singleRackVersionB)
protected static void
resetSystem(SingleRackVersionB singleRackVersionB)
static void
setSoCLowAlarm(SingleRackVersionB singleRackVersionB, int soCLowAlarm)
Sets the soc low alarm.static void
setWatchdog(SingleRackVersionB singleRackVersionB, int timeSeconds)
Sets the watchdog.protected static void
sleepSystem(SingleRackVersionB singleRackVersionB)
protected static void
startSystem(SingleRackVersionB singleRackVersionB)
protected static void
stopSystem(SingleRackVersionB singleRackVersionB)
-
-
-
Field Detail
-
RETRY_COMMAND_SECONDS
protected static final int RETRY_COMMAND_SECONDS
- See Also:
- Constant Field Values
-
RETRY_COMMAND_MAX_ATTEMPTS
protected static final int RETRY_COMMAND_MAX_ATTEMPTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
stopSystem
protected static void stopSystem(SingleRackVersionB singleRackVersionB) throws OpenemsError.OpenemsNamedException
-
startSystem
protected static void startSystem(SingleRackVersionB singleRackVersionB) throws OpenemsError.OpenemsNamedException
-
resetSystem
protected static void resetSystem(SingleRackVersionB singleRackVersionB) throws OpenemsError.OpenemsNamedException
-
sleepSystem
protected static void sleepSystem(SingleRackVersionB singleRackVersionB) throws OpenemsError.OpenemsNamedException
-
isSystemRunning
protected static boolean isSystemRunning(SingleRackVersionB singleRackVersionB)
-
isSystemStopped
protected static boolean isSystemStopped(SingleRackVersionB singleRackVersionB)
-
hasError
protected static boolean hasError(SingleRackVersionB singleRackVersionB, java.util.Optional<java.lang.Integer> numberOfModules)
-
setWatchdog
public static void setWatchdog(SingleRackVersionB singleRackVersionB, int timeSeconds)
Sets the watchdog.- Parameters:
singleRackVersionB
- the batterytimeSeconds
- the time in seconds
-
setSoCLowAlarm
public static void setSoCLowAlarm(SingleRackVersionB singleRackVersionB, int soCLowAlarm)
Sets the soc low alarm.- Parameters:
singleRackVersionB
- the batterysoCLowAlarm
- the value to set
-
-