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

SOpenShopMod Class Reference

#include <SOpenShopMod.h>

Inherits SGeneralShopMod.

Inheritance diagram for SOpenShopMod:

Inheritance graph
[legend]
List of all members.

Public Methods

 SOpenShopMod (SOpenShop &env)
virtual ~SOpenShopMod ()
virtual void setNumOfMachines (int numMach)
virtual void setNumOfJobs (int jobs)
virtual void setNumOperations (SShopJob &job, int numOps)
virtual void setPartialProcTime (SShopJob &job, int op, int mach, double partTime)
virtual bool load (std::istream &in)
virtual void save (std::ostream &out) const
virtual void sample ()

Protected Methods

SFlexLexergetLexer (std::istream &in)

Constructor & Destructor Documentation

SOpenShopMod::SOpenShopMod SOpenShop   env [inline]
 

Constructor

virtual SOpenShopMod::~SOpenShopMod   [inline, virtual]
 

Destructor


Member Function Documentation

SFlexLexer & SModifier::getLexer std::istream &    in [protected, inherited]
 

Get a reference to the global lexical-analyzer, in order to parse an input stream. There is only one lexer for all modifiers in the tasksystem to avoid wasting space. When the input stream is switched, the current line number is set to 1.

Parameters:
in  input stream

bool SOpenShopMod::load std::istream &    in [virtual]
 

Load an open shop from stream

Returns:
true if successfull, otherwise false

Implements SModifier.

virtual void SOpenShopMod::sample   [inline, virtual]
 

Reimplemented from SModifier.

void SOpenShopMod::save std::ostream &    out const [virtual]
 

Save the open shop to stream

Implements SModifier.

void SOpenShopMod::setNumOfJobs int    jobs [virtual]
 

Inform the machines about the number of jobs in the tasksystem. All partial processing times of all new jobs will be set to 1 / (numberOfMachines). Old jobs will keep their values.

Implements SEnvironmentMod.

void SOpenShopMod::setNumOfMachines int    numMach [virtual]
 

Set the number of machines in the environment. All partial processing times of operations all jobs will be set to 1 / numMach

Implements SEnvironmentMod.

void SOpenShopMod::setNumOperations SShopJob   job,
int    numOps
[virtual]
 

Setting the number of operations will have no effect, because in open shops the number of operations is fixed to the number of machines.

Implements SGeneralShopMod.

void SOpenShopMod::setPartialProcTime SShopJob   job,
int    op,
int    mach,
double    partTime
[virtual]
 

Set the partial processing time 0 < partTime <= 1 of an operation of a job on a machine

Parameters:
j  job
op  operation
mach  position of machine
partTime  partial processing time

Implements SGeneralShopMod.


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