pclarke91 / rl-viz

Automatically exported from code.google.com/p/rl-viz
Apache License 2.0
0 stars 0 forks source link

Environment/Agent Auto Discovery #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems like it should be not too hard to iterate over every class defined
in a jar, and check if it implements (instanceof) either Environment or
Agent.  And I guess you'd want to make sure it's not abstract.

But, if these two conditions match, maybe it should be exposed to the list
via the auto-loader.

This could be pretty simple and would make it easier to distribute
variations on agents and environments.  A bunch of related agents could all
live in the same jar, and be built together, as a unit.

Original issue reported on code.google.com by brian.ta...@gmail.com on 19 Dec 2007 at 10:59

GoogleCodeExporter commented 9 years ago
3 days of my life later this is done. Lots of fancyness added in the form of 
JarGrabbers and ClassExtractors.

Original comment by rad...@gmail.com on 18 Jan 2008 at 12:22