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

SJobShopMod Class Reference

#include <SJobShopMod.h>

Inherits SGeneralShopMod.

Inheritance diagram for SJobShopMod:

Inheritance graph
[legend]
List of all members.

Public Methods

 SJobShopMod (SJobShop &env)
virtual ~SJobShopMod ()
virtual void setNumOfMachines (int mach)
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)

Detailed Description

Modifier for job shop environment.
See also:
SJobShop


Constructor & Destructor Documentation

SJobShopMod::SJobShopMod SJobShop   env [inline]
 

Constructor

virtual SJobShopMod::~SJobShopMod   [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 SJobShopMod::load std::istream &    in [virtual]
 

Load a job shop from stream

Returns:
true if successfull, otherwise false

Implements SModifier.

virtual void SModifier::sample   [inline, virtual, inherited]
 

Reimplemented in SBroadcastMod, SIdenticalMod, SOpenShopMod, SUniformMod, SUnrelatedMod, SAtomarJobMod, SBroadcastRequMod, SMalleableJobMod, SParallelJobMod, SShopJobMod, SPrecBrokerMod, SPrecDAGMod, STaskSystemMod, SDimArrayMod, SHypercubeMod, SLineTopologyMod, SMeshNMod, SMeshTopologyMod, SSetTopologyMod, and SSingleTopologyMod.

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

Save the job shop to stream

Implements SModifier.

void SJobShopMod::setNumOfJobs int    jobs [virtual]
 

Inform the machines about the number of jobs in the tasksystem. If you increase the number of jobs, the number of operations of new jobs will be set to numberOfMachines and the partial processing times of these are set to 1 / numberOfMachines and the workplan of all operations ist set to machine 0. All old jobs will keep their operations, partial processing times of operations and workplan of operations.

Implements SEnvironmentMod.

void SJobShopMod::setNumOfMachines int    mach [virtual]
 

Set the number of machines in the environment. If you decrease the number of machines, workplan entries that refer to an old machine are set to machine 0. All other workplan entries are preserved, likely as all partial processing times.

Implements SEnvironmentMod.

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

Set the number of operations of a job. All operations of this job will get equal partial processing times ( 1 / numOps ). If you increase the number of operations, the workplan of new operations will be set to machine 0, old operations will keep their workplan.

Implements SGeneralShopMod.

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

Set the partial processing time of an operation of a job. Also the workplan is adjusted in the way that the operation 'op' must be processed on machine 'mach'

Parameters:
job  job
op  operation
mach  machine position
partTime  partial processing time ( 0 < partTime <= 1 )

Implements SGeneralShopMod.


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