public final class ComplexPhase extends Phase
A complex phase is a sequence of phases.
| Modifier and Type | Field and Description |
|---|---|
private int[] |
scheduledSubPhases
The phases that comprise this phase.
|
id, name, SCHEDULE_COLLECTOR, SCHEDULE_COMPLEX, SCHEDULE_CONCURRENT, SCHEDULE_GLOBAL, SCHEDULE_MUTATOR, SCHEDULE_PLACEHOLDER, timer| Modifier | Constructor and Description |
|---|---|
protected |
ComplexPhase(String name,
int[] scheduledSubPhases)
Construct a complex phase from an array of phase IDs.
|
protected |
ComplexPhase(String name,
Timer timer,
int[] scheduledSubPhases)
Construct a complex phase from an array of phase IDs, but using
the specified timer rather than creating one.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
checkPhases()
Validate the scheduled sub phases.
|
protected int |
count() |
protected int |
get(int index)
Return an individual scheduled sub phase.
|
protected void |
logPhase()
Display a description of this phase, for debugging purposes.
|
void |
replacePhase(int oldScheduledPhase,
int newScheduledPhase)
Replace a scheduled phase.
|
beginNewPhaseStack, clearConcurrentPhase, concurrentPhaseActive, continuePhaseStack, createComplex, createComplex, createConcurrent, createConcurrent, createSimple, createSimple, getConcurrentPhaseId, getId, getName, getPhase, getPhaseId, getSchedule, getScheduleName, isPhaseStackEmpty, notifyConcurrentPhaseComplete, notifyConcurrentPhaseIncomplete, pushScheduledPhase, resetPhaseStack, scheduleCollector, scheduleComplex, scheduleConcurrent, scheduleGlobal, scheduleMutator, schedulePlaceholderprivate final int[] scheduledSubPhases
protected ComplexPhase(String name, int[] scheduledSubPhases)
name - The name of the phase.scheduledSubPhases - The sub phasesprotected ComplexPhase(String name, Timer timer, int[] scheduledSubPhases)
name - The name of the phase.timer - The timer for this phase to contribute to.scheduledSubPhases - The sub phasesprivate void checkPhases()
protected int count()
protected int get(int index)
index - The indexprotected void logPhase()
Phasepublic void replacePhase(int oldScheduledPhase, int newScheduledPhase)
oldScheduledPhase - The scheduled phase to replace.newScheduledPhase - The new scheduled phase.