// ** This file was generated with DemFGen (vers:4/15/2011) package nwf; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import scg.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.util.Iterator; /** Representation of NWFConfig */ public class NWFConfig implements DomainConfigI{ protected int maxN; /** Construct a(n) NWFConfig Instance */ public NWFConfig(int maxN){ this.maxN = maxN; } /** Is the given object Equal to this NWFConfig? */ public boolean equals(Object o){ if(!(o instanceof NWFConfig))return false; if(o == this)return true; NWFConfig oo = (NWFConfig)o; return (((Object)maxN).equals(oo.maxN)); } /** Parse an instance of NWFConfig from the given String */ public static NWFConfig parse(String inpt) throws nwf.ParseException{ return new nwf.TheParser(new java.io.StringReader(inpt)).parse_NWFConfig(); } /** Parse an instance of NWFConfig from the given Stream */ public static NWFConfig parse(java.io.InputStream inpt) throws nwf.ParseException{ return new nwf.TheParser(inpt).parse_NWFConfig(); } /** Parse an instance of NWFConfig from the given Reader */ public static NWFConfig parse(java.io.Reader inpt) throws nwf.ParseException{ return new nwf.TheParser(inpt).parse_NWFConfig(); } /** Field Class for NWFConfig.maxN */ public static class maxN extends edu.neu.ccs.demeterf.Fields.any{} private static NWFConfig DEFAULT_NWF_CONFIG; static{ // I just limit the node to 10 at most. try{ DEFAULT_NWF_CONFIG = NWFConfig.parse( "nwf_config[\n" + "maxN: 10\n" + "]" ); }catch(Exception ex){ ex.printStackTrace(); } } public static NWFConfig getDefaultDomainConfig(){ return NWFConfig.DEFAULT_NWF_CONFIG; } public static Config getDefaultConfig(){ return new Config(SCGConfig.getDefaultSCGConfig(), getDefaultDomainConfig()); } /** DGP method from Class Display */ public String display(){ return nwf.Display.DisplayM(this); } /** DGP method from Class Print */ public String print(){ return nwf.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return nwf.ToStr.ToStrM(this); } /** DGP method from Class PrintToString */ public String toString(){ return nwf.PrintToString.PrintToStringM(this); } /** DGP method from Class HashCode */ public int hashCode(){ return nwf.HashCode.HashCodeM(this); } /** Setter for field NWFConfig.maxN */ public void setMaxN(int _maxN){ maxN = _maxN; } /** Getter for field NWFConfig.maxN */ public int getMaxN(){ return maxN; } }