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

SJobShop Class Reference

#include <SJobShop.h>

Inherits SGeneralShop.

Inherited by SFlowShop [virtual].

Inheritance diagram for SJobShop:

Inheritance graph
[legend]
List of all members.

Public Methods

 SJobShop ()
virtual ~SJobShop ()
virtual double getRemProcTimeOn (SJob &job, const SMachines &machines) const
virtual int getNumOfMachines () const
virtual SEnvironmentModgetModifier ()
virtual leda_list< int > getAvailOperations (const SShopJob &job) const
virtual double getPartialProcTime (const SShopJob &job, int op, const SMachines &mach) const
virtual int getNumOperations (const SShopJob &job) const
virtual leda_list< int > getMachinesFor (const SShopJob &job, int op) const
virtual int getNextOperation (const SShopJob &job) const
virtual const leda_array<
int > & 
getWorkPlan (const SJob &job) 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

Protected Attributes

leda_array< leda_array< double > * > _partTimes
int _numMach

Friends

class SJobShopMod

Detailed Description

This class models 'simple job shops', its classifier if "J". The precedence relation for the operations is a simple chain. The chain corresponds to a list of machines where the job has to pass (in this order) during its execution, the so called "workplan". Access the modifier to set properties.
See also:
SJobShopMod


Constructor & Destructor Documentation

SJobShop::SJobShop  
 

Constructor

SJobShop::~SJobShop   [virtual]
 

Destructor


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

leda_list< int > SJobShop::getAvailOperations const SShopJob   job const [virtual]
 

Get the list of all operations of a job that may currently be executed. Here: all non-finished operations are returned.

Parameters:
job  job
Returns:
list of operations

Implements SGeneralShop.

Reimplemented in 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

leda_list< int > SJobShop::getMachinesFor const SShopJob   job,
int    op
const [virtual]
 

Get a list of machine positions, where the specified operation may be executed, i.e. the workplan entry for operation 'op'.

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

Implements SGeneralShop.

Reimplemented in SFlowShop, and SSingle.

virtual SEnvironmentMod& SJobShop::getModifier   [inline, virtual]
 

Get access to the modifier

Implements SGeneralShop.

Reimplemented in SFlowShop, and SSingle.

int SJobShop::getNextOperation const SShopJob   job const [virtual]
 

Return the operation to be executed next

Implements SGeneralShop.

Reimplemented in SSingle.

virtual int SJobShop::getNumOfMachines   const [inline, virtual]
 

Return the number of machines

Implements SEnvironment.

Reimplemented in SSingle.

int SJobShop::getNumOperations const SShopJob   job const [virtual]
 

Return the number of operations of which the job consists

Implements SGeneralShop.

Reimplemented in SSingle.

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

Get the partial processing time of a specific operation of a job.

Parameters:
job  job
op  operation
mach  is ignored, because machine-operation-combination is fixed in open shops

Implements SGeneralShop.

Reimplemented in SSingle.

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

Get the remaining processing time of the currently processed operation of a job

Parameters:
job  job that is currently running (processing a certain operation)
machines  reference to SMachines
Returns:
total processing time of current operation

Implements SEnvironment.

Reimplemented in SSingle.

const leda_array< int > & SJobShop::getWorkPlan const SJob   job const [virtual]
 

Get the whole workplan for a job. An array of machine positions will be returned: the i-th entry corresponds to the machine, where the i-th operations must be executed.

Parameters:
job  job
Returns:
workplan

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


Member Data Documentation

int SJobShop::_numMach [protected]
 

number of machines in the corresponding task system.

leda_array< leda_array<double>* > SJobShop::_partTimes [protected]
 

The partial processing times of the operations. The sum of the entries must be equal to one ! The outer array is indexed by the job index. The inner array is indexed by the operation


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