From: bwarsaw@cnri.reston.va.us
Date: Mon Feb 12 17:21:48 EST 1996
To: kss-submit@cnri.reston.va.us
Content-Type: multipart/knowbot;
This is a multi-part message in MIME format.
Content-Type: multipart/knowbot-metadata;
Content-Type: message/rfc822
KPMD-Interpreter-Version: 1.3
KPMD-Owner-Name: Barry Warsaw
KPMD-Owner-Rendezvous: bwarsaw@cnri.reston.va.us
KPMD-Home-KSS: kss.cnri.reston.va.us
KPMD-Identifier: hdl://cnri.kss/my_first_knowbot
KPMD-Launch-Date: Mon Feb 12 16:39:03 EST 1996
KP-Metadata-Type: complex
KP-Metadata-Key: connection
KP-Connection-Description: Barry's Big Bass Business
KP-Connection-Direction: client
DOCUMENTATION "A simple Seller interface to test ILU"
Content-Type: message/external-body;
URL="hdl://cnri.kss/generic-knowbot"
KP-Metadata-Type: complex
KP-Metadata-Key: generic-interface
KP-Connection-Description: Generic Interface for All Knowbots
KP-Connection-Id: generic-kp
KP-Connection-Direction: client
Content-Type: multipart/knowbot-code;
def __setup__(self, maxprice):
self._maxprice = maxprice
"""Entry point upon arrival at a new KOS."""
# B4 == Barry's Big Bass Business :-)
seller = broker.lookup('Seller_1.Seller', 'B4')
print 'Seller wants $', price, '... '
if price > self._maxprice:
print 'no seller found here'
Content-Type: multipart/knowbot-state;
# instantiate a buyer instance and put it in a magic place for the KOS