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

SGeneralShop Class Reference

#include <SGeneralShop.h>

Inherits SEnvironment.

Inherited by SJobShop [virtual], and SOpenShop [virtual].

Inheritance diagram for SGeneralShop:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual leda_list< int > getAvailOperations (const SShopJob &job) const=0
virtual double getPartialProcTime (const SShopJob &job, int op, const SMachines &mach) const=0
virtual int getNumOperations (const SShopJob &job) const=0
virtual leda_list< int > getMachinesFor (const SShopJob &job, int op) const=0
virtual int getNextOperation (const SShopJob &job) const=0
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 shop environments, the classifier if "G". A general shop stores the structure of a shop job: the duration of operations of which it consists and the precedence relation between them. Access the modifier to set properties. The durations are stored as 'partial processing times', i.e. as percentages of the processing time of the job (which is stored in SJob) NOTE: This class is not implemented yet and serves merely as base class for all other shop-classes. It may become a starting point for more sophisticated job shop models (for example with sets of admissible machines for each operation)
See also:
SGeneralShopMod


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_list<int> SGeneralShop::getAvailOperations const SShopJob   job const [pure virtual]
 

Get the list of all operations of a job that may currently be executed (depending on the precedence relation)

Parameters:
job  job
Returns:
list of operations

Implemented in SJobShop, SOpenShop, and SSingle.

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 leda_list<int> SGeneralShop::getMachinesFor const SShopJob   job,
int    op
const [pure virtual]
 

Get a list of machine positions, where the specified operation may be executed.

Parameters:
job  job
op  operation
Returns:
list of machine positions

Implemented in SFlowShop, SJobShop, SOpenShop, and SSingle.

virtual SEnvironmentMod& SGeneralShop::getModifier   [pure virtual]
 

Get access to the modifier

Implements SEnvironment.

Implemented in SFlowShop, SJobShop, SOpenShop, and SSingle.

virtual int SGeneralShop::getNextOperation const SShopJob   job const [pure virtual]
 

Return the operation to be executed next

Implemented in SJobShop, SOpenShop, and SSingle.

virtual int SEnvironment::getNumOfMachines   [pure virtual, inherited]
 

Get the number of machines in this environment

Returns:
number of machines

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

virtual int SGeneralShop::getNumOperations const SShopJob   job const [pure virtual]
 

Return the number of operations of which the job consists

Implemented in SJobShop, SOpenShop, and SSingle.

virtual double SGeneralShop::getPartialProcTime const SShopJob   job,
int    op,
const SMachines   mach
const [pure virtual]
 

Get the partial processing time of a specific operation of a job (depending on the current embedding ... this is ignored up to now because the processing times in our shop models are independent from the machine where the job is running)

Parameters:
job  job
op  operation
mach  reference to SMachines
Returns:
percentage of the operation 'op' of the whole relative processing time of 'job'; i.e. a value between 0 and 1

Implemented in SJobShop, SOpenShop, and SSingle.

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

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:45 2003 for Sketch-it! by doxygen1.2.18