Added new logos for the translations
[debian/openrocket] / src / net / sf / openrocket / optimization / rocketoptimization / SimulationDomain.java
1 package net.sf.openrocket.optimization.rocketoptimization;
2
3 import net.sf.openrocket.document.Simulation;
4
5 /**
6  * An interface defining a function domain which limits allowed function values.
7  * 
8  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
9  */
10 public interface SimulationDomain {
11         
12         /**
13          * Return a value determining whether the simulation is within the domain limits
14          * of an optimization process.  If the returned value is negative or zero, the
15          * simulation is within the domain; if the value is positive, the returned value
16          * is an indication of how far from the domain the value is; if the returned value
17          * is NaN, the simulation is outside of the domain.
18          * 
19          * @param simulation    the simulation to check.
20          * @return                              a negative value or zero if the simulation is in the domain;
21          *                                              a positive value or NaN if not.
22          */
23         public double getDistanceToDomain(Simulation simulation);
24         
25 }