org.aspectbench.tm.runtime.internal.labelshadows
Class TimedShadowSwitch

java.lang.Object
  extended by org.aspectbench.tm.runtime.internal.labelshadows.AbstractLabelShadowSwitch
      extended by org.aspectbench.tm.runtime.internal.labelshadows.TimedShadowSwitch
All Implemented Interfaces:
java.lang.Runnable

public class TimedShadowSwitch
extends AbstractLabelShadowSwitch

A timed shadow switch.

Author:
Eric Bodden

Field Summary
protected  java.lang.String className
          Name of the class whose tracematch should be triggered.
protected  double incDisabled
          Fraction of increase (or decrease) of the time for which the non-skip loops are disabled.
protected  double incEnabled
          Fraction of increase (or decrease) of the time for which the non-skip loops are enabled.
protected  int periods
          Number of periods after which to apply increases or decreases.
protected  long tDisabled
          Initial time for which the non-skip loops are disabled.
protected  long tEnabled
          Initial time for which the non-skip loops are enabled.
 
Fields inherited from class org.aspectbench.tm.runtime.internal.labelshadows.AbstractLabelShadowSwitch
disabled
 
Constructor Summary
TimedShadowSwitch()
           
 
Method Summary
 void run()
          
 
Methods inherited from class org.aspectbench.tm.runtime.internal.labelshadows.AbstractLabelShadowSwitch
switchTraceMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tDisabled

protected volatile long tDisabled
Initial time for which the non-skip loops are disabled.


tEnabled

protected volatile long tEnabled
Initial time for which the non-skip loops are enabled.


incDisabled

protected volatile double incDisabled
Fraction of increase (or decrease) of the time for which the non-skip loops are disabled. This increase or decrease will be applied every 'periods' iterations.


incEnabled

protected volatile double incEnabled
Fraction of increase (or decrease) of the time for which the non-skip loops are enabled. This increase or decrease will be applied every 'periods' iterations.


periods

protected volatile int periods
Number of periods after which to apply increases or decreases.


className

protected volatile java.lang.String className
Name of the class whose tracematch should be triggered.

Constructor Detail

TimedShadowSwitch

public TimedShadowSwitch()
Method Detail

run

public void run()

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class AbstractLabelShadowSwitch