1 package net.sf.openrocket.optimization.rocketoptimization;
3 import net.sf.openrocket.document.Simulation;
6 * A parameter of a rocket or simulation that can be optimized
7 * (for example max. altitude or velocity).
9 * @author Sampo Niskanen <sampo.niskanen@iki.fi>
11 public interface RocketOptimizationParameter {
14 * Return the label name for this optimization parameter.
16 * @return the name for the optimization parameter (e.g. "Flight altitude")
18 public String getName();
21 * Compute the value for this optimization parameter for the simulation.
22 * The return value can be any double value.
24 * @param simulation the simulation
25 * @return the parameter value (any double value)
27 public double computeValue(Simulation simulation);