public final class PandaGeneration extends Object implements Generation
| Constructor and Description |
|---|
PandaGeneration() |
| Modifier and Type | Method and Description |
|---|---|
int |
countTasks()
Get amount of all tasks
|
int |
countTasks(@Nullable GenerationCycle to)
Get amount of tasks before the specified cycle.
|
Optional<GenerationCycle> |
getCurrentCycle() |
GenerationCycle |
getCycle(CycleType type)
Get cycle
|
GenerationCycle |
getCycle(String name)
Get cycle
|
PandaGeneration |
initialize(List<? extends CycleType> types) |
void |
launch()
Launch cycles
|
String |
toString() |
public PandaGeneration initialize(List<? extends CycleType> types)
public void launch()
throws Exception
Generationlaunch in interface GenerationException - if GenerationPhase throws an exception, you should catch it and handlepublic int countTasks(@Nullable
@Nullable GenerationCycle to)
GenerationcountTasks in interface Generationto - the cycle to which it countpublic int countTasks()
GenerationcountTasks in interface Generationpublic Optional<GenerationCycle> getCurrentCycle()
getCurrentCycle in interface Generationpublic GenerationCycle getCycle(CycleType type)
GenerationgetCycle in interface Generationtype - the type of cyclepublic GenerationCycle getCycle(String name)
GenerationgetCycle in interface Generationname - the name of cycleCopyright © 2020. All rights reserved.