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

SSingle Class Reference

#include <SSingle.h>

Inherits SFlowShop, SIdentical, and SOpenShop.

Inheritance diagram for SSingle:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual leda_list< int > getMachinesFor (const SShopJob &job, int op) const
virtual SEnvironmentModgetModifier ()
virtual double getRemProcTimeOn (SJob &j, const SMachines &m) const
virtual int getNumOfMachines () const
virtual leda_list< int > getAvailOperations (const SShopJob &j) const
virtual double getPartialProcTime (const SShopJob &j, int op, const SMachines &m) const
virtual int getNumOperations (const SShopJob &j) const
virtual int getNextOperation (const SShopJob &j) 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
virtual const leda_matrix & getSpeedsMatrix () const
virtual double getSpeed (int machine, const SJob &job) const
virtual double getSpeed (int machine) const
virtual const leda_vector & getSpeedsVector ()

Protected Attributes

leda_array< leda_array< double > * > _partTimes
int _numMach

Detailed Description

Single environment, its classifier is "1". Access the modifier in order to set properties. NOTE: This class is under construction
See also:
SSingleMod


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> SSingle::getAvailOperations const SShopJob   j const [inline, 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

Reimplemented from SOpenShop.

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> SSingle::getMachinesFor const SShopJob   job,
int    op
const [inline, virtual]
 

This method has to be redefined!

Reimplemented from SFlowShop.

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

Get access to the modifier

Reimplemented from SFlowShop.

virtual int SSingle::getNextOperation const SShopJob   j const [inline, virtual]
 

Return the operation to be executed next

Reimplemented from SOpenShop.

virtual int SSingle::getNumOfMachines   [inline, virtual]
 

Get the number of machines in this environment

Returns:
number of machines

Reimplemented from SIdentical.

virtual int SSingle::getNumOperations const SShopJob   j const [inline, virtual]
 

Return the number of operations of which the job consists

Reimplemented from SOpenShop.

virtual double SSingle::getPartialProcTime const SShopJob   j,
int    op,
const SMachines   m
const [inline, 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

Reimplemented from SOpenShop.

virtual double SSingle::getRemProcTimeOn SJob   j,
const SMachines   m
const [inline, 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

Reimplemented from SOpenShop.

virtual double SIdentical::getSpeed int    machine const [inline, virtual, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

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.

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

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


Member Data Documentation

int SJobShop::_numMach [protected, inherited]
 

number of machines in the corresponding task system.

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

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 file:
Generated on Thu May 22 16:50:54 2003 for Sketch-it! by doxygen1.2.18