moving to core/
[debian/openrocket] / core / src / net / sf / openrocket / database / MotorDatabase.java
1 package net.sf.openrocket.database;\r
2 \r
3 import java.util.List;\r
4 \r
5 import net.sf.openrocket.motor.Motor;\r
6 \r
7 public interface MotorDatabase {\r
8 \r
9         /**\r
10          * Return all motors in the database matching a search criteria.  Any search criteria that\r
11          * is null or NaN is ignored.\r
12          * \r
13          * @param type                  the motor type, or null.\r
14          * @param manufacturer  the manufacturer, or null.\r
15          * @param designation   the designation, or null.\r
16          * @param diameter              the diameter, or NaN.\r
17          * @param length                the length, or NaN.\r
18          * @return                              a list of all the matching motors.\r
19          */\r
20         public List<? extends Motor> findMotors(Motor.Type type,\r
21                         String manufacturer, String designation, double diameter,\r
22                         double length);\r
23 \r
24 }