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

SBroadcast Class Reference

#include <SBroadcast.h>

Inherits SIdentical.

Inheritance diagram for SBroadcast:

Inheritance graph
[legend]
List of all members.

Public Methods

 SBroadcast ()
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 SBroadcastMod

Detailed Description

Special Processor which can broadcast messages (several jobs of the same type, i.e. request for the same message, can be serviced at once). All processors have unique speed and are therefore normalized to speed 1. Access the modifier in order to set properties.
See also:
SBroadcastMod


Constructor & Destructor Documentation

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

Get access to the modifier.

Reimplemented from SIdentical.

virtual int SBroadcast::getNumOfMachines   [inline, virtual]
 

Get the number of machines in this environment

Returns:
number of machines

Reimplemented from SIdentical.

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 SBroadcast::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 SIdentical.

virtual double SBroadcast::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 SIdentical.

virtual const leda_matrix& SBroadcast::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 SIdentical.

virtual const leda_vector& SBroadcast::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 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 SBroadcastMod [friend]
 


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