Changeset 236 for branches/new-datamodel
- Timestamp:
- 03/21/10 08:36:20 (15 years ago)
- Location:
- branches/new-datamodel/src/model
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/new-datamodel/src/model/changes.lisp ¶
r234 r236 1 #;;+-----------------------------------------------------------------------------1 ;;+----------------------------------------------------------------------------- 2 2 ;;+ Isidorus 3 3 ;;+ (c) 2008-2009 Marc Kuester, Christoph Ludwig, Lukas Giessmann -
TabularUnified branches/new-datamodel/src/model/datamodel.lisp ¶
r235 r236 1646 1646 1647 1647 1648 (defgeneric initialize-name (construct variants &key start-revision)1648 (defgeneric complete-name (construct variants &key start-revision) 1649 1649 (:documentation "Adds all given variants to the passed construct.") 1650 1650 (:method ((construct NameC) (variants list) … … 1967 1967 1968 1968 1969 (defgeneric initialize-reifiable (construct item-identifiers reifier1969 (defgeneric complete-reifiable (construct item-identifiers reifier 1970 1970 &key start-revision) 1971 1971 (:documentation "Adds all item-identifiers and the reifier to the passed … … 2147 2147 2148 2148 2149 (defgeneric initialize-typable (construct instance-of &key start-revision)2149 (defgeneric complete-typable (construct instance-of &key start-revision) 2150 2150 (:documentation "Adds the passed instance-of to the given construct.") 2151 2151 (:method ((construct TypableC) instance-of … … 2177 2177 2178 2178 2179 (defgeneric initialize-scopable (construct themes &key start-revision)2179 (defgeneric complete-scopable (construct themes &key start-revision) 2180 2180 (:documentation "Adds all passed themes to the given construct.") 2181 2181 (:method ((construct ScopableC) (themes list) … … 2395 2395 (make-role args)) 2396 2396 ((AssociationC-p class-symbol) 2397 (make-association args))))) 2398 construct)) 2397 (make-association args)))) 2398 (start-revision (getf args :start-revision))) 2399 (when (typep construct 'TypableC) 2400 (complete-typable construct (getf args :instance-of) 2401 :start-revision start-revision)) 2402 (when (typep construct 'ScopableC) 2403 (complete-scopable construct (getf args :themes) 2404 :start-revision start-revision)) 2405 (if (typep construct 'ReifiableConstructC) 2406 (complete-reifiable construct (getf args :item-identtifiers) 2407 (getf args :reifier) :start-revision start-revision) 2408 construct))) 2399 2409 2400 2410 … … 2403 2413 existing one is returned otherwise a new one is created. 2404 2414 This function exists only for being used by make-construct!" 2405 (let ((item-identifiers (getf (first args) :item-identifiers)) 2406 (reifier (getf (first args) :reifier)) 2407 (instance-of (getf (first args) :instance-of)) 2415 (let ((instance-of (getf (first args) :instance-of)) 2408 2416 (start-revision (getf (first args) :start-revision)) 2409 2417 (themes (get (first args) :themes)) … … 2428 2436 existing-association 2429 2437 (make-instance 'AssociationC))))) 2430 (initialize-typable association instance-of :start-revision2431 start-revision)2432 2438 (dolist (role roles) 2433 2439 (add-role association role :revision start-revision)) 2434 (dolist (theme themes) 2435 (add-theme association theme :revision start-revision)) 2436 (initialize-reifiable association item-identifiers reifier 2437 :start-revision start-revision)))) 2440 association))) 2438 2441 2439 2442 … … 2442 2445 existing one is returned otherwise a new one is created. 2443 2446 This function exists only for being used by make-construct!" 2444 (let ((item-identifiers (getf args :item-identifiers)) 2445 (reifier (getf args :reifier)) 2446 (parent (getf args :parent)) 2447 (let ((parent (getf args :parent)) 2447 2448 (instance-of (getf args :instance-of)) 2448 2449 (player (getf args :player)) … … 2468 2469 (when player 2469 2470 (add-player role player :revision start-revision)) 2470 (initialize-typable role instance-of :start-revision start-revision)2471 2471 (when parent 2472 2472 (add-parent role parent :revision start-revision)) 2473 (initialize-reifiable role item-identifiers reifier 2474 :start-revision start-revision)))) 2473 role))) 2475 2474 2476 2475 … … 2506 2505 (dolist (top-or-assoc (union topics assocs)) 2507 2506 (add-to-tm tm top-or-assoc)) 2508 (initialize-reifiable tm item-identifiers reifier 2509 :start-revision start-revision)))) 2507 tm))) 2510 2508 2511 2509 … … 2544 2542 (make-instance 'TopicC)))))) 2545 2543 (let ((merged-topic topic)) 2546 (setf merged-topic2547 (initialize-reifiable topic item-identifiers nil2548 :start-revision start-revision))2549 2544 (dolist (psi psis) 2550 2545 (setf merged-topic (add-psi merged-topic psi … … 2573 2568 (themes (getf (first args) :themes)) 2574 2569 (variants (getf (first args) :variants)) 2575 (reifier (getf (first args) :reifier))2576 2570 (parent (getf (first args) :parent)) 2577 (item-identifiers (getf (first args) :item-identifiers))2578 2571 (err "From make-characteristic(): ")) 2579 2572 (unless start-revision (error "~astart-revision must be set" err)) … … 2600 2593 (make-instance class-symbol :charvalue charvalue 2601 2594 :datatype datatype))))) 2602 (initialize-scopable characteristic themes :start-revision start-revision) 2603 (initialize-typable characteristic instance-of 2604 :start-revision start-revision) 2605 (initialize-name characteristic variants :start-revision start-revision) 2595 (complete-name characteristic variants :start-revision start-revision) 2606 2596 (when parent 2607 2597 (add-parent characteristic parent :revision start-revision)) 2608 (initialize-reifiable characteristic item-identifiers 2609 reifier :start-revision start-revision)))) 2598 characteristic))) 2610 2599 2611 2600
Note: See TracChangeset
for help on using the changeset viewer.