Class ProcessStageExpCPUSched

java.lang.Object
  extended byProcessStage
      extended byProcessStageExpCPUSched
All Implemented Interfaces:
EventHandlerIF

public class ProcessStageExpCPUSched
extends ProcessStage

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


Field Summary
(package private)  int cur_sched
           
(package private)  int num_processed
           
 
Fields inherited from class ProcessStage
config
 
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 ProcessStage
destroy, handleEvent, handleEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num_processed

int num_processed

cur_sched

int cur_sched
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
Throws:
java.lang.Exception

processMessage

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