Class Context
java.lang.Object
io.openems.edge.common.statemachine.AbstractContext<FeneconCommercialBattery>
io.openems.edge.battery.fenecon.commercial.statemachine.Context
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BooleanWriteChannel
The Battery-Master-Bms-Start-Up-Relay Channel used to start the battery; possibly null. -
Constructor Summary
ConstructorsConstructorDescriptionContext
(FeneconCommercialBattery parent, BooleanWriteChannel batteryMasterBmsStartUpRelayChannel) -
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
Get Start Stop relay current status.boolean
Is battery Started ?.protected void
setBatteryStartUpRelays
(boolean value) Set Relay Open or Relay Close.
-
Field Details
-
batteryStartStopRelayChannel
The Battery-Master-Bms-Start-Up-Relay Channel used to start the battery; possibly null.
-
-
Constructor Details
-
Context
public Context(FeneconCommercialBattery parent, BooleanWriteChannel batteryMasterBmsStartUpRelayChannel)
-
-
Method Details
-
isBatteryStarted
public boolean isBatteryStarted()Is battery Started ?.- Returns:
- true if battery started.
-
setBatteryStartUpRelays
Set Relay Open or Relay Close.- Parameters:
value
- true to open the relay;
false to close the relay;- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getBatteryStartStopRelay
Get Start Stop relay current status.- Returns:
- true stands for the relay opened;
false stands for the relay closed;
possibly null
-