Commit Graph

  • 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. Kevin Ruland 2012-05-06 13:27:30 +00:00
  • a32bfe7366 Fixes to number validation and component type combo box selectability. Doug Pedrick 2012-05-06 00:42:32 +00:00
  • 3d73e9d9eb Initial GUI for editing and saving component presets. See ComponentPresetPanel.main() for standalone execution. Doug Pedrick 2012-05-05 02:23:14 +00:00
  • 0a199d73c3 Implement MaterialHolder, a container for the Material objects loaded during processing of rocksim csv files. Added logic to streamer and parachutes so it can produce a SURFACE material if the csv file specified a BULK material and thickness. Kevin Ruland 2012-05-04 20:11:33 +00:00
  • 4eea3292b6 Sort the collections prior to serialization since that makes the output a little easier to search. Kevin Ruland 2012-05-04 20:08:47 +00:00
  • 9661b47562 Don't use the default material database when loading componentpreset files. Kevin Ruland 2012-05-04 20:07:20 +00:00
  • 3792528e01 Added LaunchLug, Streamer and Parachute ComponentPresets. Kevin Ruland 2012-05-01 17:40:55 +00:00
  • 6f653199f2 Make initializeLogging method public since it is a rather nice function to set up logging infrastructure. Kevin Ruland 2012-05-01 17:25:10 +00:00
  • 2de2fb8a65 Move the component preset selection box outside of the first tab and under the component name. Adjusted the MigLayout parameters to the labels align. Kevin Ruland 2012-05-01 17:18:41 +00:00
  • fea3e6e61a Fix giantleaprocketry's TCData.csv, added it to the build.xml and committed the generated orc file. Kevin Ruland 2012-04-29 02:43:55 +00:00
  • 45dae98850 Support for base64 images in .orc; performance improvement to the JAXBContext Doug Pedrick 2012-04-28 03:16:42 +00:00
  • df7ab36b5a Javadoc fix Doug Pedrick 2012-04-27 22:08:58 +00:00
  • ca52cc6612 Rebuilt orc files with new parser and orc format. Kevin Ruland 2012-04-27 20:12:54 +00:00
  • 42c74f71a1 Variety of changes to the orc file processing. Added unit annotations to all lengths and masses so a vendor can hand craft a file in units other than MKS system. Fixed a bug in the nose cone where the outerdiameter and shoulder diameter were flipped. Kevin Ruland 2012-04-27 20:09:27 +00:00
  • 573706323f Added special processing for rocksim csv component files when the mass is specified as 0. In this case, we "reject" the mass and assume it is to be computed based on density. Kevin Ruland 2012-04-27 19:06:54 +00:00
  • 1acc99b163 Switch component preset loading from using the temporary csv format to orc formatted files. Added orc formatted files to the resources/datafiles/presets for all vendors which have approved inclusion of their files in OpenRocket. Removed the old csv parser and the hand crafted csv files for semroc presets. Kevin Ruland 2012-04-26 21:14:38 +00:00
  • 9ea9c4b53b Added build target which translates rocksim component directories in resources-src into ORC format in resources. Kevin Ruland 2012-04-26 21:12:35 +00:00
  • 2827046b15 Refactored the rocksim csv component parser system to allow for more flexible column definitions. Pulled each type of file parser into its own file. Use template pattern in the RocksimComponentFileLoader hierarchy. Change the OpenRocketComponentSaver (Jaxb driver code) to throw exceptions instead of trying to handle them on its own. Kevin Ruland 2012-04-26 21:10:34 +00:00
  • 42df7deb5b Updated cz translations Boris du Reau 2012-04-26 20:50:21 +00:00
  • f2e7cb58ab Added convience method UnitGroup.getUnit( String ) which returns the Unit corresponding to the abbreviation. Throws IllegalArgumentException if the requested unit does not exist. Kevin Ruland 2012-04-26 18:20:10 +00:00
  • b990a5acb2 Added optional Thickness element/property. Kevin Ruland 2012-04-26 18:18:55 +00:00
  • c71049a88d Added optional Thickness element/property. Kevin Ruland 2012-04-26 18:18:35 +00:00
  • 85fe891980 Added filled property. Made Filled and Mass optional by using objects instead of primitives. Changed the serialization process so only properties set in the ComponentPreset are serialized. Change the deserialization process so if properties are not specified in the xml file, they are not assigned. Kevin Ruland 2012-04-26 18:18:00 +00:00
  • 727e388482 Removed performance rocketry rocksim component files since they no longer sell retail. Kevin Ruland 2012-04-26 01:57:04 +00:00
  • 517207857b Cleanup Doug Pedrick 2012-04-25 20:59:35 +00:00
  • 619e17b40f Fix to invalid file. Doug Pedrick 2012-04-25 02:40:31 +00:00
  • 250a92dbe9 unmarshal XML (*.orc) to ComponentPresets. Doug Pedrick 2012-04-25 02:26:13 +00:00
  • 93c7ea784c Removed FIXME. Kevin Ruland 2012-04-24 21:32:32 +00:00
  • 3b6cf7ea5d Removed FIXME since this seems to be the best place for it. Kevin Ruland 2012-04-24 21:32:12 +00:00
  • 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. Kevin Ruland 2012-04-24 21:21:33 +00:00
  • d33792b5fc Removed fixme and settled on .001 for epsilon. Kevin Ruland 2012-04-24 19:47:33 +00:00
  • c7fdf4d4bf Get rid of FIXME since it had been fixed. Kevin Ruland 2012-04-24 19:19:55 +00:00
  • 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. Kevin Ruland 2012-04-24 18:24:22 +00:00
  • 40b28eeb3a Added test cases for computing volumes & masses of nc & transitions with shoulders. Kevin Ruland 2012-04-23 21:32:04 +00:00
  • 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. Kevin Ruland 2012-04-23 17:51:50 +00:00
  • 9a7190f139 better logging support Doug Pedrick 2012-04-23 14:28:06 +00:00
  • 4f82e9e2b4 Initial XML generating code for .orc format. Doug Pedrick 2012-04-23 14:26:05 +00:00
  • f300023ead Removed redundant tube coupler rows from the body tube file (they were already in the tube coupler file). Doug Pedrick 2012-04-22 21:17:42 +00:00
  • bdd54e07d7 Tube Coupler Description Doug Pedrick 2012-04-22 20:57:56 +00:00
  • 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. Kevin Ruland 2012-04-22 20:26:22 +00:00
  • 0f3d052bac Minor cleanup Doug Pedrick 2012-04-22 16:20:08 +00:00
  • 6544718850 Added printing support for Component Preset in Parts Detail Report. Doug Pedrick 2012-04-22 14:55:29 +00:00
  • f75b03184a Initial Rocksim CSV parsing support for materials and components. Doug Pedrick 2012-04-22 03:11:13 +00:00
  • 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). Kevin Ruland 2012-04-20 18:54:47 +00:00
  • b6307745ca Pulled unit tests for Unit.toString from Unit.main into a real unit test. Kevin Ruland 2012-04-20 15:45:24 +00:00
  • b7608c3729 Fix computation of density for BULK_HEADs by using a more general way to compute the volume of a cylinder. Kevin Ruland 2012-04-20 15:42:08 +00:00
  • b782641e23 Added Czech locale Boris du Reau 2012-04-20 06:41:11 +00:00
  • 263c10baad New translations Boris du Reau 2012-04-20 06:39:25 +00:00
  • 1c411548a7 Support for opening recovery device on stage separation Sampo Niskanen 2012-04-19 17:24:03 +00:00
  • 74cee3dbbe Added show all compatible types to Chooser. Revised logic for showing match fore diameter check box. Kevin Ruland 2012-04-19 16:18:23 +00:00
  • a1f07531fa Added alternative query arguments for listForTypes which takes a list instead of array. Kevin Ruland 2012-04-19 16:04:33 +00:00
  • 6c67c2266a Change implementation of compatible types so they can be declared. Because of the circular references, they cannot be declared in constructor arguments. Kevin Ruland 2012-04-19 16:03:48 +00:00
  • 0ec9a1531f Mark bulkheads as filled. Kevin Ruland 2012-04-19 16:02:30 +00:00
  • 21a835ddd1 Hack for working around unknown materials. Need to address the FIXME Kevin Ruland 2012-04-18 19:48:56 +00:00
  • ce543e485e Added semroc centering rings and engine blocks. Kevin Ruland 2012-04-18 19:46:36 +00:00
  • 5808c7b703 Added centering rings and engine blocks presets Kevin Ruland 2012-04-18 19:43:28 +00:00
  • c72e51eb6b InnerTubes use ComponentPresets BODY_TUBE. Kevin Ruland 2012-04-18 19:41:33 +00:00
  • 94e8b3460b Made the ComponentPresetChooserDialog much more cool by reworking the table. User can hide and unhide columns, reorder columns, and change units by using a right click context menu in the header bar. Kevin Ruland 2012-04-18 17:43:09 +00:00
  • 64297d8ee7 push epsilon down to .1 mm. Kevin Ruland 2012-04-16 20:22:39 +00:00
  • 1184c698be Added support for TubeCoupler. Kevin Ruland 2012-04-16 20:17:38 +00:00
  • 5d6da040b2 Implemented support for bulk heads. Move setting Length from BodyComponent to RocketComponent (since that is where length is defined). Added Materials handling to StructuralComponent. Added OuterDiameter and InnerDiameter to RadiusRingComponent. Kevin Ruland 2012-04-16 19:31:03 +00:00
  • d1c83cb9b4 Refactored the ComponentPreset.create method into the ComponentPresetFactory object to make code maintenance easier. Added support for Bulk heads. Kevin Ruland 2012-04-16 19:18:25 +00:00
  • f69ed1ea2f Added filter check boxes to limit the displayed components based on fitting with the previous or next component. Kevin Ruland 2012-04-16 19:17:17 +00:00
  • 6891566799 Use a case insensitive regex for matching filenames. Kevin Ruland 2012-04-16 19:14:29 +00:00
  • 9d467dafba Implement Transition preset components. Kevin Ruland 2012-04-13 19:39:33 +00:00
  • 08d1fccf66 Relocate the preset files from datafiles/ to datafiles/presets/. Kevin Ruland 2012-04-13 19:38:23 +00:00
  • 07218ba729 Move the preset drop down into RocketComponentConfig materials section. Only display it if the component has a non-null getPresetType(). Kevin Ruland 2012-04-13 19:37:16 +00:00
  • 0adf3a2734 Added debug log message for each file loaded. Kevin Ruland 2012-04-13 19:35:53 +00:00
  • 255c6771dd Don't support a CG override in components. When using a nose conet preset, compute the density from the mass and use this in conjuction with the material. Kevin Ruland 2012-04-13 01:57:46 +00:00
  • 66aa9edbef When loading from preset use the direct assignment for material instead of the setter method. Kevin Ruland 2012-04-13 01:56:06 +00:00
  • bd13b85927 updated Spanish translations Boris du Reau 2012-04-12 20:45:35 +00:00
  • 1a7a658876 Make the ComponentPresetChooserDialog more forgiving about presets which are missing parameters. Kevin Ruland 2012-04-12 19:22:07 +00:00
  • a86e4c3f0c Move the parsetFromString method from TypedKey to ColumnDefinition since in general the parsing mechanism is more dependent on the file representation than the Type in the TypedKey. Kevin Ruland 2012-04-12 16:51:23 +00:00
  • 3a2145e9de Don't use setThickness or setFilled from the loadFromPreset since these have side effects of clearing the preset. Kevin Ruland 2012-04-12 16:50:18 +00:00
  • b850d6615f First cut at making component presets work for nose cones. Kevin Ruland 2012-04-12 05:55:07 +00:00
  • 1ce5e0db9c Fixed bug in loader which caused it to load only a single csv file. Kevin Ruland 2012-04-12 05:10:43 +00:00
  • 2e66939727 Added a filter on all columns. Uses case insensitive match with unicode folding so it should work fine in Turkey. Kevin Ruland 2012-04-12 04:52:32 +00:00
  • 188173ca6d Honor the sorting during selection. Kevin Ruland 2012-04-12 04:13:40 +00:00
  • ef8499e6a8 Fix the problem where the PresetModel drop down was not closing when the ComponentPresetChooserDialog is opened. Kevin Ruland 2012-04-12 04:12:45 +00:00
  • f92034db56 Moved the ComponentPresetChooserDialog from the BodyTubeConfig temporary button to the PresetModel drop down. Kevin Ruland 2012-04-12 02:35:41 +00:00
  • a64c9e70a6 Added rocksim component csv files pulled from various vendor websites and YORF. Kevin Ruland 2012-04-11 18:30:14 +00:00
  • edcd0008b1 Added persistence of ComponentPresets in the ORK file. Bumped ORK file version number to 1.5 when saving designs containing ComponentPresets. Added a digest string to ComponentPreset which is used during reading and writing ORK files to verify the correct ComponentPreset is used. Kevin Ruland 2012-04-11 17:36:50 +00:00
  • 68eaf21ef0 DGP - fix to honor launch conditions in printed simulations Doug Pedrick 2012-04-11 13:00:17 +00:00
  • acf3505cec DGP - fix to honor launch conditions in printed simulations Doug Pedrick 2012-04-11 12:58:31 +00:00
  • bf0e3d978a updated translations Boris du Reau 2012-04-10 18:33:58 +00:00
  • 2ade1f3ac7 Add debugging for NPE in GeneralOptimizationDialog Sampo Niskanen 2012-04-09 08:20:34 +00:00
  • 898c024cb7 Fix bug in simulation runner ThreadPoolExecutor Sampo Niskanen 2012-04-09 07:51:42 +00:00
  • 7902b9e3c5 Fix run script Sampo Niskanen 2012-04-08 16:09:20 +00:00
  • 3a1fe0332d Enhance component tree tooltip Sampo Niskanen 2012-04-08 16:08:31 +00:00
  • d8a4372ecd Make ComponentPresetDao and interface with implementation in ComponentPresetDatabase. ComponentPresetDatabase extends Database so it can support listeners. PresetModel implements DatabaseListener so it updates when the user changes the favorite settings. Kevin Ruland 2012-04-08 02:02:46 +00:00
  • a5d5e3d500 Implement persistence of ComponentPreset favorites to preferences. Implement favorite check box in ComponentPresetChooserDialog. Added getPresetType to RocketComponent which returns the ComponentPreset.Type of the most compatible presets. Kevin Ruland 2012-04-04 21:29:33 +00:00
  • 26f8fdf63b Added table contents to ComponentPresetChooserDialog. Kevin Ruland 2012-04-03 03:39:11 +00:00
  • 85f939b6d8 Add units. Kevin Ruland 2012-04-03 03:38:14 +00:00
  • b1d040a964 Fix dimentions on last record in table. Kevin Ruland 2012-04-03 03:36:06 +00:00
  • 2da4c7df98 Remove the Daos interface and have the Application hold the ComponentPresetDao itself. This was an unnecessary layer of abstraction. Kevin Ruland 2012-04-03 02:05:17 +00:00
  • addca0b4b8 Revamp construction of ComponentPresets. Validation and data munging done in the ComponentPreset.create() factory method. Kevin Ruland 2012-04-02 20:06:47 +00:00
  • 2c793422b5 Added toString for debugging and error logging and Cloneable. Kevin Ruland 2012-04-02 20:05:53 +00:00
  • 340bf068ce Added support for Manufacturer and ComponentPreset.Type. Kevin Ruland 2012-04-02 20:05:18 +00:00
  • 871ff23523 Preset dialog Sampo Niskanen 2012-04-02 14:23:39 +00:00
  • 1cffc8b58c Added a label to the preset selector. Kevin Ruland 2012-04-02 01:40:22 +00:00