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

SIdentical Class Reference

#include <SIdentical.h>

Inherits SUniform.

Inherited by SBroadcast [virtual], and SSingle [virtual].

Inheritance diagram for SIdentical:

Inheritance graph
[legend]
List of all members.

Public Methods

 SIdentical ()
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 SIdenticalMod

Detailed Description

Identical processors environment, the classifier is "P". All processors have unique speed and are therefore normalized to speed 1. Access the modifier in order to set properties.
See also:
SIdenticalMod


Constructor & Destructor Documentation

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

Get access to the modifier.

Reimplemented from SUniform.

Reimplemented in SBroadcast, and SSingle.

virtual int SIdentical::getNumOfMachines   [inline, virtual]
 

Get the number of machines in this environment

Returns:
number of machines

Reimplemented from SUniform.

Reimplemented in SBroadcast, 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 SIdentical::getSpeed int    machine const [inline, virtual]
 

Get the speed of a specific machine. (Of course you will get speed 1.)

Returns:
speed of machine (=1)

Reimplemented from SUniform.

Reimplemented in SBroadcast.

virtual double SIdentical::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. (Of course the speed is always equal to 1.)
job  job
Returns:
speed (=1)

Reimplemented from SUniform.

Reimplemented in SBroadcast.

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

Get the matrix containing the speed for a machine/job-pair. The rows correspond to machines, the columns to jobs. (Of course all speeds are equal to 1.)

Returns:
matrix containing speeds

Reimplemented from SUniform.

Reimplemented in SBroadcast.

virtual const leda_vector& SIdentical::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 ? (Of course here you will get all equal to 1.)

Returns:
the vector of speed-factors

Reimplemented from SUniform.

Reimplemented in SBroadcast.

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 SIdenticalMod [friend]
 


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