// ** This file was generated with DemFGen (vers:12/15/2010) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Solution */ public class Solution{ protected final ClassDictionary cd; /** Construct a(n) Solution Instance */ public Solution(ClassDictionary cd){ this.cd = cd; } /** Is the given object Equal to this Solution? */ public boolean equals(Object o){ if(!(o instanceof Solution))return false; if(o == this)return true; Solution oo = (Solution)o; return (((Object)cd).equals(oo.cd)); } /** Parse an instance of Solution from the given String */ public static Solution parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Solution(); } /** Parse an instance of Solution from the given Stream */ public static Solution parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Solution(); } /** Parse an instance of Solution from the given Reader */ public static Solution parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Solution(); } /** Field Class for Solution.cd */ public static class cd 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 Solution.cd */ public Solution updateCd(ClassDictionary _cd){ return new Solution(_cd); } /** Getter for field Solution.cd */ public ClassDictionary getCd(){ return cd; } }