Package energy.eddie.cim.agnostic
Record Class PermissionCommand.UpdateLimitDefaults
java.lang.Object
java.lang.Record
energy.eddie.cim.agnostic.PermissionCommand.UpdateLimitDefaults
- Record Components:
minLimitKw- Lower limit in kilowattmaxLimitKw- Upper limit in kilowatt
- All Implemented Interfaces:
PermissionCommand
- Enclosing interface:
PermissionCommand
public static record PermissionCommand.UpdateLimitDefaults(String regionConnectorId, UUID permissionId, @Nullable BigDecimal minLimitKw, @Nullable BigDecimal maxLimitKw)
extends Record
implements PermissionCommand
Adjusts the default energy consumption or production limits for a permission.
Null values are interpreted as "no limit".
-
Nested Class Summary
Nested classes/interfaces inherited from interface energy.eddie.cim.agnostic.PermissionCommand
PermissionCommand.Action, PermissionCommand.SetTransmissionEnabled, PermissionCommand.Terminate, PermissionCommand.UpdateLimitDefaults, PermissionCommand.UpdateTransmissionSchedule -
Constructor Summary
ConstructorsConstructorDescriptionUpdateLimitDefaults(String regionConnectorId, UUID permissionId, BigDecimal minLimitKw, BigDecimal maxLimitKw) Creates an instance of aUpdateLimitDefaultsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxLimitKwrecord component.Returns the value of theminLimitKwrecord component.Returns the value of thepermissionIdrecord component.Returns the value of theregionConnectorIdrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface energy.eddie.cim.agnostic.PermissionCommand
action
-
Constructor Details
-
UpdateLimitDefaults
public UpdateLimitDefaults(String regionConnectorId, UUID permissionId, @Nullable BigDecimal minLimitKw, @Nullable BigDecimal maxLimitKw) Creates an instance of aUpdateLimitDefaultsrecord class.- Parameters:
regionConnectorId- the value for theregionConnectorIdrecord componentpermissionId- the value for thepermissionIdrecord componentminLimitKw- the value for theminLimitKwrecord componentmaxLimitKw- the value for themaxLimitKwrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
regionConnectorId
Returns the value of theregionConnectorIdrecord component.- Specified by:
regionConnectorIdin interfacePermissionCommand- Returns:
- the value of the
regionConnectorIdrecord component
-
permissionId
Returns the value of thepermissionIdrecord component.- Specified by:
permissionIdin interfacePermissionCommand- Returns:
- the value of the
permissionIdrecord component
-
minLimitKw
Returns the value of theminLimitKwrecord component.- Returns:
- the value of the
minLimitKwrecord component
-
maxLimitKw
Returns the value of themaxLimitKwrecord component.- Returns:
- the value of the
maxLimitKwrecord component
-