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