// ** This file was generated with DemFGen (vers:4/15/2011)

package scg;

import edu.neu.ccs.demeterf.Fields;
import edu.neu.ccs.demeterf.lib.ident;
import edu.neu.ccs.demeterf.lib.verbatim;
import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;



/** Computes a simple Hashcode */
public class HashCode extends edu.neu.ccs.demeterf.FC{
   /** Static stub method for calling hashCode */
   public static int HashCodeM(Object o){
      return new edu.neu.ccs.demeterf.Traversal(new HashCode(),edu.neu.ccs.demeterf.Control.builtins()).<Integer>traverse(o);
   }

   public int combine(byte _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(short _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(int _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(long _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(float _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(double _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(char _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(boolean _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(String _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(ident _h_)
   { return ((Object)_h_).hashCode(); }
   public int combine(verbatim _h_)
   { return ((Object)_h_).hashCode(); }

   public int combine(AddTournament _h_, int name, int config, int time)
   { return name+(3*config)+(5*time); }
   public int combine(TournamentState _h_)
   { return 346223640; }
   public int combine(SignUp _h_, int name, int password)
   { return name+(3*password); }
   public int combine(ApproveUser _h_, int name)
   { return name; }
   public int combine(RegisterPlayer _h_, int id, int name, int password)
   { return id+(3*name)+(5*password); }
   public int combine(FullyQualifiedClassName _h_, int name, int rest)
   { return name+(3*rest); }
   public int combine(DSCOI _h_, int first, int rest)
   { return first+(3*rest); }
   public int combine(DSEOI _h_)
   { return 196022736; }
   public int combine(Claim _h_, int instanceSetWrapper, int protocolWrapper, int quality, int confidence)
   { return instanceSetWrapper+(3*protocolWrapper)+(5*quality)+(7*confidence); }
   public int combine(ProtocolSpec _h_, int steps)
   { return steps; }
   public int combine(Step _h_, int action, int role)
   { return action+(3*role); }
   public int combine(Alice _h_)
   { return 190051104; }
   public int combine(Bob _h_)
   { return 200895; }
   public int combine(ProvideAction _h_)
   { return -2088336315; }
   public int combine(SolveAction _h_, int stepNo)
   { return stepNo; }
   public int combine(Request _h_, int forbidden, int claimsToOppose, int protocolRequests)
   { return forbidden+(3*claimsToOppose)+(5*protocolRequests); }
   public int combine(ProvideRequest _h_, int claimToBeProvided)
   { return claimToBeProvided; }
   public int combine(SolveRequest _h_, int instanceWrapper, int claim)
   { return instanceWrapper+(3*claim); }
   public int combine(Response _h_, int proposed, int oppositions, int protocolResponses)
   { return proposed+(3*oppositions)+(5*protocolResponses); }
   public int combine(Agreement _h_)
   { return 349328830; }
   public int combine(Strengthening _h_, int newQuality)
   { return newQuality; }
   public int combine(Refuting _h_)
   { return -1929289488; }
   public int combine(ProvideResponse _h_, int instanceWrapper)
   { return instanceWrapper; }
   public int combine(SolveResponse _h_, int solutionWrapper)
   { return solutionWrapper; }
   public int combine(SCGConfig _h_, int domain, int protocols, int tournamentStyle, int turnDuration, int maxNumAvatars, int minStrengthening, int initialReputation, int maxReputation, int reputationFactor, int minProposals, int maxProposals, int numRounds, int proposedClaimMustBeNew, int minConfidence)
   { return domain+(3*protocols)+(5*tournamentStyle)+(7*turnDuration)+(9*maxNumAvatars)+(11*minStrengthening)+(13*initialReputation)+(15*maxReputation)+(17*reputationFactor)+(19*minProposals)+(21*maxProposals)+(23*numRounds)+(25*proposedClaimMustBeNew)+(27*minConfidence); }
   public int combine(FullRoundRobin _h_)
   { return -1005773215; }
   public int combine(KnockOut _h_)
   { return -958566930; }
   public int combine(SwissStyleTournament _h_)
   { return -90609505; }
   public int combine(Config _h_, int scgCfg, int domainConfigWrapper)
   { return scgCfg+(3*domainConfigWrapper); }
   public int combine(RED _h_)
   { return 243027; }
   public int combine(BLACK _h_)
   { return 189843357; }

   public int combine(RWrap _h_, int className, int wrappee)
   { return className+(3*wrappee); }
   public int combine(Cons _h_, int first, int rest)
   { return first+(3*rest); }
   public int combine(Empty _h_)
   { return 201244551; }
   public int combine(None _h_)
   { return 7301640; }
   public int combine(Some _h_, int just)
   { return just; }


}


