#include <SPlayer.h>
Inherits SSchedAlgorithm.
Inheritance diagram for SPlayer:

Public Methods | |
| SPlayer () | |
| SPlayer (STaskSystem *pTS) | |
| virtual | ~SPlayer () | 
| bool | load (std::istream &in) | 
| virtual void | startup () | 
| virtual double | innerLoop (const leda_list< STSysSchedEvent > &) | 
| virtual bool | isFinished () const | 
| virtual const leda_string | getDescription () const | 
| virtual const leda_string & | getName () const | 
| virtual const SClassification & | getClassification () const | 
| virtual SLeaBibEntry & | getLeaBibEntry () const | 
| int | getNumOfAllEvents () const | 
| int | getNumOfCurEvent () const | 
| STaskSystem & | getTaskSystem () | 
| const STaskSystem & | getTaskSystem () const | 
| virtual void | setTaskSystem (STaskSystem &rTS) | 
| virtual leda_string | getCurrentActionDescription (const int level) const | 
| void | addObserver (SObserver &obs) | 
| void | deleteObserver (SObserver &obs) | 
| void | notifyObservers (const SEvent &event) | 
Static Public Methods | |
| const leda_string & | getNameFromClass () | 
Protected Methods | |
| virtual void | setCurrentActionDescription (const int level, leda_string descr) | 
      
  | 
  
| 
 Constructor. 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 Destructor.  | 
  
      
  | 
  
| 
 Here another component can register himself as observer of this component 
  | 
  
      
  | 
  
| 
 Here another component can delete himself from the list of observers of this component 
  | 
  
      
  | 
  
| 
 Returns the classification scheme of the problem, which the algorithm is able to solve. NOTE: will be abstract! 
 
 Implements SSchedAlgorithm.  | 
  
      
  | 
  
| 
 Clones a scheduling algorithm. 
 
  | 
  
      
  | 
  
| 
 Returns a textual description about this algorithm. This should contain at least the solved problem classification, complexity and a short description how the algorithm works 
 
 Implements SSchedAlgorithm.  | 
  
      
  | 
  
| 
 Returns a dictionary providing detailed information about the algorithm NOTE: will be abstract! 
 
 Implements SSchedAlgorithm.  | 
  
      
  | 
  
| 
 Returns the name of the scheduling algorithm, e.g. "Coffman-Graham" NOTE: will be abstract! 
 
 Implements SSchedAlgorithm.  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 The player-file contains a list of events, which are stored in an action list. The number of events is equal to the length of the action list. 
 
  | 
  
      
  | 
  
| 
 Get the number of events that already have been re-played. 
 
  | 
  
      
  | 
  
| 
 Get a read-only reference to the tasksystem. 
 
  | 
  
      
  | 
  
| 
 Get a reference to the tasksystem. 
 
  | 
  
      
  | 
  
| 
 Allocating and deallocating of jobs on machines. The algorithm gets the events of the current simulation step, in order to react on these events ("online algorithm"). The algorithm can define a relative alarm time (relative to the current simumlation step); then the tasksystem will advance until the alarm time and call innerLoop() again. This is used for preemtion for instance. If this time is <= 0 the alarm function is deactivated. 
 
 Implements SSchedAlgorithm.  | 
  
      
  | 
  
| 
 The player module will be finished when either the action list is empty or the end of the action list is received. 
 
 Reimplemented from SSchedAlgorithm.  | 
  
      
  | 
  
| 
 Load the player-file, that contains a list of events, from the specified stream and store the events in an action list. 
  | 
  
      
  | 
  
| 
 Inform all observers of this component about an event. The Observers will receive this event by their SObserver::update()-method. 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
  | 
  
      
  | 
  
| 
 This should contain initialization code which shall be run only the first time the algorithm works on a specific task system. 
  | 
  
      
  | 
  
| 
 Called before a simulation run starts. Reimplemented from SSchedAlgorithm.  | 
  
1.2.18