279 Commits

Author SHA1 Message Date
Kevin Ruland
e10ff31830 Fix IntegrationTest which was broken when the nose cone / transition volume and area computations were corrected. 2012-05-22 20:50:45 +00:00
Kevin Ruland
953082ea05 Fix BaseComponentDTOTest to point to an image file which actually exists. 2012-05-22 20:40:18 +00:00
Kevin Ruland
254e5670da Fix ComponentCompare and ComponentCompareTest. ComponentCompare needed to not verify the getMotorMounts method which was recently added. ComponentCompareTest needed to extend BaseTestCase so the materials db was initialized. 2012-05-22 20:39:29 +00:00
Kevin Ruland
32ad0c1df6 Change the textual representation of fractional units to use Unicode superscripts and subscripts. Unfortunately, the default fonts included with iText do not have these characters mapped so we needed to switch to a new true type font DejaVu. Added the DejaVuSerif font definition to the resources and modified the pdf writing process to use this font. Because this font is slightly wider, the column headings in the DesignReport had to be made smaller. Finally, had to modify the ExpressionParser to convert the unicode chars to real digits in order to have the expression parser be able to work with this representation. 2012-05-22 18:36:04 +00:00
Kevin Ruland
f42e6fa85a Remove the old FractionUtil class containing the parser since we're using exp4j now. 2012-05-22 18:32:21 +00:00
Sampo Niskanen
9552b2de86 Expression parser updates 2012-05-22 04:11:25 +00:00
Kevin Ruland
bd680c7e14 Added support for Unit 'in/64' which is inches with fractional representation. DoubleModel has one FIXME indicating that we need to reenable min & max in the abstract spinner model. 2012-05-10 02:48:07 +00:00
Kevin Ruland
5cd524e675 Renamed the PresetTest helper class to PresetAssertHelper. This keeps ant unittest from carping about a *Test.java file which contains no tests. 2012-05-08 18:13:52 +00:00
Kevin Ruland
370dfd0e18 Change the InvalidComponentPresetException so it reports all errors found in a preset instead of just the first. Changed all the test cases to ensure the proper errors are reported. 2012-05-06 13:27:30 +00:00
Kevin Ruland
3792528e01 Added LaunchLug, Streamer and Parachute ComponentPresets. 2012-05-01 17:40:55 +00:00
Doug Pedrick
45dae98850 Support for base64 images in .orc; performance improvement to the JAXBContext 2012-04-28 03:16:42 +00:00
Kevin Ruland
3f4f712472 When a component preset for NOSE_CONE or TRANSITION has filled set to true, then the shoulders are assumed to be filled as well. 2012-04-24 21:21:33 +00:00
Kevin Ruland
4731a7345d Change the implementation of Transition getComponentVolume to include the volumes of the shoulders as well as the main body. This means that Transition no longer needs to override getComponentMass since the default implementation of density * volume now works correctly.
Added helper function to RocketComponent to compute the volume of a ring component by computing the "mass" with density of 1.0.
2012-04-24 18:24:22 +00:00
Kevin Ruland
40b28eeb3a Added test cases for computing volumes & masses of nc & transitions with shoulders. 2012-04-23 21:32:04 +00:00
Kevin Ruland
b2d3589104 Fixed problems in computation of SymmetricComponent.integrate found by new unit tests. There were two problems with the previous code. First due to rounding errors, it was possible during the last iteration, the right end point (x+l) was beyond the overall length of the component. This resulted in a zero 0 being used for r2 throwing off the overall computation of volume. The second problem was for hollow components. The test for when to switch from using filled to hollow was incorrect because it was comparing r to thickness. However, thickness is normal to the surface of the component so this test overestimated the total volume of the component.
After making these computation changes, the tests for the density computation in  NoseConePresetTests and TransitionPresetTests could be tightened.
2012-04-23 17:51:50 +00:00
Kevin Ruland
27411395f9 Change nose cone preset to use Aft Outer Diameter, Aft Shoulder Length, and Aft Shoulder Diameter to be consistent with Transitions. Added a bunch of unit tests and correct behavior of the rocketcomponent setters to clear the preset appropriately. Modified the temporary csv data files to use the "aft" specifiers. 2012-04-22 20:26:22 +00:00
Kevin Ruland
d8821bcfdb Changed Unit.toString to use 0.### format for pretty small numbers ( 0.0005 < . < 0.095). Modified the unit test to have explicit tests for rounding to the correct value at the correct position (for round to even rule). 2012-04-20 18:54:47 +00:00
Kevin Ruland
b6307745ca Pulled unit tests for Unit.toString from Unit.main into a real unit test. 2012-04-20 15:45:24 +00:00
Sampo Niskanen
9c6b275e84 Change toLowerCase() to toLowerCase(Locale.ENGLISH) 2012-03-27 11:42:31 +00:00
Sampo Niskanen
8f6fa2121c Remove test dependency on Swing 2012-03-17 20:35:21 +00:00
Sampo Niskanen
dabfa28b9d Fix tests 2012-03-10 21:12:33 +00:00
Sampo Niskanen
7401254c4b motor loading refactoring 2012-01-29 18:13:23 +00:00
Doug Pedrick
b5642117ce DGP - bug fix for MassObject/Shock Cord 2012-01-23 03:39:47 +00:00
Kevin Ruland
c3cfb2e781 Persist the Velocity at launch rod clearance in ork file. Added to column in SimulationPanel. Added computation of Velocity at deployment in FlightData. Persist Velocity at deployment in ork file and added to SimulationPanel and DesignReport.
Added l10n message keys for new column in SimulationPanel.

Added function MathUtil.interpolate which does linear interpolation of intermediate values.  This is used in FlightData for computing Velocity at deployment and Velocity at launch rod clearance.
2012-01-17 02:46:49 +00:00
Kevin Ruland
398f302dfc Change handling of Motor Digests. The computed digest value is now stored as a member variable in the ThrustCurveMotor and avaliable through the getDigest() method. getDigest() was added to the Motor interface. All references to MotorDigest.digestMotor() were removed from the application.
The android db now stores the digest.  Also changed persistance mechanism for delays to store as comma delimited string.

The TestMotorLoader is now failing because the digests have changed.
2012-01-15 02:46:13 +00:00
Kevin Ruland
8d90a540e8 Fix unit test setup which has probably been broken since the ExceptionHandler was refactored to a static object stored in the Applicaiton. 2012-01-15 02:29:34 +00:00
Doug Pedrick
d6c730cfa4 DGP - support for clusters(import and export); added thickness to tube coupler; cleanup and refactoring 2012-01-10 02:13:18 +00:00
Doug Pedrick
453b7629d9 DGP - support for clusters(import and export); added thickness to tube coupler; cleanup and refactoring 2012-01-10 02:04:57 +00:00
Kevin Ruland
0e0fbff6e3 moving to core/ 2012-01-08 02:25:52 +00:00