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

SJobMod Class Reference

#include <SJobMod.h>

Inherits SModifier.

Inherited by SAtomarJobMod, SBroadcastRequMod, SMalleableJobMod, SParallelJobMod, and SShopJobMod.

Inheritance diagram for SJobMod:

Inheritance graph
[legend]
List of all members.

Public Methods

 SJobMod (SJob &job)
virtual bool load (std::istream &in)
virtual void save (std::ostream &out) const
void setDueTime (double time)
void setProcTime (double proctime)
void setProcTime ()
void setStartTime (double time, int operation=0)
void setTopology (STopology *pTop)
void setIndex (int idx)
void setWeight (double w)
void setExpProcTime (double exp)
void setProcTimeDist (SProbabilityDist *dist)
void setReleaseTime (double reltime)
virtual void sample ()

Protected Methods

SFlexLexer & getLexer (std::istream &in)

Detailed Description

Modifier for a job. Here you can change properties of a job.


Constructor & Destructor Documentation

SJobMod::SJobMod (  SJob &    job )  [inline]
 


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

Load job from stream

Parameters:
in  input stream
Returns:
true, if no error occured, false otherwise

Implements SModifier.

Reimplemented in SAtomarJobMod, SBroadcastRequMod, SMalleableJobMod, SParallelJobMod, and SShopJobMod.

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 SJobMod::save (  std::ostream &    out )  const [virtual]
 

Save job to stream

Parameters:
out  output stream

Implements SModifier.

Reimplemented in SAtomarJobMod, SBroadcastRequMod, SMalleableJobMod, SParallelJobMod, and SShopJobMod.

void SJobMod::setDueTime (  double    time )  [inline]
 

Set due date

void SJobMod::setExpProcTime (  double    exp ) 
 

No descriptions

void SJobMod::setIndex (  int    idx )  [inline]
 

Set index. CAUTION: Be shure what you do !!

void SJobMod::setProcTime (    ) 
 

void SJobMod::setProcTime (  double    proctime ) 
 

Set relative processing time. If the proc time is modified the remaining processing time is reset to the full value.

void SJobMod::setProcTimeDist (  SProbabilityDist *    dist ) 
 

void SJobMod::setReleaseTime (  double    reltime ) 
 

No descriptions

void SJobMod::setStartTime (  double    time,
int    operation = 0
) 
 

Set time when the job gets running for the first time

void SJobMod::setTopology (  STopology *    pTop ) 
 

Set topology of job

void SJobMod::setWeight (  double    w )  [inline]
 

Set weight (priority)


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