public final class PandaGenerationCycle extends Object implements GenerationCycle
| Constructor and Description |
|---|
PandaGenerationCycle(Generation generation,
String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
countTasks() |
GenerationPhase |
currentPhase()
Get current phase
|
boolean |
execute()
Launch cycle
|
Generation |
generation()
Get generation
|
String |
name()
Get name of cycle
|
GenerationPhase |
nextPhase()
Get next phase
|
String |
toString() |
public PandaGenerationCycle(Generation generation, String name)
public boolean execute()
throws Exception
GenerationCycleexecute in interface GenerationCycleException - allows you to handle exception that may occur in taskspublic int countTasks()
countTasks in interface GenerationCyclepublic GenerationPhase currentPhase()
GenerationCyclecurrentPhase in interface GenerationCyclepublic GenerationPhase nextPhase()
GenerationCyclenextPhase in interface GenerationCyclepublic Generation generation()
GenerationCyclegeneration in interface GenerationCyclepublic String name()
GenerationCyclename in interface GenerationCycleCopyright © 2020. All rights reserved.