1 package net.sf.openrocket.optimization.general;
4 * A storage of cached values of a function. The purpose of this class is to
5 * cache function values between optimization runs. Subinterfaces may provide
6 * additional functionality.
8 * @author Sampo Niskanen <sampo.niskanen@iki.fi>
10 public interface FunctionCache {
13 * Compute and return the value of the function at the specified point.
15 * @param point the point at which to evaluate.
16 * @return the value of the function at that point.
18 public double getValue(Point point);
23 public void clearCache();
26 * Return the function that is evaluated by this cache implementation.
28 * @return the function that is being evaluated.
30 public Function getFunction();
33 * Set the function that is evaluated by this cache implementation.
35 * @param function the function that is being evaluated.
37 public void setFunction(Function function);