Do Score's ever migrate from one OwnIdentity's trust tree to another's? If 
not, treeOwner should be final, and non-settable. Same with target.

On Monday 22 September 2008 16:24, [EMAIL PROTECTED] wrote:
> Author: batosai
> Date: 2008-09-22 15:24:44 +0000 (Mon, 22 Sep 2008)
> New Revision: 22737
> 
> Modified:
>    trunk/plugins/WoT/Score.java
> Log:
> Javadoc.
> 
> Modified: trunk/plugins/WoT/Score.java
> ===================================================================
> --- trunk/plugins/WoT/Score.java      2008-09-22 14:56:54 UTC (rev 22736)
> +++ trunk/plugins/WoT/Score.java      2008-09-22 15:24:44 UTC (rev 22737)
> @@ -16,18 +16,38 @@
>  import com.db4o.query.Query;
>  
>  /**
> + * The Score of an Identity in an OwnIdentity's trust tree.
> + * 
>   * @author Julien Cornuwel ([EMAIL PROTECTED])
> - *
>   */
>  public class Score {
>  
> -     private OwnIdentity treeOwner;
> -     private Identity target;
> +     private OwnIdentity treeOwner;  // OwnIdentity that owns the trust tree
> +     private Identity target;                // The Identity that has this 
> Score
> +     
> +     // The actual score of the Identity. 
> +     // Used to decide if the OwnIdentity sees the Identity or not
>       private int score;
> +     
> +     // How far the Identity is from the tree's root. 
> +     // Tells how much point it can add to its trustees score.
>       private int rank;
> +     
> +     // How much point the target Identity can add to its trustees score.
> +     // Depends on its rank AND the trust given by the tree owner.
> +     // If the tree owner sets a negative trust on the target identity,
> +     // it gets zero capacity, even if it has a positive score.
>       private int capacity;
>       

Attachment: pgpHmrWaa1twb.pgp
Description: PGP signature

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to