seda.sandStorm.test.bench.simple_sa
Class ProcessStageExpCPUSched

java.lang.Object
  extended by seda.sandStorm.test.bench.simple_sa.ProcessStage
      extended by seda.sandStorm.test.bench.simple_sa.ProcessStageExpCPUSched
All Implemented Interfaces:
EventHandlerIF

public class ProcessStageExpCPUSched
extends ProcessStage

This version changes the processing rate 'mu' according to a given schedule.


Field Summary
private  seda.util.StatsGatherer countStats
           
(package private)  int cur_sched
           
private static boolean DEBUG
           
private  int[] MSGS_SCHED
           
private  double[] MU_SCHED
           
(package private)  int num_processed
           
private static boolean PROFILE
           
private  java.util.Random rand
           
private  seda.util.StatsGatherer serviceTimeStats
           
 
Fields inherited from class seda.sandStorm.test.bench.simple_sa.ProcessStage
config, mysink
 
Constructor Summary
ProcessStageExpCPUSched()
           
 
Method Summary
 void init(ConfigDataIF config)
          Called when an event handler is initialized.
protected  void processMessage(Message msg)
           
 
Methods inherited from class seda.sandStorm.test.bench.simple_sa.ProcessStage
destroy, handleEvent, handleEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

MU_SCHED

private double[] MU_SCHED

MSGS_SCHED

private int[] MSGS_SCHED

rand

private java.util.Random rand

num_processed

int num_processed

cur_sched

int cur_sched

PROFILE

private static final boolean PROFILE
See Also:
Constant Field Values

serviceTimeStats

private seda.util.StatsGatherer serviceTimeStats

countStats

private seda.util.StatsGatherer countStats
Constructor Detail

ProcessStageExpCPUSched

public ProcessStageExpCPUSched()
Method Detail

init

public void init(ConfigDataIF config)
          throws java.lang.Exception
Description copied from interface: EventHandlerIF
Called when an event handler is initialized. This method should perform any initialization operations as required by the application.

Specified by:
init in interface EventHandlerIF
Overrides:
init in class ProcessStage
Parameters:
config - The set of configuration parameters for the stage.
Throws:
java.lang.Exception - The EventHandler can indicate an error to the runtime during initialization by throwing an Exception.

processMessage

protected void processMessage(Message msg)
Specified by:
processMessage in class ProcessStage