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

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

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

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

}


