19 package org.turro.phase;
21 import java.util.Date;
22 import java.util.SortedSet;
23 import java.util.TreeSet;
77 return !
current.equals(newPhase);
92 SortedSet<PhaseDefinition> possible =
new TreeSet<>();
static PhaseDefinitions instance()
void onChanged(PhaseDefinition newStatus)
PhaseDefinition getCurrent()
Phase(PhaseDefinition current)
SortedSet< PhaseDefinition > getPossiblePhases()
synchronized void changeTo(PhaseDefinition newPhase)
abstract PhaseDefinition doCheckPhase(Date now)
boolean canChangeTo(PhaseDefinition newPhase)
synchronized void checkStatus(Date now)
SortedSet< PhaseDefinition > allPhases()
abstract PhaseDefinition doChangeTo(PhaseDefinition newPhase)
void onChanging(PhaseDefinition newStatus)