diff 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
line wrap: on
line diff
--- a/base/generics.lisp	Thu Jan 03 13:45:32 2008 +0000
+++ b/base/generics.lisp	Thu Jan 03 15:43:17 2008 +0000
@@ -6,6 +6,11 @@
   (:documentation "Returns a composition of type dependant on
   identifier"))
 
+(defgeneric get-constituents (constituent-identifier)
+  (:method ((id composition-identifier)) (list (get-composition id)))
+  (:documentation "Returns a list of constituents matching the
+  criteria in identifier"))
+
 (defgeneric monody (object)
   (:documentation "Returns a monody."))
 (defgeneric ensure-monody (object)