/* CVS: $Id: SimpleConstruction.java,v 1.4 2001/03/18 22:12:00 gvijf Exp $ */

package evolution.constructions;

import java.util.*;

/**
 * A meta-instance of a Construction.
 * Used for all constructions which can be completely defined in the propfiles.
 */
public class SimpleConstruction extends Construction {

    /**
     * Create a simple construction.
     */
    public SimpleConstruction(String name, List squares) {
        setName(name);
        setSquares(squares);
    }

    /**
     * The name of this construction.
     */
    public String getName() {
        return name;
    }

    /**
     * The template evolve method.
     */
    public void _evolve(double value) {
    }

    /**
     * Set the name of this construction.
     */
    protected void setName(String name) {
        this.name = name;
    }

    /**
     * The name of this construction.
     */
    private String name;
}
