class documentation

Internal class for a worker entry in the priority queue.

Method __init__ Initialize a WorkerEntry.
Method __lt__ Compare two WorkerEntry objects for less-than.
Method __repr__ Return a string representation of the WorkerEntry.
Method __str__ Return a string representation of the WorkerEntry.
Class Variable __slots__ Slots for the class.
Instance Variable interval Interval for the worker's execution.
Instance Variable timestamp Timestamp of the next execution.
Instance Variable workerID ID of the worker.
Instance Variable workerName Name of the worker.
def __init__(self, timestamp: float, workerID: int, workerName: str, interval: float): (source)

Initialize a WorkerEntry.

Parameters
timestamp:floatTimestamp of the next execution.
workerID:intID of the worker.
workerName:strName of the worker.
interval:floatInterval for the worker's execution.
def __lt__(self, other: WorkerEntry) -> bool: (source)

Compare two WorkerEntry objects for less-than.

Parameters
other:WorkerEntryThe other WorkerEntry object to compare with.
Returns
boolTrue if this WorkerEntry is less than the other.
def __repr__(self) -> str: (source)

Return a string representation of the WorkerEntry.

Returns
strA string representation of the WorkerEntry.
def __str__(self) -> str: (source)

Return a string representation of the WorkerEntry.

Returns
strA string representation of the WorkerEntry.
__slots__: tuple[str, ...] = (source)

Slots for the class.

interval = (source)

Interval for the worker's execution.

timestamp = (source)

Timestamp of the next execution.

workerID = (source)

ID of the worker.

workerName = (source)

Name of the worker.