Modified ThrustCurveMotor to ensure all fields have sane default values

Created MotorRowFilterTest unit test
This commit is contained in:
JoePfeiffer 2020-04-16 11:36:47 -06:00
parent 7745563c0d
commit ede47666f9
2 changed files with 12 additions and 12 deletions

View File

@ -30,21 +30,21 @@ public class ThrustCurveMotor implements Motor, Comparable<ThrustCurveMotor>, Se
private static final DesignationComparator DESIGNATION_COMPARATOR = new DesignationComparator(); private static final DesignationComparator DESIGNATION_COMPARATOR = new DesignationComparator();
private String digest; private String digest = "";
private Manufacturer manufacturer; private Manufacturer manufacturer = Manufacturer.getManufacturer("UNKNOWN");
private String designation; private String designation = "";
private String description; private String description = "";
private Motor.Type type; private Motor.Type type = Motor.Type.UNKNOWN;
private double[] delays; private double[] delays = {};
private double diameter; private double diameter;
private double length; private double length;
private double[] time; private double[] time = {};
private double[] thrust; private double[] thrust = {};
private Coordinate[] cg; private Coordinate[] cg = {};
private String caseInfo; private String caseInfo = "";
private String propellantInfo; private String propellantInfo = "";
private double initialMass; private double initialMass;
private double maxThrust; private double maxThrust;