// ** This file was generated with DemFGen (vers:4/15/2011)

package hsr;

import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;
import scg.*;





/** Representation of HSRConfig */
public class HSRConfig implements DomainConfigI{
    protected int maxN;

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

    /** Field Class for HSRConfig.maxN */
    public static class maxN extends edu.neu.ccs.demeterf.Fields.any{}

 	private static HSRConfig DEFAULT_HSR_CONFIG;
	static{
			try{
			DEFAULT_HSR_CONFIG = HSRConfig.parse( 
				"hsr_config[\n" +
				"maxN: 10000\n" +
				"]"
			);
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}
 
	public static HSRConfig getDefaultDomainConfig(){
		return HSRConfig.DEFAULT_HSR_CONFIG;
	}
	
	public static Config getDefaultConfig(){
		return new Config(SCGConfig.getDefaultSCGConfig(), getDefaultDomainConfig());
	}

    /** DGP method from Class Display */
    public String display(){ return hsr.Display.DisplayM(this); }
    /** DGP method from Class Print */
    public String print(){ return hsr.Print.PrintM(this); }
    /** DGP method from Class ToStr */
    public String toStr(){ return hsr.ToStr.ToStrM(this); }
    /** DGP method from Class PrintToString */
    public String toString(){ return hsr.PrintToString.PrintToStringM(this); }
    /** DGP method from Class HashCode */
    public int hashCode(){ return hsr.HashCode.HashCodeM(this); }
    /** Setter for field HSRConfig.maxN */
    public void setMaxN(int _maxN){ maxN = _maxN; }
    /** Getter for field HSRConfig.maxN */
    public int getMaxN(){ return maxN; }

}


