org.jikesrvm.mm.mmtk
Class ActivePlan

java.lang.Object
  extended by org.mmtk.vm.ActivePlan
      extended by org.jikesrvm.mm.mmtk.ActivePlan

public final class ActivePlan
extends ActivePlan

This class contains interfaces to access the current plan, plan local and plan constraints instances.


Field Summary
private static SynchronizedCounter mutatorCounter
           
 
Constructor Summary
ActivePlan()
           
 
Method Summary
 CollectorContext collector()
           
 int collectorCount()
           
 PlanConstraints constraints()
           
 MutatorContext getNextMutator()
          Return the next MutatorContext in a synchronized iteration of all mutators.
 Plan global()
           
 Log log()
           
 MutatorContext mutator()
           
 void resetMutatorIterator()
          Reset the mutator iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mutatorCounter

private static SynchronizedCounter mutatorCounter
Constructor Detail

ActivePlan

public ActivePlan()
Method Detail

global

public Plan global()
Specified by:
global in class ActivePlan
Returns:
The active Plan instance.

constraints

public PlanConstraints constraints()
Specified by:
constraints in class ActivePlan
Returns:
The active PlanConstraints instance.

collectorCount

public int collectorCount()
Specified by:
collectorCount in class ActivePlan
Returns:
The number of registered CollectorContext instances.

collector

public CollectorContext collector()
Specified by:
collector in class ActivePlan
Returns:
The active CollectorContext instance.

mutator

public MutatorContext mutator()
Specified by:
mutator in class ActivePlan
Returns:
The active MutatorContext instance.

log

public Log log()
Specified by:
log in class ActivePlan
Returns:
The log for the active thread

resetMutatorIterator

public void resetMutatorIterator()
Reset the mutator iterator

Specified by:
resetMutatorIterator in class ActivePlan

getNextMutator

public MutatorContext getNextMutator()
Return the next MutatorContext in a synchronized iteration of all mutators.

Specified by:
getNextMutator in class ActivePlan
Returns:
The next MutatorContext in a synchronized iteration of all mutators, or null when all mutators have been done.