Record Class TimeOfUseTariffControllerImpl.Context
java.lang.Object
java.lang.Record
io.openems.edge.controller.ess.timeofusetariff.TimeOfUseTariffControllerImpl.Context
- Enclosing class:
TimeOfUseTariffControllerImpl
public static record TimeOfUseTariffControllerImpl.Context(List<ControllerEssEmergencyCapacityReserve> ctrlEmergencyCapacityReserves, List<ControllerEssLimitTotalDischarge> ctrlLimitTotalDischarges, ManagedSymmetricEss ess, ControlMode controlMode, int maxChargePowerFromGrid, boolean limitChargePowerFor14aEnWG)
extends Record
-
Constructor Summary
ConstructorDescriptionContext
(List<ControllerEssEmergencyCapacityReserve> ctrlEmergencyCapacityReserves, List<ControllerEssLimitTotalDischarge> ctrlLimitTotalDischarges, ManagedSymmetricEss ess, ControlMode controlMode, int maxChargePowerFromGrid, boolean limitChargePowerFor14aEnWG) Creates an instance of aContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontrolMode
record component.Returns the value of thectrlEmergencyCapacityReserves
record component.Returns the value of thectrlLimitTotalDischarges
record component.final boolean
Indicates whether some other object is "equal to" this one.ess()
Returns the value of theess
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thelimitChargePowerFor14aEnWG
record component.int
Returns the value of themaxChargePowerFromGrid
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Context
public Context(List<ControllerEssEmergencyCapacityReserve> ctrlEmergencyCapacityReserves, List<ControllerEssLimitTotalDischarge> ctrlLimitTotalDischarges, ManagedSymmetricEss ess, ControlMode controlMode, int maxChargePowerFromGrid, boolean limitChargePowerFor14aEnWG) Creates an instance of aContext
record class.- Parameters:
ctrlEmergencyCapacityReserves
- the value for thectrlEmergencyCapacityReserves
record componentctrlLimitTotalDischarges
- the value for thectrlLimitTotalDischarges
record componentess
- the value for theess
record componentcontrolMode
- the value for thecontrolMode
record componentmaxChargePowerFromGrid
- the value for themaxChargePowerFromGrid
record componentlimitChargePowerFor14aEnWG
- the value for thelimitChargePowerFor14aEnWG
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
ctrlEmergencyCapacityReserves
Returns the value of thectrlEmergencyCapacityReserves
record component.- Returns:
- the value of the
ctrlEmergencyCapacityReserves
record component
-
ctrlLimitTotalDischarges
Returns the value of thectrlLimitTotalDischarges
record component.- Returns:
- the value of the
ctrlLimitTotalDischarges
record component
-
ess
Returns the value of theess
record component.- Returns:
- the value of the
ess
record component
-
controlMode
Returns the value of thecontrolMode
record component.- Returns:
- the value of the
controlMode
record component
-
maxChargePowerFromGrid
public int maxChargePowerFromGrid()Returns the value of themaxChargePowerFromGrid
record component.- Returns:
- the value of the
maxChargePowerFromGrid
record component
-
limitChargePowerFor14aEnWG
public boolean limitChargePowerFor14aEnWG()Returns the value of thelimitChargePowerFor14aEnWG
record component.- Returns:
- the value of the
limitChargePowerFor14aEnWG
record component
-