-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Austin-Scott/Experimental2
Added features for version 1.2
- Loading branch information
Showing
9 changed files
with
350 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<mxfile userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0" version="8.5.7" editor="www.draw.io" type="device"><diagram id="65d115fb-d40e-e384-cb1e-b3a763ab18a7" name="Page-1">7V1tk5s2EP41nmm/dHg1+GPsS9JO75JMnZm2H2XQGRqMPELOnfPrK0Cy4SRiOwYJ53S5mRxCvGl3H+2zu4KJu9g8v8dgmzygGGYTx4qfJ+7dxHFsz5nS/8qWfd0SWnbdsMZpzDodG5bpN8gaLda6S2NYtDoShDKSbtuNEcpzGJFWG8AYPbW7PaKsfdUtWEOhYRmBTGz9O41Jwp7Ct47tv8N0nfAr2xbbswLRlzVGu5xdb+K4j9VPvXsD+LlY/yIBMXpqNLlvJ+4CI0TqvzbPC5iVY8uHrT7uXcfew31jmJNzDnDqA76CbMcefY5QQSBmt0f2fEiKp3STgZxuzR9RTpZsj0W3oyTN4nuwR7vymgWhY8C35gnC6TfaH2R0l00b6G5MmMSpmtCzpVm2QBnC1XVcaJX/WkcuyzOya2FY0GM/8Qe0XzQ9gOdWx3tQEH6XKMvAtkhX1X2XB24AXqf5HBGCNqwTf8p37ZtiMnTnIEvXOW2L6LXoILGxqJ/G9ug2G0+ICXzulIl9kDS1IIg2kOA97cIO8H1mPQfjqTefjppoz1hb0tRCy2MWwLR/fTj1UQPoH0wJ5AoxFRQiSgD+xf914r6h7Uw7/rgT9SMB2/JP+pwkBdlf1CxBvi73zgnasuHN4CMXB2Y3Xv694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wNSIwPJA7Ln1SgROAYlFCBEkFH3EIFSoiFZHeAwBodYjD+CgADC3UOQFKxOhgsiKkiAwtDwIKrj1uIoacX2cBdHiU3kgw0EFEdIaszHAwizBI4NfxC3xK4aShI9DbThGw2a6YJu0LAvecJA0k9LthnCMSiuZg84URNntDmb0DpfjWFHDjdHlYDBeekAAaM6r2+HMDlOcKgY2WhhhxhYF5PoSPsH+gL+4f66wiMa36ha34CMFTmCUOR2Zk84fCAEeorKghEwKjcCY/nADCgnvQSYipo41PcAl6ozBQGBi+0OBj68CIUYzciA/mIVykx3sUtoIXSlGFoCguUBP5CfYUFvBi6i4CwANYDMJmBGwEIlcnDUEw4G4AYAiAcfQAh5ofFwsTlbrvNUhOhuBGIUJk8DM0aQzUQcXqN4VAQMevmGMfiRBbJvJGXDxigqI7g3qEKoJgZsqEEKGYayYaYDm2RjQWGTw+wTHUYsnETAOFYCoOXoXlviRpPQl86dOYJEr3JMiSe1tVShjQTPe46KyRai6lCmqipQnJeVCF5kijNcF/ImXV8IocnDet0oXlZgd5CpNnFhUiDvdV+ZgqRzp9s+8sTzjTOvGJdgVlgOH7//ARmqPxQzkysLTCIMQR/11dMcPhmZNdKovpLWm+iyp81jsQNIITKb+XYlgnxKYEIZqeaMEKU6U1y+EDC4bsctN45vG2JmXW2TFP6IndD5BUReY+nKRh+TiWvHZQCKFen67SiOxlvXik2DhbPLHcUNN625F8IMVPusDye2amm+bd7zeGxYOceRcDQ+NE46adAQyWPty2TZ1PkpesL99m29XN46fwlq00vvRN+r3XT6SZGiDT2vcdgmzygGJY9/gc=</diagram></mxfile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Austin Scott | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
# SpaceX-Simulation | ||
Creates data to populate a simple database for my Databases class. First it uses [Curl](https://curl.haxx.se/) to download a complete SpaceX mission manifest from [this open source REST API](https://github.com/r-spacex/SpaceX-API). Then it parses the downloaded JSON data using the [RapidJSON Library](http://rapidjson.org/). Afterwards, it performs a simulation to generate hypothetical future launch data. Many variables are simulated such as maximum reflights of cores, payload masses limited to launch configuration limits for any destination orbit, and dates that follow real world calendar rules such as everything from months having the correct number of days to properly handling leap years. Finally, the program outputs the conglomeration of real world and simulated data into a database by either directly connecting to the database or by printing out the results into a text file that can be read into the database manually. | ||
|
||
## Dependencies | ||
## Entity Relation Diagram | ||
![entityrelationdiagram](https://user-images.githubusercontent.com/12504656/38458013-021c88a4-3a5e-11e8-926c-0671244fb9c2.png) | ||
|
||
### Dependencies | ||
* Boost 1.66.0 installed to "C:\Program Files\boost_1_66_0" | ||
* MySQL Connector C++ 1.1.9 installed to "C:\Program Files\MySQL\MySQL Connector C++ 1.1.9" | ||
* RapidJSON (Included with repository) | ||
|
||
Once built, you must have the command line utility Curl downloaded, installed, and added to your PATH variable for the program to collect any real world data. If you don't install Curl the program will run just fine but all the data outputed will come only from the simulation. | ||
|
||
### Command line arguments | ||
This program has a couple of optional command line arguments to be used. | ||
* -count can be used to specify how many missions you want the program to generate. The following example tells the program to generate 2500 missions: "SpaceX-Simulation -count 2500" | ||
* -database can be used to connect directly to the database where you want the results to be stored. Immediately following this switch you must specify the address of the database, the schema to be used, the username, and the password exactly in that order. Here is an example usage: "SpaceX-Simulation -database tcp://127.0.0.1:3306 db1 root password" | ||
This program has a handful of optional command line arguments to be used. | ||
~~~~ | ||
Usage: | ||
SpaceX-Simulation [options] | ||
Options: | ||
-h | --help #Prints help text and aborts program | ||
-count <number_of_missions_to_generate> #Sets the number of simulated missions to generate | ||
-skip #Skip manifest download. Only performs simulation. | ||
-database <address> <schema> <username> <password> #Loads data directly into the specified database | ||
-soft #If loading into database, drop only tuples not tables | ||
-exclusive #If loading into database, do so exclusively. Skip txt files. | ||
~~~~ | ||
|
||
### Goals for future versions | ||
* Add more quantitative attributes to the tables | ||
* Add more diversity to all the generated descriptions | ||
* Add BFR colony missions to the simulation | ||
* Add more payload types to reduce repitition in the generated missions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.