From: cvs@openprivacy.orgCVS update: sierra/src/java/org/openprivacy/sierra/query/talon/interfaces
Date: Wednesday March 14, 19101 @ 16:02
Author: burton
CVSWEB Options: -------------------
Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi
View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces
-----------------------------------
Update of /usr/local/cvs/public/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces
In directory giga:/tmp/cvs-serv3720/src/java/org/openprivacy/sierra/query/talon/interfaces
Modified Files:
Query.java QueryManager.java Result.java TargetedQuery.java
Log Message:
moved reputation insert into a dedicated package/class
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Query.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Query.java?annotate=1.2
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Query.java?rev=1.2&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Query.java.diff?r1=1.2&r2=1.1
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Query.java
diff -u sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Query.java:1.1 sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Query.java:1.2
--- sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Query.java:1.1 Tue Feb 20 16:56:07 2001
+++ sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Query.java Wed Mar 14 16:02:24 2001
@@ -26,12 +26,16 @@
import talon.*;
/**
+ * <p>
* Basic interface for a Query object.
*
+ * <p>
* Essentially the interface isn't very complex. Most of the functionality is
- * supposed to be in the implementations .
+ * supposed to be in the implementations. It is important that each interface
+ * define exactly the criteria for which it should match since it is up to the
+ * QueryEngine implemntation to determine how to run the Query.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Query.java,v 1.1 2001/02/21 00:56:07 burton Exp $
+ * @version $Id: Query.java,v 1.2 2001/03/15 00:02:24 burton Exp $
*/
public interface Query extends Component { }
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/QueryManager.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/QueryManager.java?annotate=1.6
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/QueryManager.java?rev=1.6&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/QueryManager.java.diff?r1=1.6&r2=1.5
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/QueryManager.java
diff -u sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/QueryManager.java:1.5 sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/QueryManager.java:1.6
--- sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/QueryManager.java:1.5 Wed Mar 14 01:59:38 2001
+++ sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/QueryManager.java Wed Mar 14 16:02:24 2001
@@ -39,7 +39,7 @@
* performance.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: QueryManager.java,v 1.5 2001/03/14 09:59:38 burton Exp $
+ * @version $Id: QueryManager.java,v 1.6 2001/03/15 00:02:24 burton Exp $
*/
public interface QueryManager extends Component {
@@ -47,7 +47,7 @@
*
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: QueryManager.java,v 1.5 2001/03/14 09:59:38 burton Exp $
+ * @version $Id: QueryManager.java,v 1.6 2001/03/15 00:02:24 burton Exp $
*/
public QueryEngine getQueryEngine( Query query ) throws QueryNotSupportedException;
@@ -55,9 +55,20 @@
* Pass on the given reputation to all QueryEngines that support this.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: QueryManager.java,v 1.5 2001/03/14 09:59:38 burton Exp $
+ * @version $Id: QueryManager.java,v 1.6 2001/03/15 00:02:24 burton Exp $
*/
public void putReputation( Reputation reputation ) throws SierraException;
+
+
+
+ /**
+ * Shortcut for: <code>getQueryEngine( query ).execute( query );</code>
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: QueryManager.java,v 1.6 2001/03/15 00:02:24 burton Exp $
+ */
+ public Result execute( Query query ) throws SierraException;
+
}
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Result.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Result.java?annotate=1.2
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Result.java?rev=1.2&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Result.java.diff?r1=1.2&r2=1.1
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Result.java
diff -u sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Result.java:1.1 sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Result.java:1.2
--- sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Result.java:1.1 Fri Feb 23 15:41:44 2001
+++ sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/Result.java Wed Mar 14 16:02:24 2001
@@ -17,11 +17,38 @@
package org.openprivacy.sierra.query.talon.interfaces;
+import java.io.*;
+import java.net.*;
+import java.util.*;
+import org.openprivacy.sierra.reputation.talon.interfaces.*;
+import org.openprivacy.sierra.util.*;
+import talon.*;
+import talon.interfaces.*;
+import talon.util.net.*;
/**
* Basic interface for a Result object.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Result.java,v 1.1 2001/02/23 23:41:44 burton Exp $
+ * @version $Id: Result.java,v 1.2 2001/03/15 00:02:24 burton Exp $
*/
-public interface Result { }
+public interface Result {
+
+ /**
+ * Get the Enumeration of reputations this results contains.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Result.java,v 1.2 2001/03/15 00:02:24 burton Exp $
+ */
+ public Enumeration getReputations();
+
+
+ /**
+ * Add a reputation to this result.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Result.java,v 1.2 2001/03/15 00:02:24 burton Exp $
+ */
+ public void putReputation( Reputation reputation );
+
+}
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/TargetedQuery.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/TargetedQuery.java?annotate=1.3
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/TargetedQuery.java?rev=1.3&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/TargetedQuery.java.diff?r1=1.3&r2=1.2
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/TargetedQuery.java
diff -u sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/TargetedQuery.java:1.2 sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/TargetedQuery.java:1.3
--- sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/TargetedQuery.java:1.2 Fri Mar 2 19:17:44 2001
+++ sierra/src/java/org/openprivacy/sierra/query/talon/interfaces/TargetedQuery.java Wed Mar 14 16:02:24 2001
@@ -30,7 +30,7 @@
* along with a CompositeQuery to target multiple Payloads.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: TargetedQuery.java,v 1.2 2001/03/03 03:17:44 burton Exp $
+ * @version $Id: TargetedQuery.java,v 1.3 2001/03/15 00:02:24 burton Exp $
*/
public interface TargetedQuery extends Query, Component {
@@ -38,16 +38,16 @@
* Specify the payload that this Query should support.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: TargetedQuery.java,v 1.2 2001/03/03 03:17:44 burton Exp $
+ * @version $Id: TargetedQuery.java,v 1.3 2001/03/15 00:02:24 burton Exp $
*/
public URI getPayloadIdentifier();
/**
* @see #getPayloadIdentifier
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: TargetedQuery.java,v 1.2 2001/03/03 03:17:44 burton Exp $
+ * @version $Id: TargetedQuery.java,v 1.3 2001/03/15 00:02:24 burton Exp $
*/
- public void PayloadIdentifier( URI payloadIdentifier);
+ public void setPayloadIdentifier( URI payloadIdentifier);
}
This archive was generated by hypermail 2b30 : Wed Mar 14 2001 - 16:03:57 PST