// ** This file was generated with DemFGen (vers:4/15/2011) package hsr; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import scg.*; /** Representation of Compound */ public class Compound extends HSRSolution{ protected int question; protected HSRSolution yes; protected HSRSolution no; /** Construct a(n) Compound Instance */ public Compound(int question, HSRSolution yes, HSRSolution no){ this.question = question; this.yes = yes; this.no = no; } /** Is the given object Equal to this Compound? */ public boolean equals(Object o){ if(!(o instanceof Compound))return false; if(o == this)return true; Compound oo = (Compound)o; return (((Object)question).equals(oo.question))&&(((Object)yes).equals(oo.yes))&&(((Object)no).equals(oo.no)); } /** Parse an instance of Compound from the given String */ public static Compound parse(String inpt) throws hsr.ParseException{ return new hsr.TheParser(new java.io.StringReader(inpt)).parse_Compound(); } /** Parse an instance of Compound from the given Stream */ public static Compound parse(java.io.InputStream inpt) throws hsr.ParseException{ return new hsr.TheParser(inpt).parse_Compound(); } /** Parse an instance of Compound from the given Reader */ public static Compound parse(java.io.Reader inpt) throws hsr.ParseException{ return new hsr.TheParser(inpt).parse_Compound(); } /** Field Class for Compound.question */ public static class question extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Compound.yes */ public static class yes extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Compound.no */ public static class no extends edu.neu.ccs.demeterf.Fields.any{} /** DGP method from Class Display */ public String display(){ return hsr.Display.DisplayM(this); } /** DGP method from Class Print */ public String print(){ return hsr.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return hsr.ToStr.ToStrM(this); } /** DGP method from Class PrintToString */ public String toString(){ return hsr.PrintToString.PrintToStringM(this); } /** DGP method from Class HashCode */ public int hashCode(){ return hsr.HashCode.HashCodeM(this); } /** Setter for field Compound.question */ public void setQuestion(int _question){ question = _question; } /** Setter for field Compound.yes */ public void setYes(HSRSolution _yes){ yes = _yes; } /** Setter for field Compound.no */ public void setNo(HSRSolution _no){ no = _no; } /** Getter for field Compound.question */ public int getQuestion(){ return question; } /** Getter for field Compound.yes */ public HSRSolution getYes(){ return yes; } /** Getter for field Compound.no */ public HSRSolution getNo(){ return no; } }