// ** 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 Renaissance */
public class Renaissance implements ProtocolI{

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

 
	public double getResult(Claim claim, List<Response> replies){
		return 1; // Alice always wins
	}
	
	public ProtocolSpec getProtocolSpec(){
		return Renaissance.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 Alice " +
			"solution of 3 from Alice "
			);
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}

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

}


