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

SEnvironment Class Reference

#include <SEnvironment.h>

Inherits STypeInfo.

Inherited by SGeneralShop [virtual], and SUnrelated [virtual].

Inheritance diagram for SEnvironment:

Inheritance graph
[legend]
List of all members.

Public Methods

 SEnvironment ()
virtual ~SEnvironment ()
virtual SEnvironmentModgetModifier ()=0
virtual double getRemProcTimeOn (SJob &job, const SMachines &machines) const=0
virtual int getNumOfMachines () const=0
virtual leda_string getClassifier () const=0
virtual bool isInstanceOf (const leda_string &classifier) const=0
virtual void assureInstanceOf (const leda_string &classifier) const=0

Detailed Description

Base class for all environments. It stores all information about how fast a job is executed if it is allocated to a certain machine. Access the modifier to set properties.
See also:
SEnvironmentMod


Constructor & Destructor Documentation

SEnvironment::SEnvironment   [inline]
 

virtual SEnvironment::~SEnvironment   [inline, virtual]
 


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& SEnvironment::getModifier   [pure virtual]
 

Get access to the modifier

Implemented in SBroadcast, SFlowShop, SGeneralShop, SIdentical, SJobShop, SOpenShop, SSingle, SUniform, and SUnrelated.

virtual int SEnvironment::getNumOfMachines   [pure virtual]
 

Get the number of machines in this environment

Returns:
number of machines

Implemented in SBroadcast, SIdentical, SJobShop, SOpenShop, SSingle, SUniform, and SUnrelated.

virtual double SEnvironment::getRemProcTimeOn SJob   job,
const SMachines   machines
const [pure virtual]
 

Return the remaining execution time of the current phase of a job if it runs without preemption assuming that everything stays as it is (embedding etc)

Parameters:
job  reference to job
machines  reference to the machines
Returns:
total execution time

Implemented in SJobShop, SOpenShop, SSingle, and SUnrelated.

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


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