Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial changes required to change our code to use the new database framework and some cleanup. #99

Merged
merged 4 commits into from
Feb 25, 2019

Conversation

rmar3a
Copy link
Contributor

@rmar3a rmar3a commented Feb 15, 2019

This is just a temporary pull request to show the current direction I am headed in.

Do not merge this pull request yet as it is an incomplete version.

@rmar3a rmar3a requested a review from oschulte February 15, 2019 02:12
@rmar3a rmar3a force-pushed the new-database-framework branch 2 times, most recently from 09b88c1 to 7a148ad Compare February 15, 2019 22:52
- Replaced the mixture of tabs and spaces with spaces.
- Made the white-space for the file consistent.

Note: In general it's probably not a good idea to make white-space
      changes without making actual changes to the code as it makes
      the Git history more messy; however, there aren't too many
      commits for this file yet and most of the commits are just
      changes to the logging mechanism used by the program.
- Removed the helper methods as they didn't seem necessary.  Grouping
  the lines that belong together with comments is clear enough.
@rmar3a rmar3a changed the title Temporary commit just to show current progress. Initial changes required to change our code to use the new database framework and some cleanup. Feb 25, 2019
- Several settings in the configuration file don't appear to be retrieved
  by our code (not used), so I am removing them from the configuration
  file to increase readability.
@rmar3a
Copy link
Contributor Author

rmar3a commented Feb 25, 2019

Okay, I think this should be good enough for now. We can go over the changes in today's meeting and hopefully merge it in 🙂

@rmar3a
Copy link
Contributor Author

rmar3a commented Feb 25, 2019

Note: I think the changes in this pull request are a step towards addressing this issue on GitHub: #32

…o it.

- Initial code for the new database framework that is an attempt to
  abstract the database logic from the Bayesian Network learning logic.
- Created a new FactorBaseDataBase interface so that other databases
  can be supported in the future more easily.
- Created a custom DataBaseException that can be thrown by any database
  technology that implements the FactorBaseDataBase interface.
- All the logic found in MakeSetup.java was moved into
  MySQLFactorBaseDataBase.java since the logic makes more sense
  to be in this file, i.e. it manipulates the given MySQL database,
  and MakeSetup.java was moved into a new subdirectory (called
  "refactored") of the obsolete directory.
- Updated RunBB.java to use the new database framework for the database
  setup logic portion of the process.
@oschulte oschulte merged commit a2faf0f into master Feb 25, 2019
@rmar3a rmar3a deleted the new-database-framework branch February 26, 2019 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants