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

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

 
	public double getResult(Claim claim, List<Response> replies){
		return 1; // Alice always wins
	}
	
	public ProtocolSpec getProtocolSpec(){
		return ForAllExists.protocolSpec; 
	}
	
	static ProtocolSpec protocolSpec;
	static{
		try{
			ProtocolSpec.parse( 
			"instance 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); }

}


