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

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

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

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

}


