View Javadoc
1   package org.woehlke.computer.kurzweil.mandelbrot.model.turing;
2   
3   /**
4    * Mandelbrot Set drawn by a Turing Machine.
5    *
6    * (C) 2006 - 2015 Thomas Woehlke.
7    * https://thomas-woehlke.blogspot.com/2016/01/mandelbrot-set-drawn-by-turing-machine.html
8    * @author Thomas Woehlke
9    *
10   * Created by tw on 16.12.2019.
11   */
12  public class TuringPhaseState {
13  
14      private volatile TuringPhase turingTuringPhase;
15  
16      public TuringPhaseState() {
17          start();
18      }
19  
20      public void start(){
21          this.turingTuringPhase = TuringPhase.SEARCH_THE_SET;
22      }
23  
24      public void finishSearchTheSet(){
25          turingTuringPhase = TuringPhase.WALK_AROUND_THE_SET;
26      }
27  
28      public void finishWalkAround() {
29          turingTuringPhase = TuringPhase.FILL_THE_OUTSIDE_WITH_COLOR;
30      }
31  
32      public void finishFillTheOutsideWithColors() {
33          turingTuringPhase = TuringPhase.FINISHED;
34      }
35  
36      public TuringPhase getTuringTuringPhase() {
37          return turingTuringPhase;
38      }
39  }