Skip to content

Commit

Permalink
fixed #32 Feature: stop controller if population = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswoehlke committed Dec 20, 2022
1 parent 3a981aa commit 673ab43
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
@Log4j2
@Getter
public class SimulatedEvolutionTab extends JFrame implements MenuContainer,
WindowListener, ActionListener, Serializable, ImageObserver, Accessible {
WindowListener, ActionListener, ImageObserver, Accessible, Serializable {

static final long serialVersionUID = 242L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import javax.swing.*;
import java.awt.*;
import java.io.Serializable;


/**
Expand All @@ -25,7 +26,7 @@
*/
@Log4j2
@Getter
public class SimulatedEvolutionCanvas extends JComponent {
public class SimulatedEvolutionCanvas extends JComponent implements Serializable {

static final long serialVersionUID = 242L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
import org.woehlke.computer.kurzweil.simulated.evolution.application.layouts.BoxLayoutVertical;

import javax.swing.*;
import java.io.Serializable;

/**
* @see PopulationStatisticsElementsPanelLifeCycle
* @see PopulationStatisticsElementsPanelCounted
*/
public class CensusPanel extends JPanel {
public class CensusPanel extends JPanel implements Serializable {

static final long serialVersionUID = 242L;

/**
* Display how many Cells per LifeCycleStatus and how many Cells in the whole Population for this Generation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
import org.woehlke.computer.kurzweil.simulated.evolution.config.ComputerKurzweilProperties;

import javax.swing.*;
import java.io.Serializable;

public class CopyrightLabel extends JLabel {
public class CopyrightLabel extends JLabel implements Serializable {

static final long serialVersionUID = 242L;

public CopyrightLabel(ComputerKurzweilProperties computerKurzweilProperties) {
super(computerKurzweilProperties.getSimulatedevolution().getView().getCopyright(), CENTER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
import org.woehlke.computer.kurzweil.simulated.evolution.config.ComputerKurzweilProperties;

import javax.swing.*;
import java.io.Serializable;

public class SubTitleLabel extends JLabel {
public class SubTitleLabel extends JLabel implements Serializable {

static final long serialVersionUID = 242L;

public SubTitleLabel(ComputerKurzweilProperties computerKurzweilProperties) {
super(computerKurzweilProperties.getSimulatedevolution().getView().getSubtitle(), CENTER);
Expand Down

0 comments on commit 673ab43

Please sign in to comment.