seda.sandStorm.test.bench.simple_sa
Class ProcessStageComplex

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

public class ProcessStageComplex
extends ProcessStage


Field Summary
private  int[] arr
           
private static int BUFFER_SIZE
           
private static double CRIT_PROB
           
private static boolean DEBUG
           
private  java.lang.Object lock
           
private  boolean locked
           
private static boolean NEW_ARRAY_EACH_TIME
           
private static int NUM_INIT_MSGS
           
private  int NUM_LOOPS
           
private  java.util.Random rand
           
 
Fields inherited from class seda.sandStorm.test.bench.simple_sa.ProcessStage
config, mysink
 
Constructor Summary
ProcessStageComplex()
           
 
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

BUFFER_SIZE

private static final int BUFFER_SIZE
See Also:
Constant Field Values

NUM_INIT_MSGS

private static final int NUM_INIT_MSGS
See Also:
Constant Field Values

CRIT_PROB

private static final double CRIT_PROB
See Also:
Constant Field Values

NEW_ARRAY_EACH_TIME

private static final boolean NEW_ARRAY_EACH_TIME
See Also:
Constant Field Values

NUM_LOOPS

private int NUM_LOOPS

lock

private java.lang.Object lock

locked

private boolean locked

rand

private java.util.Random rand

arr

private int[] arr
Constructor Detail

ProcessStageComplex

public ProcessStageComplex()
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