// ** 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 Problem */ public class Problem{ protected final Domain singleton; /** Construct a(n) Problem Instance */ public Problem(Domain singleton){ this.singleton = singleton; } /** Is the given object Equal to this Problem? */ public boolean equals(Object o){ if(!(o instanceof Problem))return false; if(o == this)return true; Problem oo = (Problem)o; return (((Object)singleton).equals(oo.singleton)); } /** Parse an instance of Problem from the given String */ public static Problem parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Problem(); } /** Parse an instance of Problem from the given Stream */ public static Problem parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Problem(); } /** Parse an instance of Problem from the given Reader */ public static Problem parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Problem(); } /** Field Class for Problem.singleton */ public static class singleton 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 Problem.singleton */ public Problem updateSingleton(Domain _singleton){ return new Problem(_singleton); } /** Getter for field Problem.singleton */ public Domain getSingleton(){ return singleton; } }