physis.core.scheduler
Interface Scheduler

All Known Implementing Classes:
ConstantScheduler, MeritScheduler, ParallelScheduler, ScaledMeritScheduler

public interface Scheduler

The digital organisms live together in the same space and in the same time. They're acting parallel. Now we have serial computers, so we have to simulate them.
All the classes that implement this interface wrap a scheduling algorithm.


Method Summary
 void fillWithOrganisms(DigitalOrganismIterator organisms)
          Before starting the scheduling process the scheduler has to build up its internal data structure.
 void scheduleUpdate(int average_time_slice)
          It schedules the executing of each digital organisms.
 

Method Detail

scheduleUpdate

public void scheduleUpdate(int average_time_slice)
It schedules the executing of each digital organisms. The problem: we have to emulate the parallel processing of the virtual processors, and we have to take care the different working speeds.
Parameters:
average_time_slice - the average number of executed instructions/per unit.

fillWithOrganisms

public void fillWithOrganisms(DigitalOrganismIterator organisms)
Before starting the scheduling process the scheduler has to build up its internal data structure. The parameter is an iterator of the whole population.