Skip to content
Snippets Groups Projects
Simulation.java 585 B
Newer Older
  • Learn to ignore specific revisions
  • Guyslain's avatar
    Guyslain committed
    package controller;
    
    import datastruct.Coordinate;
    import javafx.beans.property.ReadOnlyLongProperty;
    import javafx.scene.paint.Color;
    
    public interface Simulation extends Iterable<Coordinate> {
    
        int numberOfColumns();
        int numberOfRows();
    
        void updateToNextGeneration();
    
        void next(Coordinate coordinate);
    
        void copy(Coordinate source, Coordinate destination);
    
        Color getColor(Coordinate coordinate);
    
        void setChangeListener(Coordinate coordinate, Runnable run);
    
        ReadOnlyLongProperty generationNumberProperty();
    
        void reset();
    
        void clear();
    }