View Javadoc
1   package org.woehlke.computer.kurzweil.mandelbrot.zoom.model.turing;
2   
3   /**
4    * Mandelbrot Set drawn by a Turing Machine.
5    * (C) 2006 - 2022 Thomas Woehlke.
6    * @author Thomas Woehlke
7    *
8    * @see <a href="https://thomas-woehlke.blogspot.com/2016/01/mandelbrot-set-drawn-by-turing-machine.html">Blog Article</a>
9    * @see <a href="https://github.com/Computer-Kurzweil/mandelbrot-zoom">Github Repository</a>
10   * @see <a href="https://java.woehlke.org/mandelbrot-zoom/">Maven Project Repository</a>
11   *
12   * @see TuringPhase
13   *
14   * Created by tw on 16.12.2019.
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  }