CVS update: openprivacy/htdocs/notes

From: cvs@openprivacy.org
Date: Mon Dec 18 2000 - 23:15:41 PST


Date: Monday December 18, 19100 @ 23:15
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:
calculate filtered result set of RSS channels

*****************************************************************
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.35

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?rev=1.35&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.35&r2=1.34

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

Index: openprivacy/htdocs/notes/flow.txt
diff -u openprivacy/htdocs/notes/flow.txt:1.34 openprivacy/htdocs/notes/flow.txt:1.35
--- openprivacy/htdocs/notes/flow.txt:1.34 Mon Dec 18 20:51:27 2000
+++ openprivacy/htdocs/notes/flow.txt Mon Dec 18 23:15:41 2000
@@ -1,23 +1,8 @@
-$Id: flow.txt,v 1.34 2000/12/19 04:51:27 fen Exp $
+$Id: flow.txt,v 1.35 2000/12/19 07:15:41 fen Exp $
 
 http://pix.comedia.com/OpenPrivacy/20001214/DSCN5532.JPG
 
-Agent1 JetsPeek Agent2
 
-J1:RSS1 J1:RSS2 J1
-J2:RSS2 J2:RSS2
-J2:RSS3 J2:RSS3
-J3:RSS4
-
-
-XMLDocument
- toXML() : String
- setProperty(name, value) : Void
- getProperty(name) : String
- init(namespace) : Void
-
-Opinion implements XMLDocument
-
 // ========== in JetsPeek ========== initialize, get RSS streams
 
 // create a primary (secret,public) key pair for JetsPeek
@@ -114,17 +99,33 @@
 // ========== in JetsPeek ========== return filtered RSS set
 
 // SCDS returns streams collection (size of collection may be zero)
+// note that this can be optimized a lot (use database, btree, etc...)
+//
+resultSet[] = NULL
+for (iterator prob = probStore.retrieve(namespace="RSS*"); prob.hasNext();) {
+ if match( prob.getProperty( "description" ), keyword ) {
+ append( resultSet, prob )
+ }
+}
+op = New Opinion(rss.getPropertyResolver())
+op.setProperty(rssStream, resultSet) // how is this really done?
+prob = ProbFactory.create(op, JPN1p)
+
+// send the resultSet encapsulated in a prob (may be null)
 //
 jetspeek.sendMessage(
     address=Agent1,
- value=rss[], // encapsulated in a prob (may be null)
- returnAddr=NULL) // no reply required
+ facility=rssStreamResults,
+ prob=prob,
+ returnAddress=JetsPeek)
 
 // or SCDS may return an exception is the service is not currently available
 //
-jetspeek.sendException(
+jetspeek.sendMessage(
     address=Agent1,
- value=ServiceNotAvailable)
+ facility=exception,
+ value=ServiceNotAvailable,
+ returnAddress=JetsPeek)
 
 // ========== in Agent1 ========== choose channels
 // AJ1: RSS1
@@ -240,7 +241,7 @@
                 namespace=RSS,
                 signature=J4)
 
-// TODO: DELETE, GRAFT
+// TODO: DELETE
 // TODO: AgentLookup;
 
 
@@ -270,6 +271,16 @@
 A1: pc = ProbConfig.getInstance() // returns current session
 A1: pc.setPublicKey(J1p) // set session
 
+
+// Opinion
+//
+Opinion implements XMLDocument
+
+XMLDocument
+ toXML() : String
+ setProperty(name, value) : Void
+ getProperty(name) : String
+ init(namespace) : Void
 
 
 [ Record ]



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