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