EPiCS/CamSim — pull request #1 by hxcaine (2012-11-05 12:38:24+00:00)
Title: Updates to structure

I have made various structural changes to the CamSim code in my fork which I think can be pulled back to CamSim without changing functionality.

Specifically, I have:
- Moved folders into a common 'src' folder, as is the convention
- Added Eclipse project files which do not have hard-coded paths, allowing anybody to check them out and have a correct project setup
- Made the ActiveAINodeMulti a parent class, with PassiveAINodeMulti as a child instead of the previous state of having a large base of duplicated code. Passive now overrides the methods it needs to change in order to be 'passive' without duplicating code
- Left some code behind which could probably be removed and deferred to the Active parent class, just in case
- Removed hard-coded references to AINodes and replaced them with a dynamic loading mechanism. Now, scenario files must specify a fully-qualified class name and the AINode will be loaded dynamically at runtime (this also allows AINodes contained within foreign JARs to be loaded if they are on the classpath)
- Removed lots of commented-out code which looked old enough not to be required any more
- Added some comments, fixed some formatting, etc.

Note that I have added a HistoricalUnweightedAINode class and a scenario_hist_unweighted.xml file which are specific to my project and are still fairly untested, so it's probably best not to pull those into CamSim for now. Also note that the run.sh file currently refers to scenario_hist_unweighted.xml as a default scenario file if none is specified.

Happy to answer any questions if anything is unclear.