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

SUniform Class Reference

#include <SUniform.h>

Inherits SUnrelated.

Inherited by SIdentical [virtual].

Inheritance diagram for SUniform:

Inheritance graph
[legend]
List of all members.

Public Methods

 SUniform ()
virtual SEnvironmentModgetModifier ()
virtual int getNumOfMachines () const
virtual const leda_matrix & getSpeedsMatrix () const
virtual double getSpeed (int machine, const SJob &job) const
virtual const leda_vector & getSpeedsVector ()
virtual double getSpeed (int machine) 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 SUniformMod

Detailed Description

Uniform processors environment, the classifier is "Q". The speed af every processor is a multiple of the speed of the slowest processor. The speed of the slowest processor is equal to 1. Access the modifier in order to set properties.
See also:
SUniformMod


Constructor & Destructor Documentation

SUniform::SUniform   [inline]
 


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& SUniform::getModifier   [inline, virtual]
 

Get access to the modifier.

Reimplemented from SUnrelated.

Reimplemented in SBroadcast, SIdentical, and SSingle.

virtual int SUniform::getNumOfMachines   [inline, virtual]
 

Get the number of machines in this environment

Returns:
number of machines

Reimplemented from SUnrelated.

Reimplemented in SBroadcast, SIdentical, and SSingle.

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

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 SUniform::getSpeed int    machine const [inline, virtual]
 

Get the speed of a specific machine.

Returns:
speed of machine

Reimplemented in SBroadcast, and SIdentical.

virtual double SUniform::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 from SUnrelated.

Reimplemented in SBroadcast, and SIdentical.

virtual const leda_matrix& SUniform::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 from SUnrelated.

Reimplemented in SBroadcast, and SIdentical.

virtual const leda_vector& SUniform::getSpeedsVector   [inline, virtual]
 

Get the vector with the speed-factor of the different machine. Respond to the question: How fast is a certain machine compared to the slowest machine ?

Returns:
the vector of speed-factors

Reimplemented in SBroadcast, and SIdentical.

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 SUniformMod [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