X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=classes.lisp;h=ac03ad9cb84e3c73799100668a0bbfd6c751b46a;hb=750cc1891b279fb8fa6a9e4e8bd699a0cb874485;hp=9210e6fcf0720f3640c49fc19d74cd09c840a43f;hpb=5265bd2d2382c51c7bbef19c150466eb1afd58bd;p=umlisp.git diff --git a/classes.lisp b/classes.lisp index 9210e6f..ac03ad9 100644 --- a/classes.lisp +++ b/classes.lisp @@ -7,17 +7,16 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: classes.lisp,v 1.33 2003/05/14 05:37:48 kevin Exp $ +;;;; $Id: classes.lisp,v 1.43 2003/07/21 09:46:22 kevin Exp $ ;;;; ;;;; This file, part of UMLisp, is -;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D. +;;;; Copyright (c) 2000-2003 by Kevin M. Rosenberg, M.D. ;;;; ;;;; UMLisp users are granted the rights to distribute and use this software ;;;; as governed by the terms of the GNU General Public License. ;;;; ************************************************************************* -(in-package :umlisp) -(declaim (optimize (speed 3) (safety 1) (compilation-speed 0) (debug 3))) +(in-package #:umlisp) (defclass umlsclass (hyperobject) () @@ -63,7 +62,8 @@ ((vcui :value-type fixnum :initarg :vcui :reader vcui :print-formatter fmt-cui) (rcui :value-type fixnum :initarg :rcui :reader rcui :print-formatter fmt-cui) (vsab :value-type string :initarg :vsab :reader vsab) - (rsab :value-type string :initarg :rsab :reader rsab :hyperlink find-ucan-sab) + (rsab :value-type string :initarg :rsab :reader rsab :hyperlink find-ustr-sab + :hyperlink-parameters (("subobjects" . "no"))) (son :value-type string :initarg :son :reader son) (sf :value-type string :initarg :sf :reader sf) (sver :value-type string :initarg :sver :reader sver) @@ -159,7 +159,8 @@ (defclass usty (umlsclass) ((tui :value-type fixnum :initarg :tui :reader tui :print-formatter fmt-tui - :hyperlink (find-ucon-tui ("subobjects" "no"))) + :hyperlink find-ucon-tui + :hyperlink-parameters (("subobjects" . "no"))) (sty :value-type string :initarg :sty :reader sty)) (:metaclass hyperobject-class) (:user-name "Semantic Type") @@ -428,3 +429,72 @@ "Fully Inherited Set of Relations (strings)") (:default-print-slots sty rl sty2)) + +;;; ************************** +;;; Local Classes +;;; ************************** + +(defclass ustats (umlsclass) + ((name :value-type string :initarg :name :reader name) + (hits :value-type integer :initarg :hits :reader hits + :user-name "count" + :print-formatter fmt-comma-integer) + (srl :value-type fixnum :initarg :srl :reader srl)) + (:metaclass hyperobject-class) + (:default-initargs :name nil :hits nil :srl nil) + (:user-name "UMLS Statistic") + (:default-print-slots name hits srl) + (:documentation "Custom Table: UMLS Database statistics.")) + + +(defclass bsab (umlsclass) + ((sab :value-type string :initarg :sab :reader sab + :hyperlink find-ustr-sab + :hyperlink-parameters (("subobjects" . "no"))) + (name :value-type string :initarg :name :reader name) + (hits :value-type fixnum :initarg :hits :reader hits + :user-name "count" + :print-formatter fmt-comma-integer)) + (:metaclass hyperobject-class) + (:default-initargs :sab nil :name nil :hits nil) + (:user-name "Source of Abbreviation") + (:default-print-slots sab name hits) + (:documentation "Bonus SAB file")) + +(defclass btty (umlsclass) + ((tty :value-type string :initarg :tty :reader tty) + (name :value-type string :initarg :name :reader name) + (hits :value-type fixnum :initarg :hits :reader hits + :user-name "count" + :print-formatter fmt-comma-integer)) + (:metaclass hyperobject-class) + (:default-initargs :tty nil :name nil :hits nil) + (:user-name "Bonus TTY") + (:default-print-slots tty name hits) + (:documentation "Bonus TTY file")) + +(defclass brel (umlsclass) + ((sab :value-type string :initarg :sab :reader sab) + (sl :value-type string :initarg :sl :reader sl) + (rel :value-type string :initarg :rel :reader rel) + (rela :value-type string :initarg :rela :reader rela) + (hits :value-type fixnum :initarg :hits :reader hits + :user-name "count" + :print-formatter fmt-comma-integer)) + (:metaclass hyperobject-class) + (:default-initargs :sab nil :sl nil :rel nil :rela nil :hits nil) + (:user-name "Bonus REL") + (:default-print-slots sab sl rel rela hits) + (:documentation "Bonus REL file")) + +(defclass batn (umlsclass) + ((sab :value-type string :initarg :sab :reader sab) + (atn :value-type string :initarg :atn :reader atn) + (hits :value-type fixnum :initarg :hits :reader hits + :user-name "count" + :print-formatter fmt-comma-intger)) + (:metaclass hyperobject-class) + (:default-initargs :sab nil :atn nil) + (:user-name "Bonus ATN") + (:default-print-slots sab atn hits) + (:documentation "Bonus ATN file"))