Package nl.basjes.modbus.schema.fetcher
Class RegisterBlockFetcher.FetchBatch
-
- All Implemented Interfaces:
-
kotlin.Comparable
public class RegisterBlockFetcher.FetchBatch implements Comparable<RegisterBlockFetcher.FetchBatch>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumRegisterBlockFetcher.FetchBatch.FetchStatus
-
Constructor Summary
Constructors Constructor Description RegisterBlockFetcher.FetchBatch(Address start, Integer count)
-
Method Summary
Modifier and Type Method Description final DurationgetDuration()The number of milliseconds the actual fetch took. final UnitsetDuration(Duration duration)The number of milliseconds the actual fetch took. final RegisterBlockFetcher.FetchBatch.FetchStatusgetStatus()final UnitsetStatus(RegisterBlockFetcher.FetchBatch.FetchStatus status)final List<Field>getFields()The affected list of fields final AddressgetStart()final IntegergetCount()final UnitsetCount(Integer count)IntegercompareTo(RegisterBlockFetcher.FetchBatch other)Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Constructor Detail
-
RegisterBlockFetcher.FetchBatch
RegisterBlockFetcher.FetchBatch(Address start, Integer count)
-
-
Method Detail
-
getDuration
final Duration getDuration()
The number of milliseconds the actual fetch took. NULL if not fetched yet.
-
setDuration
final Unit setDuration(Duration duration)
The number of milliseconds the actual fetch took. NULL if not fetched yet.
-
getStatus
final RegisterBlockFetcher.FetchBatch.FetchStatus getStatus()
-
setStatus
final Unit setStatus(RegisterBlockFetcher.FetchBatch.FetchStatus status)
-
getStart
final Address getStart()
-
compareTo
Integer compareTo(RegisterBlockFetcher.FetchBatch other)
-
-
-
-