WmHHooper / visigraph

Automatically exported from code.google.com/p/visigraph
0 stars 0 forks source link

Reflection should be used for in-built functions/generators #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Presently, in-built functions/generators (e.g. CountCrossings, EmptyGraph) are 
hardcoded into FunctionService and GeneratorService, respectively.  Instead, 
reflection should be used to gather all classes that implement their respective 
Bases in each package, then dynamically add them to their respective services.  
This way, to create a new function or generator in the source code, one need 
only create the class in the right package--one less step for non-CS majors to 
worry about.

Original issue reported on code.google.com by 0x24a53...@gmail.com on 23 Oct 2010 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by 0x24a53...@gmail.com on 23 Oct 2010 at 3:26