Class LoadManagingExecutionService.Task

java.lang.Object
jadex.concurrent.LoadManagingExecutionService.Task
All Implemented Interfaces:
Comparable, Runnable
Enclosing class:
LoadManagingExecutionService

public class LoadManagingExecutionService.Task extends Object implements Runnable, Comparable
A task info holds a task and meta information.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected IExecutable
    The task.
    protected double
    The priority.
    protected int
    The sequence number.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Task(IExecutable task, double priority)
    Create a new task info for a given task.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
    void
    run()
    Perform the task once and notify the manager.
    Create a string representation of the task info.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • executable

      protected IExecutable executable
      The task.
    • priority

      protected double priority
      The priority.
    • seqnr

      protected int seqnr
      The sequence number.
  • Constructor Details

    • Task

      public Task(IExecutable task, double priority)
      Create a new task info for a given task.
  • Method Details

    • run

      public void run()
      Perform the task once and notify the manager.
      Specified by:
      run in interface Runnable
    • compareTo

      public int compareTo(Object obj)
      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 interface Comparable
    • toString

      public String toString()
      Create a string representation of the task info.
      Overrides:
      toString in class Object