Scheduler

Contents


Adding A New Algorithm

Adding a new algorithm to Scheduler does not require modifying the code in the program, nor compiling it again.

It is just needed to create a class inheriting tools.Algorithm, that implements the algorithm needed. The .class file must then be moved to directory <Scheduler>/tools/algorithms and it will be taken in account at the next running of Scheduler.

This class inheriting Algorithm must follow these rules:

If necessary, the new algorithm may override the boolean isTaskParamOK() and boolean isSchedulable() methods. These are implemented in class Algorithm and their default behaviour is to return true.

Once the code for the algorithm is written, it is necessary to compile (e.g. using javac tools/algorithme/AlgorithmName.java) and make sure the .class file produced is placed in directory <Scheduler>/tools/algorithms, so that it can be taken in account automatically when starting Scheduler.


Contents