Module tornado.api

Class GridScheduler

java.lang.Object
uk.ac.manchester.tornado.api.GridScheduler

public class GridScheduler extends Object
Class to store the thread grid configuration for a specific task in a Task-Graph.
  • Constructor Details

    • GridScheduler

      public GridScheduler()
      Creates a new GridScheduler object with an empty grid task map.
    • GridScheduler

      public GridScheduler(String taskName, WorkerGrid workerGrid)
      Creates a new GridScheduler with a specific task name and WorkerGrid. Task names must be unique for the whole execution plan that the grid scheduler will be attached to.
      Parameters:
      taskName -
      workerGrid -
  • Method Details

    • addWorkerGrid

      public void addWorkerGrid(String taskName, WorkerGrid workerGrid)
      Adds a new WorkerGrid object to the grid scheduler for a specific task.
      Parameters:
      taskName -
      workerGrid -
      Since:
      v1.1.0
    • get

      public WorkerGrid get(String taskName)
      Returns the WorkerGrid object associated with a given task name.
      Parameters:
      taskName -
      Returns:
    • contains

      public boolean contains(String taskScheduleName, String taskName)
      Checks if the grid scheduler contains a specific worker grid for a task.
      Parameters:
      taskName -
      Returns:
      boolean
    • keySet

      public Set<String> keySet()
      It returns all task names associated with a grid scheduler.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object