View Javadoc
1   package org.woehlke.computer.kurzweil.mandelbrot.julia.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-julia">Github Repository</a>
10   * @see <a href="https://java.woehlke.org/mandelbrot-julia/">Maven Project Repository</a>
11   *
12   * Created by tw on 16.12.2019.
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  }