// ** This file was generated with DemFGen (vers:4/15/2011) package mmg; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import scg.*; /** Representation of MMGSolution */ public class MMGSolution implements SolutionI{ protected double y; /** Construct a(n) MMGSolution Instance */ public MMGSolution(double y){ this.y = y; } /** Is the given object Equal to this MMGSolution? */ public boolean equals(Object o){ if(!(o instanceof MMGSolution))return false; if(o == this)return true; MMGSolution oo = (MMGSolution)o; return (((Object)y).equals(oo.y)); } /** Parse an instance of MMGSolution from the given String */ public static MMGSolution parse(String inpt) throws mmg.ParseException{ return new mmg.TheParser(new java.io.StringReader(inpt)).parse_MMGSolution(); } /** Parse an instance of MMGSolution from the given Stream */ public static MMGSolution parse(java.io.InputStream inpt) throws mmg.ParseException{ return new mmg.TheParser(inpt).parse_MMGSolution(); } /** Parse an instance of MMGSolution from the given Reader */ public static MMGSolution parse(java.io.Reader inpt) throws mmg.ParseException{ return new mmg.TheParser(inpt).parse_MMGSolution(); } /** Field Class for MMGSolution.y */ public static class y extends edu.neu.ccs.demeterf.Fields.any{} /** DGP method from Class Display */ public String display(){ return mmg.Display.DisplayM(this); } /** DGP method from Class Print */ public String print(){ return mmg.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return mmg.ToStr.ToStrM(this); } /** DGP method from Class PrintToString */ public String toString(){ return mmg.PrintToString.PrintToStringM(this); } /** DGP method from Class HashCode */ public int hashCode(){ return mmg.HashCode.HashCodeM(this); } /** Setter for field MMGSolution.y */ public void setY(double _y){ y = _y; } /** Getter for field MMGSolution.y */ public double getY(){ return y; } }