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