From: cvs@openprivacy.orgCVS update: sierra/src/java/org/openprivacy/sierra/rce
Date: Tuesday February 20, 19101 @ 14:06
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/rce
-----------------------------------
Update of /usr/local/cvs/public/sierra/src/java/org/openprivacy/sierra/rce
In directory giga:/tmp/cvs-serv28587/src/java/org/openprivacy/sierra/rce
Modified Files:
RCE.java
Log Message:
reworked the way signatures are represented. We are now using a SignatureValue instead of the signature object which wasn't used correctly. also updated javadoc
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/rce/RCE.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/rce/RCE.java?annotate=1.8
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/rce/RCE.java?rev=1.8&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/rce/RCE.java.diff?r1=1.8&r2=1.7
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/rce/RCE.java
diff -u sierra/src/java/org/openprivacy/sierra/rce/RCE.java:1.7 sierra/src/java/org/openprivacy/sierra/rce/RCE.java:1.8
--- sierra/src/java/org/openprivacy/sierra/rce/RCE.java:1.7 Mon Feb 19 15:38:23 2001
+++ sierra/src/java/org/openprivacy/sierra/rce/RCE.java Tue Feb 20 14:06:41 2001
@@ -17,42 +17,56 @@
package org.openprivacy.sierra.rce;
-//standard Java support
+//java stuff.
+import java.io.*;
+import java.net.*;
import java.util.*;
-//talon support
-import talon.*;
-import talon.util.net.*;
-
-//sierra stuff
-import org.openprivacy.sierra.util.*;
+//sierra support
import org.openprivacy.sierra.reputation.talon.interfaces.*;
+import org.openprivacy.sierra.util.*;
-import talon.Component;
+//talon support
+import talon.*;
+import talon.interfaces.*;
+import talon.util.net.*;
/**
+ * <p>
* Abstraction of a ReputationCalculationEngine (RCE). This is basically a
- * mechanism to abstract storage and then calculation of reputations.
- *
+ * mechanism to abstract the calcluation of a Reputation. Reputations
+ * (opinions) can be added to an RCE and then the RCE can provide some
+ * mechanism to respond with for getReputation.
+ *
+ * <p>
+ * Generally an RCE just provides the calculation of an aggregated set of
+ * Reputations. For persistence and performance reasons an RCE should use a
+ * Store component to handle its own persistence. The RCE should use a
+ * StoreManager so that Sierra can be deployed with the correct RCE -> Store
+ * mapping.
+ *
* @see http://www.openprivacy.org
* @author <a href="mailto:burton@openprivacy.org">Kevin A. Burton</a>
- * @version $Id: RCE.java,v 1.7 2001/02/19 23:38:23 burton Exp $
+ * @version $Id: RCE.java,v 1.8 2001/02/20 22:06:41 burton Exp $
*/
public interface RCE extends Component {
/**
+ * Get a reputation from the given RCEContext. The RCE should pay attention
+ * to the context and use it to serve the appropriate Reputation object.
+ * The Reference is used as a pointer to information which should be used to
+ * obtain aggregate reputation objects.
*
- *
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: RCE.java,v 1.7 2001/02/19 23:38:23 burton Exp $
+ * @version $Id: RCE.java,v 1.8 2001/02/20 22:06:41 burton Exp $
*/
public Reputation getReputation( RCEContext context, Reference reference ) throws SierraException;
/**
- * @see getReputation( context, reference )
+ * @see #putReputation(RCEContext, Reference)
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: RCE.java,v 1.7 2001/02/19 23:38:23 burton Exp $
+ * @version $Id: RCE.java,v 1.8 2001/02/20 22:06:41 burton Exp $
*/
public Reputation getReputation( Reference reference ) throws SierraException;
@@ -60,39 +74,30 @@
*
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: RCE.java,v 1.7 2001/02/19 23:38:23 burton Exp $
+ * @version $Id: RCE.java,v 1.8 2001/02/20 22:06:41 burton Exp $
*/
public void putReputation( RCEContext context, Reputation reputation ) throws SierraException;
/**
- * @see putReputation( context, reference )
+ * @see #putReputation(RCEContext, Reference)
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: RCE.java,v 1.7 2001/02/19 23:38:23 burton Exp $
+ * @version $Id: RCE.java,v 1.8 2001/02/20 22:06:41 burton Exp $
*/
public void putReputation( Reputation reputation ) throws SierraException;
/**
- * Execute an XPath query on this RCE.
- *
- * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: RCE.java,v 1.7 2001/02/19 23:38:23 burton Exp $
- */
- //public Result execute( String query );
-
- /**
* Determine the principal under which this RCE is running.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: RCE.java,v 1.7 2001/02/19 23:38:23 burton Exp $
+ * @version $Id: RCE.java,v 1.8 2001/02/20 22:06:41 burton Exp $
*/
public URI getPrincipal() throws SierraException;
-
/**
* Execute the given Query and return the Result.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: RCE.java,v 1.7 2001/02/19 23:38:23 burton Exp $
+ * @version $Id: RCE.java,v 1.8 2001/02/20 22:06:41 burton Exp $
*/
public Result execute( Query query ) throws SierraException;
This archive was generated by hypermail 2b30 : Tue Feb 20 2001 - 14:07:43 PST