Stores a term with a key in an inner blackboard....
Move to
Next Prev
Up Top
See also
bb_clear/1
bb_clear/2
bb_contains/2
bb_contains_key/2
bb_create/1
bb_get/3
bb_get/4
bb_put/3
bb_put/4
bb_remove/2
bb_keys/2
bb_elements/2
bb_size/2
IF Computer > MINERVA > Manual > Reference > Predicates > Blackboards > bb_put/4

bb_put/4

Stores a term with a key in an inner blackboard.

bb_put(+Board, +OuterKey, +InnerKey, +Term)

bb_put/4 stores a key/value tuple in an inner blackboard accessed with OuterKey. If there is no tuple OuterKey/InnerBoard in Board a new inner blackboard will be created and stored in Board.
This predicate is equivalent to:

( bb_get(Board, OuterKey, SubBoard) ->
    bb_put(SubBoard, InnerKey, Term)
;    bb_create(SubBoard),
    bb_put(SubBoard, InnerKey, Term),
    bb_put(Board, OuterKey, SubBoard)
)

Arguments

Board              blackboard
OuterKey           ground term
InnerKey           ground term
Term               term

Examples

    bb_create(Family),
    bb_put(Family, john, father, joe),
    bb_put(Family, john, mother, clara),
    bb_put(Family, emily, father, mike),
    bb_get(Family, john, Parent, Name)
->
    Parent = father
    Name = joe
and
    Parent = mother
    Name = clara

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

bb_clear/1, bb_clear_2/2, bb_create/1, bb_contains/2, bb_contains_key/2, bb_get/3, bb_get_4/4, bb_put/3, bb_put_4/4, bb_remove/2. bb_keys/2. bb_elements/2.

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Language
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/blackboard/bb_put_4/home_en.html
published 2012/2/6 update 2001/2/7 (c) 1996-2009 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS