Package jadex.concurrent
Class LoadManagingExecutionService.Task
java.lang.Object
jadex.concurrent.LoadManagingExecutionService.Task
- All Implemented Interfaces:
Comparable
,Runnable
- Enclosing class:
LoadManagingExecutionService
A task info holds a task and meta information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IExecutable
The task.protected double
The priority.protected int
The sequence number. -
Constructor Summary
ConstructorsConstructorDescriptionTask
(IExecutable task, double priority) Create a new task info for a given task. -
Method Summary
-
Field Details
-
executable
The task. -
priority
protected double priorityThe priority. -
seqnr
protected int seqnrThe sequence number.
-
-
Constructor Details
-
Task
Create a new task info for a given task.
-
-
Method Details
-
run
public void run()Perform the task once and notify the manager. -
compareTo
Return a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.- Specified by:
compareTo
in interfaceComparable
-
toString
Create a string representation of the task info.
-