1 package org.woehlke.computer.kurzweil.mandelbrot.zoom.model.turing;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 public class TuringPhaseState {
17
18 private volatile TuringPhase turingTuringPhase;
19
20 public TuringPhaseState() {
21 start();
22 }
23
24 public void start(){
25 this.turingTuringPhase = TuringPhase.SEARCH_THE_SET;
26 }
27
28 public void finishSearchTheSet(){
29 turingTuringPhase = TuringPhase.WALK_AROUND_THE_SET;
30 }
31
32 public void finishWalkAround() {
33 turingTuringPhase = TuringPhase.FILL_THE_OUTSIDE_WITH_COLOR;
34 }
35
36 public void finishFillTheOutsideWithColors() {
37 turingTuringPhase = TuringPhase.FINISHED;
38 }
39
40 public TuringPhase getTuringTuringPhase() {
41 return turingTuringPhase;
42 }
43 }