-(defclass ucon_freq (umlsclass)
- ((ucon :type ucon :initarg :ucon :reader ucon)
- (freq :type fixnum :initarg :freq :accessor freq))
- (:metaclass kmrcl:ml-class)
- (:default-initargs :cui nil :pfstr nil :freq nil)
- (:title "Concept and Count")
- (:fields (cui :string fmt-cui) (freq :fixnum) (pfstr :cdata))
- (:ref-fields (cui find-ucon-cui))
- (:documentation "Composite object of ucon/freq"))
-
-(defun ucon_freq-cui (c)
- (cui (ucon c)))
-
-(defun ucon_freq-pfstr (c)
- (pfstr (ucon c)))
-
-(defclass ustr_freq (umlsclass)
- ((ustr :type ustr :initarg :ustr :reader ustr)
- (freq :type fixnum :initarg :freq :accessor freq))
- (:metaclass kmrcl:ml-class)
- (:default-initargs :cui nil :pfstr nil :freq nil)
- (:title "String and Count")
- (:fields (sui :string fmt-sui) (freq :fixnum) (stt :string) (lrl :fixnum) (str :cdata))
- (:ref-fields (sui find-ustr-sui))
- (:documentation "Composite object of ustr/freq"))
-
-(defun ustr_freq-sui (s)
- (sui (ustr s)))
-
-(defun ustr_freq-str (s)
- (str (ustr s)))
-
-(defun ustr_freq-lrl (s)
- (lrl (ustr s)))
-
-(defun ustr_freq-stt (s)
- (stt (ustr s)))
-
-(defclass usty_freq (umlsclass)
- ((usty :type usty :initarg :usty :reader usty)
- (freq :type fixnum :initarg :freq :accessor freq))
- (:metaclass kmrcl:ml-class)
- (:default-initargs :usty nil :freq nil)
- (:title "Semantic Type and Count")
- (:ref-fields (tui find-ucon-tui "subobjects=no"))
- (:fields (tui :string fmt-tui) (freq :fixnum) (sty :string))
- (:documentation "Composite object of usty/freq"))
+(defclass freq (hyperobject)
+ ((freq :type integer :initarg :freq :accessor freq :print-formatter fmt-comma-integer))
+ (:metaclass hyperobject-class)
+ (:default-initargs :freq 0)
+ (:user-name "Frequency class")
+ (:default-print-slots freq)
+ (:description "Base class containing frequency slot, used for multi-inherited objects"))
+
+(defclass ucon_freq (ucon freq)
+ ()
+ (:metaclass hyperobject-class)
+ (:user-name "Concept and Count")
+ (:default-print-slots cui freq pfstr)
+ (:description "Composite object of ucon/freq"))
+
+(defclass ustr_freq (ustr freq)
+ ()
+ (:metaclass hyperobject-class)
+ (:user-name "String and Count")
+ (:default-print-slots sui freq stt lrl str)
+ (:description "Composite object of ustr/freq"))
+
+(defclass usty_freq (usty freq)
+ ((freq :type fixnum :initarg :freq :accessor freq))
+ (:metaclass hyperobject-class)
+ (:user-name "Semantic Type and Count")
+ (:default-print-slots tui freq sty)
+ (:description "Composite object of usty/freq"))