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

SBroadcastMod Class Reference

#include <SBroadcastMod.h>

Inherits SEnvironmentMod.

Inheritance diagram for SBroadcastMod:

Inheritance graph
[legend]
List of all members.

Public Methods

 SBroadcastMod (SBroadcast &env)
virtual ~SBroadcastMod ()
virtual bool load (std::istream &in)
virtual void save (std::ostream &out) const
virtual void sample ()
virtual void setNumOfMachines (int n)
virtual void setNumOfJobs (int n)
SBroadcastgetBroadcast ()

Protected Methods

SFlexLexergetLexer (std::istream &in)

Detailed Description

Modifier for identical processor environment
See also:
SBroadcast


Constructor & Destructor Documentation

SBroadcastMod::SBroadcastMod SBroadcast   env [inline]
 

SBroadcastMod::~SBroadcastMod   [virtual]
 


Member Function Documentation

SBroadcast& SBroadcastMod::getBroadcast   [inline]
 

Return the identical processor environment

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

Load an identical processor environment from stream

Returns:
true if successfull, otherwise false

Implements SModifier.

virtual void SBroadcastMod::sample   [inline, virtual]
 

Reimplemented from SModifier.

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

Save the identical processor environment to stream

Implements SModifier.

void SBroadcastMod::setNumOfJobs int    n [virtual]
 

Inform the machines about the number of jobs in the tasksystem If the number of jobs is reduced, the ones with the lower indices are kept, if new jobs are added, their job/machine-speed is set to 1

Parameters:
new  number of jobs

Implements SEnvironmentMod.

void SBroadcastMod::setNumOfMachines int    n [virtual]
 

Set a new number of machines. If the number of machines is reduced, the ones with the lower indices are kept, if new machines are added, their speed-factor is set to 1

Parameters:
new  number of machines

Implements SEnvironmentMod.


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