Automatically collect defined Particle classes in model definitions

« spartacus project page

Currently, Particle classes defined in a model have to be explicitly stated in particles = [P,Q,R,S]. The model loader could collect this information automatically by collecting all module elements that are subclasses of Particle.

Details

Id: 8c5196e79ba1bd02364e25868907e39decf1a0bd
Type: feature
Creation time: 2011-11-17 10:54 GMT
Creator: Harold Fellermann <dadapapa@...>
Release: unassigned
Component: spartacus
Status: closed: fixed fixed

Issue log

2011-11-18 14:30 GMT Harold Fellermann <dadapapa@...> closed with disposition fixed
Simulation.__init__ now automatically collects Particle subclasses from the model definition if no attribute particles is provided.
2011-11-17 10:54 GMT Harold Fellermann <dadapapa@...> created