org.drools.examples.conway.CellState Maven / Gradle / Ivy
The newest version!
package org.drools.examples.conway;
/**
* CellState
enumerates all of the valid states that a Cell may
* be in.
*
* @author Jeff Brown
* @see Cell
* @see CellGridImpl
*/
public class CellState {
public static final CellState LIVE = new CellState( "LIVE" );
public static final CellState DEAD = new CellState( "DEAD" );
private final String name;
private CellState(final String name) {
this.name = name;
}
public String toString() {
return "CellState: " + this.name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy