Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SUnrelated Class Reference

#include <SUnrelated.h>

Inherits SEnvironment.

Inherited by SUniform [virtual].

Inheritance diagram for SUnrelated:

Inheritance graph
[legend]
List of all members.

Public Methods

 SUnrelated ()
virtual SEnvironmentModgetModifier ()
virtual int getNumOfMachines () const
virtual const leda_matrix & getSpeedsMatrix () const
virtual double getSpeed (int machine, const SJob &job) const
virtual double getRemProcTimeOn (SJob &job, const SMachines &machines) const
virtual leda_string getClassifier () const=0
virtual bool isInstanceOf (const leda_string &classifier) const=0
virtual void assureInstanceOf (const leda_string &classifier) const=0

Friends

class SUnrelatedMod

Detailed Description

Unrelated processor environment, the classifier is "R". Every job will be processed on every processor at a different speed. Access the modifier in order to set properties.
See also:
SUnrelatedMod


Constructor & Destructor Documentation

SUnrelated::SUnrelated   [inline]
 

Constructor


Member Function Documentation

virtual void STypeInfo::assureInstanceOf const leda_string &    classifier const [pure virtual, inherited]
 

The same as isInstanceOf(), only that the program is stopped with an error in case of failure

Parameters:
classifier  e.g. "P", "Q", "R", etc

virtual leda_string STypeInfo::getClassifier   [pure virtual, inherited]
 

Get the classifier of the object, using the classification scheme. E.g. "P" for Identical Processors

Returns:
classifier string

virtual SEnvironmentMod& SUnrelated::getModifier   [inline, virtual]
 

Get access to the modifier

Implements SEnvironment.

Reimplemented in SBroadcast, SIdentical, SSingle, and SUniform.

virtual int SUnrelated::getNumOfMachines   [inline, virtual]
 

Get the number of machines in this environment

Returns:
number of machines

Implements SEnvironment.

Reimplemented in SBroadcast, SIdentical, SSingle, and SUniform.

virtual double SUnrelated::getRemProcTimeOn SJob   job,
const SMachines   machines
const [inline, virtual]
 

Get the time of how long a job will run on the machines in the same state. Precondition: The job must currently be scheduled on machines.

Parameters:
job  running job
machines  reference to SMachines
Returns:
total processing time of job

Implements SEnvironment.

Reimplemented in SSingle.

virtual double SUnrelated::getSpeed int    machine,
const SJob   job
const [inline, virtual]
 

Get the speed of how fast a machine will process a job

Parameters:
machine  machine position
job  job
Returns:
speed

Reimplemented in SBroadcast, SIdentical, and SUniform.

virtual const leda_matrix& SUnrelated::getSpeedsMatrix   const [inline, virtual]
 

Get the matrix containing the speed for a machine/job-pair. The rows correspond to machines, the columns to jobs.

Returns:
matrix containing speeds

Reimplemented in SBroadcast, SIdentical, and SUniform.

virtual bool STypeInfo::isInstanceOf const leda_string &    classifier const [pure virtual, inherited]
 

Checks whether the object is an instance of the specified or a specialized class

Parameters:
classifier  e.g. "P", "Q", "R", etc
Returns:
true if the object can be casted to the specified class


Friends And Related Function Documentation

friend class SUnrelatedMod [friend]
 


The documentation for this class was generated from the following file:
Generated on Thu May 22 16:50:56 2003 for Sketch-it! by doxygen1.2.18