java.lang.Object
uk.ac.manchester.tornado.api.GridScheduler
Class to store the thread grid configuration for a specific task in a Task-Graph.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new GridScheduler object with an empty grid task map.GridScheduler(String taskName, WorkerGrid workerGrid) Creates a new GridScheduler with a specific task name and WorkerGrid. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWorkerGrid(String taskName, WorkerGrid workerGrid) Adds a new WorkerGrid object to the grid scheduler for a specific task.booleanChecks if the grid scheduler contains a specific worker grid for a task.Returns the WorkerGrid object associated with a given task name.keySet()It returns all task names associated with a grid scheduler.toString()
-
Constructor Details
-
GridScheduler
public GridScheduler()Creates a new GridScheduler object with an empty grid task map. -
GridScheduler
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
Adds a new WorkerGrid object to the grid scheduler for a specific task.- Parameters:
taskName-workerGrid-- Since:
- v1.1.0
-
get
Returns the WorkerGrid object associated with a given task name.- Parameters:
taskName-- Returns:
-
contains
Checks if the grid scheduler contains a specific worker grid for a task.- Parameters:
taskName-- Returns:
- boolean
-
keySet
It returns all task names associated with a grid scheduler.- Returns:
-
toString
-