CVS update: openprivacy/htdocs/notes

From: cvs@openprivacy.org
Date: Tue Dec 19 2000 - 13:08:27 PST


Date: Tuesday December 19, 19100 @ 13:08
Author: fen
CVSWEB Options: -------------------

Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi

View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes

-----------------------------------

Update of /usr/local/cvsroot/openprivacy/htdocs/notes
In directory openprivacy.org:/home/fen/projects/openprivacy/htdocs/notes

Modified Files:
        flow.txt
Log Message:
query mechanism

*****************************************************************
File: openprivacy/htdocs/notes/flow.txt

CVSWEB Options: -------------------

CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?annotate=1.47

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?rev=1.47&content-type=text/x-cvsweb-markup

CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt.diff?r1=1.47&r2=1.46

-----------------------------------

Index: openprivacy/htdocs/notes/flow.txt
diff -u openprivacy/htdocs/notes/flow.txt:1.46 openprivacy/htdocs/notes/flow.txt:1.47
--- openprivacy/htdocs/notes/flow.txt:1.46 Tue Dec 19 12:57:32 2000
+++ openprivacy/htdocs/notes/flow.txt Tue Dec 19 13:08:27 2000
@@ -1,4 +1,4 @@
-$Id: flow.txt,v 1.46 2000/12/19 20:57:32 fen Exp $
+$Id: flow.txt,v 1.47 2000/12/19 21:08:27 fen Exp $
 
 http://pix.comedia.com/OpenPrivacy/20001214/DSCN5532.JPG
 
@@ -239,17 +239,23 @@
 // we want things like:
 // getProbByPubkey // may return a set
 // getProbBySignatureValue // zero or one
-// getProbByProperty // more general than getProbBySignatureValue
+// getProbByQuery // the general case
+// see query-mechanism.dia
 //
-op = New Opinion // how do we choose the property-resolver?
-op.setProperty(pubkey, AJ1p) // get the opinion of this entity...
-op.setProperty(namespace, RSS) // ...within this namespace...
-op.setProperty(returnLimit, 10) // ...limit result set (how?)...
+query = New Query // how do we choose the property-resolver?
+query.addCriteria(
+ New Criteria(pubkey, AJ1p, EQUALS)) // get the opinion of this entity...
+query.addCriteria(
+ New Criteria(namespace, RSS, EQUALS)) // ...within this namespace...
+query.addCriteria(
+ New Criteria(returnLimit, 10, EQUALS)) // ...limit result set (how?)...
 
-prob = ProbFactory.createProb(op, A2J1p)
+// FIXME: perhaps facility should be 'query' and target='Reputation'
+//
+prob = ProbFactory.createProb(query, A2J1p)
 agent2.sendMessage(address=JetsPeek,
     facility=Reputation,
- method=getOpinion,
+ method=getReputaion,
     prob=prob,
     returnAddress=agent2)
 



This archive was generated by hypermail 2b30 : Mon Jan 22 2001 - 15:52:14 PST