View Javadoc
1   package org.woehlke.simulation.evolution.model;
2   
3   import java.awt.*;
4   
5   /**
6    * The Status of the Cell's LifeCycle.
7    * It is Displayed as Color of the Cell.
8    *
9    * @see LifeCycle
10   *
11   * Simulated Evolution.
12   * Artificial Life Simulation of Bacteria Motion depending on DNA.
13   *
14   * © 2006 - 2008 Thomas Woehlke.
15   * http://thomas-woehlke.de/p/simulated-evolution/
16   * @author Thomas Woehlke
17   * Date: 25.08.13
18   * Time: 12:40
19   */
20  public enum LifeCycleStatus {
21  
22      YOUNG(Color.BLUE),
23      YOUNG_AND_FAT(Color.YELLOW),
24      FULL_AGE(Color.RED),
25      HUNGRY(Color.LIGHT_GRAY),
26      OLD(Color.DARK_GRAY),
27      DEAD(Color.BLACK);
28  
29      private Color color;
30  
31      LifeCycleStatus(Color color){
32          this.color=color;
33      }
34  
35      public Color getColor(){
36          return color;
37      }
38  }