physis.core.scheduler
Class ParallelScheduler

java.lang.Object
  |
  +--physis.core.scheduler.ParallelScheduler
All Implemented Interfaces:
Scheduler

public class ParallelScheduler
extends java.lang.Object
implements Scheduler

This method implements the possibly best parallel scheduling.


Constructor Summary
ParallelScheduler()
           
 
Method Summary
 void fillWithOrganisms(DigitalOrganismIterator orgs)
          Before starting the scheduling process the scheduler has to build up its internal data structure.
 void scheduleUpdate(int average)
          It schedules the executing of each digital organisms.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ParallelScheduler

public ParallelScheduler()
Method Detail

scheduleUpdate

public void scheduleUpdate(int average)
Description copied from interface: Scheduler
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.
Specified by:
scheduleUpdate in interface Scheduler
Following copied from interface: physis.core.scheduler.Scheduler
Parameters:
average_time_slice - the average number of executed instructions/per unit.

fillWithOrganisms

public void fillWithOrganisms(DigitalOrganismIterator orgs)
Description copied from interface: Scheduler
Before starting the scheduling process the scheduler has to build up its internal data structure. The parameter is an iterator of the whole population.
Specified by:
fillWithOrganisms in interface Scheduler