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

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

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

}


