Mercurial > hg > amuse
diff base/database/charm/generics.lisp @ 318:c4e792b9b898
Add some ideas for charm constituents.
Not particularly useful in its own right, but contains some possibly
useful ideas related to the generalisation of db-compositions.
author | Jamie Forth <j.forth@gold.ac.uk> |
---|---|
date | Thu, 30 Sep 2010 15:35:15 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/base/database/charm/generics.lisp Thu Sep 30 15:35:15 2010 +0100 @@ -0,0 +1,15 @@ +(cl:in-package #:amuse-charm) + +(defgeneric id (object) + (:documentation "Generic id function.")) + +(defgeneric make-charm-parent-identifier (implementation-package id)) + +(defgeneric make-charm-particle-identifier (implementation-package id)) + +;; (defgeneric %cache-charm-particles (implementation-package +;; charm-constituent)) + +(defgeneric get-charm-particles (constituent-identifier ids parent)) + +(defgeneric get-charm-parent (constituent-identifier))