Mercurial > hg > amuse
comparison base/generics.lisp @ 169:4a0e15e2829a
identifier becomes composition-identifier. Add constituent-identifier and get-constituents
darcs-hash:20080103154317-40ec0-8398433cd150794de77cc9206296c82902df930b.gz
author | d.lewis <d.lewis@gold.ac.uk> |
---|---|
date | Thu, 03 Jan 2008 15:43:17 +0000 |
parents | 136ec5516cc4 |
children | 7e8d95d00267 |
comparison
equal
deleted
inserted
replaced
168:f1d0ea63581c | 169:4a0e15e2829a |
---|---|
3 ;;; Pulling compositions from the database | 3 ;;; Pulling compositions from the database |
4 | 4 |
5 (defgeneric get-composition (identifier) | 5 (defgeneric get-composition (identifier) |
6 (:documentation "Returns a composition of type dependant on | 6 (:documentation "Returns a composition of type dependant on |
7 identifier")) | 7 identifier")) |
8 | |
9 (defgeneric get-constituents (constituent-identifier) | |
10 (:method ((id composition-identifier)) (list (get-composition id))) | |
11 (:documentation "Returns a list of constituents matching the | |
12 criteria in identifier")) | |
8 | 13 |
9 (defgeneric monody (object) | 14 (defgeneric monody (object) |
10 (:documentation "Returns a monody.")) | 15 (:documentation "Returns a monody.")) |
11 (defgeneric ensure-monody (object) | 16 (defgeneric ensure-monody (object) |
12 (:documentation "Returns a generalised boolean.")) | 17 (:documentation "Returns a generalised boolean.")) |