#include <SMachines.h>
Inherits SPassiveMachines.
Inheritance diagram for SMachines:

Public Types | |
| typedef leda_dictionary< int, SJobExecInfo * >  | MapJobToInfo | 
Public Methods | |
| SMachines (STaskSystem &rTS) | |
| virtual void | deallocate (SJob &job) | 
| virtual void | allocate (SJob &job, int pos=-1) | 
| virtual void | allocate (SJob &job, SComplexPosition *pComplexPos) | 
| double | getFinishTime (double currTime, SJob &job) const | 
| virtual double | getNextEventTime (double currTime) const | 
| virtual void | simulate (double oldTime, double newTime) | 
| bool | isEnvAvail () const | 
| const SEnvironment & | getEnv () const | 
| SEnvironment & | getEnv () | 
| virtual SPassiveMachinesMod & | getModifier () | 
| SMachinesMod & | getMachModifier () | 
| void | reset () | 
| STopology & | getTopology () const | 
| bool | isAllocated (const SJob &job) const | 
| bool | isMachFree (int pos) | 
| const leda_set< SJob * > & | getAllocatedJobs () const | 
| int | getPos (const SJob &job) const | 
| double | getStartOfAlloc (const SJob &job) const | 
| leda_list< int > | getFreeMachines () const | 
| bool | canEmbedAt (const STopology &top, int pos) const | 
| void | addObserver (SObserver &obs) | 
| void | deleteObserver (SObserver &obs) | 
| void | notifyObservers (const SEvent &event) | 
Protected Methods | |
| SJobExecInfo & | getInfo (const SJob &job) | 
| const SJobExecInfo & | getInfo (const SJob &job) const | 
Protected Attributes | |
| STaskSystem * | _pTaskSys | 
Friends | |
| class | SMachinesMod | 
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 Constructor  | 
  
      
  | 
  
| 
 Here another component can register himself as observer of this component 
  | 
  
      
  | 
  ||||||||||||
| 
 
 Reimplemented from SPassiveMachines.  | 
  
      
  | 
  ||||||||||||
| 
 Allocate a job. Also changes the state of the job. 
 Reimplemented from SPassiveMachines.  | 
  
      
  | 
  ||||||||||||
| 
 Return whether a topology could be embedded at a certain position 
 
  | 
  
      
  | 
  
| 
 Deallocate a job from machine. Also changes the state of the job. 
 Reimplemented from SPassiveMachines.  | 
  
      
  | 
  
| 
 Here another component can delete himself from the list of observers of this component 
  | 
  
      
  | 
  
| 
 Get all currently allocated jobs  | 
  
      
  | 
  
| 
 Get access to the environment  | 
  
      
  | 
  
| 
 Get read-only access to the environment  | 
  
      
  | 
  ||||||||||||
| 
 Return time when the execution of the job will be over if the state of the machine remains as it is. 
 
  | 
  
      
  | 
  
| 
 Get a list of all machines where no job (or part of a job) is running  | 
  
      
  | 
  
| 
 Get read-only access to information about the allocation of a job  | 
  
      
  | 
  
| 
 Get access to information about the allocation of a job  | 
  
      
  | 
  
| 
 Get access to the SMachines-modifier  | 
  
      
  | 
  
| 
 Get access to the SPassiveMachines-modifier Reimplemented from SPassiveMachines.  | 
  
      
  | 
  
| 
 Return the time, when the next event will be generated the job. 
 
 Reimplemented from SPassiveMachines.  | 
  
      
  | 
  
| 
 Return the position where a job is currently embedded 
 
  | 
  
      
  | 
  
| 
 Return the time when the job was allocated to the machine  | 
  
      
  | 
  
| 
 Get access to the topology of the machines. It contains information about the embedded jobs.  | 
  
      
  | 
  
| 
 Return whether a job is allocated on a machine 
 
  | 
  
      
  | 
  
| 
 Returns whether an environment was assigned to the machines 
  | 
  
      
  | 
  
| 
 No descriptions  | 
  
      
  | 
  
| 
 Inform all observers of this component about an event. The Observers will receive this event by their SObserver::update()-method. 
 
  | 
  
      
  | 
  
| 
 Reset machines. Allocated jobs will be deallocated and the topology is resetted.  | 
  
      
  | 
  ||||||||||||
| 
 Advance the simulation time until the next time step. 
 Reimplemented from SPassiveMachines.  | 
  
      
  | 
  
| 
 @supplierCardinality 1..*  | 
  
      
  | 
  
| 
 
  | 
  
1.2.18