class documentation
class WorkerEntry(object):
Constructor: WorkerEntry(timestamp, workerID, workerName)
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 | timestamp |
Timestamp of the next execution. |
| Instance Variable | worker |
ID of the worker. |
| Instance Variable | worker |
Name of the worker. |
Initialize a WorkerEntry.
| Parameters | |
timestamp:float | Timestamp of the next execution. |
workerint | ID of the worker. |
workerstr | Name of the worker. |
Compare two WorkerEntry objects for less-than.
| Parameters | |
other:WorkerEntry | The other WorkerEntry object to compare with. |
| Returns | |
bool | True if this WorkerEntry is less than the other. |
Return a string representation of the WorkerEntry.
| Returns | |
str | A string representation of the WorkerEntry. |