Record Class CycleTasks
java.lang.Object
java.lang.Record
io.openems.edge.bridge.modbus.api.worker.internal.CycleTasks
Holds the Read- and Write-Tasks for one Cycle.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCycleTasks
(LinkedList<ReadTask> reads, LinkedList<WriteTask> writes) Creates an instance of aCycleTasks
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsDefectiveComponent
(DefectiveComponents defectiveComponents) Is any of the tasks belonging to a Component that is known to be defective?.static CycleTasks.Builder
create()
Create a Config builder.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.reads()
Returns the value of thereads
record component.final String
toString()
Returns a string representation of this record class.writes()
Returns the value of thewrites
record component.
-
Constructor Details
-
CycleTasks
Creates an instance of aCycleTasks
record class.- Parameters:
reads
- the value for thereads
record componentwrites
- the value for thewrites
record component
-
-
Method Details
-
create
Create a Config builder.- Returns:
- a
CycleTasks.Builder
-
containsDefectiveComponent
Is any of the tasks belonging to a Component that is known to be defective?.- Parameters:
defectiveComponents
- theDefectiveComponents
- Returns:
- true for defective; false otherwise
-
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)
. -
reads
Returns the value of thereads
record component.- Returns:
- the value of the
reads
record component
-
writes
Returns the value of thewrites
record component.- Returns:
- the value of the
writes
record component
-