// ** This file was generated with DemFGen (vers:12/15/2010)

package protocol;

import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;
import java.lang.reflect.*;
import scg.*;





/** Representation of SecretRenaissance */
public class SecretRenaissance implements ProtocolI{

    /** Construct a(n) SecretRenaissance Instance */
    public SecretRenaissance(){
    }
    /** Is the given object Equal to this SecretRenaissance? */
    public boolean equals(Object o){
        if(!(o instanceof SecretRenaissance))return false;
        if(o == this)return true;
        SecretRenaissance oo = (SecretRenaissance)o;
        return true;
    }
    /** Parse an instance of SecretRenaissance from the given String */
    public static SecretRenaissance parse(String inpt) throws protocol.ParseException{
        return new protocol.TheParser(new java.io.StringReader(inpt)).parse_SecretRenaissance();
    }
    /** Parse an instance of SecretRenaissance from the given Stream */
    public static SecretRenaissance parse(java.io.InputStream inpt) throws protocol.ParseException{
        return new protocol.TheParser(inpt).parse_SecretRenaissance();
    }
    /** Parse an instance of SecretRenaissance from the given Reader */
    public static SecretRenaissance parse(java.io.Reader inpt) throws protocol.ParseException{
        return new protocol.TheParser(inpt).parse_SecretRenaissance();
    }

 
	public double getResult(Claim claim, List<Response> replies){
		return 1; // Alice always wins
	}
	
	public ProtocolSpec getProtocolSpec(){
		return SecretRenaissance.protocolSpec; 
	}
	
	static ProtocolSpec protocolSpec;
	static{
		try{
			ProtocolSpec.parse( 
			"instance from Alice " +
			"instance from Alice " +
			"instance from Bob " +
			"instance from Bob " +
			"solution of 0 from Bob " +
			"solution of 1 from Bob " +
			"solution of 2 from Bob " +
			"solution of 3 from Bob " +
			"solution of 0 from Alice " +
			"solution of 1 from Alice " +
			"solution of 2 from Alice " +
			"solution of 3 from Alice "
			);
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}

    /** DGP method from Class Print */
    public String print(){ return protocol.Print.PrintM(this); }

}


