Electrostatics / APBS_Sphinx

APBS Rewrite
http://www.poissonboltzmann.org
1 stars 3 forks source link

Type Definition #35

Open keith923 opened 8 years ago

keith923 commented 8 years ago

We need a clever way to define types. Currently we define "apbs_atom", which is really just a PDBx atom with the addition of charge and radius, in the Controller init method. Additionally we support a plugin defining a new type by having a magic define_types method. Neither of these things is entirely satisfying because they lack transparency, as well as consistency. Consistency is lacking because of the dissimilar ways that the framework defines types vs the plugins. It's not transparent because it's not clear where a given type is defined, nor is it clear which types are defined.