#include <SPassiveMachines.h>
Inherits SObservable.
Inherited by SMachines.
Inheritance diagram for SPassiveMachines:
Public Types | |
typedef leda_dictionary< int, SJobExecInfo * > | MapJobToInfo |
Public Methods | |
SPassiveMachines () | |
virtual | ~SPassiveMachines () |
SPassiveMachines & | operator= (SPassiveMachines &) |
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 |
virtual void | allocate (SJob &job, int pos=-1) |
virtual void | allocate (SJob &job, SComplexPosition *pComplexPos=NULL) |
virtual void | deallocate (SJob &job) |
virtual void | simulate (double oldTime, double newTime) |
virtual double | getNextEventTime (double currTime) const |
virtual SPassiveMachinesMod & | getModifier () |
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 | SPassiveMachinesMod |
|
|
|
Constructor |
|
Destructor |
|
Here another component can register himself as observer of this component
|
|
Reimplemented in SMachines. |
|
Allocate a job. Also changes the state of the job.
Reimplemented in SMachines. |
|
Return whether a topology could be embedded at a certain position
|
|
Deallocate a job from machine. Also changes the state of the job.
Reimplemented in SMachines. |
|
Here another component can delete himself from the list of observers of this component
|
|
Get all currently allocated jobs |
|
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 modifier Reimplemented in SMachines. |
|
Return the time, when the next event will be generated the job. Passive machines do not generate events, so there is no time, when an event could occur.
Reimplemented in SMachines. |
|
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
|
|
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. In the standard implementation passive machines do not generate events. Well, they are passive, aren't they? So, this method will do nothing at all.
Reimplemented in SMachines. |
|
|
|
|