// ** This file was generated with DemFGen (vers:12/15/2010) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; /** Representation of PG_Solution */ public class PG_Solution{ protected final PG_DecisionTree d; /** Construct a(n) PG_Solution Instance */ public PG_Solution(PG_DecisionTree d){ this.d = d; } /** Is the given object Equal to this PG_Solution? */ public boolean equals(Object o){ if(!(o instanceof PG_Solution))return false; if(o == this)return true; PG_Solution oo = (PG_Solution)o; return (((Object)d).equals(oo.d)); } /** Parse an instance of PG_Solution from the given String */ public static PG_Solution parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_PG_Solution(); } /** Parse an instance of PG_Solution from the given Stream */ public static PG_Solution parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_PG_Solution(); } /** Parse an instance of PG_Solution from the given Reader */ public static PG_Solution parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_PG_Solution(); } /** Field Class for PG_Solution.d */ public static class d extends edu.neu.ccs.demeterf.Fields.any{} /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } /** Updater for field PG_Solution.d */ public PG_Solution updateD(PG_DecisionTree _d){ return new PG_Solution(_d); } /** Getter for field PG_Solution.d */ public PG_DecisionTree getD(){ return d; } }