[Cs5500] Changeset 209 from parthkash

James Vega jamessan at ccs.neu.edu
Thu Apr 14 22:42:42 EDT 2011


Files under gen/ should not be directly modified.  The .cd or .beh files
are the right files to modify.  Then it's just a matter of re-running
the gen.sh script at the top-level directory.  I don't use Eclipse, so
I'm not sure if there's some way to have it automatically regenerate the
files for you.

Unfortunately, due to inconsistencies in how demeterf handles include
directives on Windows and *nix, my attempts at gen.sh and win_gen.bat
that will work on the same cd files hasn't worked.  So, please either
run gen.sh on a *nix system or ensure you regenerate everything with the
same settings used in the gen.sh script.

On Thu, Apr 14, 2011 at 11:52:55PM +0000, noreply at assembla.com wrote:
> = Subversion url
> http://subversion.assembla.com/svn/managing-sw-dev-shared
> 
> = Commit message
> modified propose method so that avatar proposes unique claims
> 
> = Affected files
> M   trunk/GenericSCG/gen/csp/avatar/CSPAvatar.java
> 
> 
> = Diff
> --- /trunk/GenericSCG/gen/csp/avatar/CSPAvatar.java
> +++ /trunk/GenericSCG/gen/csp/avatar/CSPAvatar.java
> @@ -3,7 +3,6 @@
>  package csp.avatar;
>  
>  import edu.neu.ccs.demeterf.lib.*;
> -import edu.neu.ccs.demeterf.lib.*;
>  
>  import java.lang.reflect.Method;
>  import java.util.Random;
> @@ -55,7 +54,7 @@
>  		List<Claim> claims = List.create();
>  		for(int i=0;i<config.getScgCfg().getMaxProposals();i++){
>  			Claim claim = generateRandomClaim();
> -			while(forbiddenClaims.contains(claim) && claims.contains(claim)){
> +			while(forbiddenClaims.contains(claim) || claims.contains(claim)){
>  				claim = generateRandomClaim();
>  			}
>  			claims = claims.append(claim);



More information about the Cs5500 mailing list